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;
2425publicclassICalExtractorTestextendsBaseCalendarExtractorTest {
26 @Override
27protected ExtractorFactory<?> getExtractorFactory() {
28returnnew ICalExtractorFactory();
29 }
3031 @Override
32 String filePrefix() {
33return"/calendar/text/";
34 }
3536 @Test
37publicvoid testRFC5545example1() throws IOException {
38 extractAndVerifyAgainstNQuads("rfc5545-example1.ics", "rfc5545-example1-expected.nquads");
39 }
4041 @Test
42publicvoid testRFC5545example2() throws IOException {
43 extractAndVerifyAgainstNQuads("rfc5545-example2.ics", "rfc5545-example2-expected.nquads");
44 }
4546 @Test
47publicvoid testBadTimezone() throws IOException {
48 extractAndVerifyAgainstNQuads("example2-bad-timezone.ics", "example2-bad-timezone-expected.nquads");
49 }
5051 @Test
52publicvoid testExternalTimezone() throws IOException {
53 extractAndVerifyAgainstNQuads("example2-external-timezone.ics", "example2-external-timezone-expected.nquads");
54 }
5556 @Test
57publicvoid testRFC5545example3() throws IOException {
58 extractAndVerifyAgainstNQuads("rfc5545-example3.ics", "rfc5545-example3-expected.nquads");
59 }
6061 @Test
62publicvoid testRFC5545example4() throws IOException {
63 extractAndVerifyAgainstNQuads("rfc5545-example4.ics", "rfc5545-example4-expected.nquads");
64 }
6566 @Test
67publicvoid testRFC5545example5() throws IOException {
68 extractAndVerifyAgainstNQuads("rfc5545-example5.ics", "rfc5545-example5-expected.nquads");
69 }
7071 @Test
72publicvoid testRFC5545example6() throws IOException {
73 extractAndVerifyAgainstNQuads("rfc5545-example6.ics", "rfc5545-example6-expected.nquads");
74 }
7576 }