1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 *9 * http://www.apache.org/licenses/LICENSE-2.010 *11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 */1718package org.apache.any23.extractor.calendar;
1920import org.apache.any23.extractor.ExtractorFactory;
21import org.junit.Test;
2223import java.io.IOException;
2425publicclassXCalExtractorTestextendsBaseCalendarExtractorTest {
2627 @Override
28 String filePrefix() {
29return"/calendar/xml/";
30 }
3132 @Override
33protected ExtractorFactory<?> getExtractorFactory() {
34returnnew XCalExtractorFactory();
35 }
3637 @Test
38publicvoid testRFC6321example1() throws IOException {
39 extractAndVerifyAgainstNQuads("rfc6321-example1.xml", "rfc6321-example1-expected.nquads");
40 }
4142 @Test
43publicvoid testRFC6321example2() throws IOException {
44 extractAndVerifyAgainstNQuads("rfc6321-example2.xml", "rfc6321-example2-expected.nquads");
45 }
46 }