1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.any23.extractor.calendar;
19
20 import org.apache.any23.extractor.ExtractorFactory;
21 import org.junit.Test;
22
23 import java.io.IOException;
24
25 public class XCalExtractorTest extends BaseCalendarExtractorTest {
26
27 @Override
28 String filePrefix() {
29 return "/calendar/xml/";
30 }
31
32 @Override
33 protected ExtractorFactory<?> getExtractorFactory() {
34 return new XCalExtractorFactory();
35 }
36
37 @Test
38 public void testRFC6321example1() throws IOException {
39 extractAndVerifyAgainstNQuads("rfc6321-example1.xml", "rfc6321-example1-expected.nquads");
40 }
41
42 @Test
43 public void testRFC6321example2() throws IOException {
44 extractAndVerifyAgainstNQuads("rfc6321-example2.xml", "rfc6321-example2-expected.nquads");
45 }
46 }