Class ICalExtractorTest
- java.lang.Object
-
- org.apache.any23.AbstractAny23TestBase
-
- org.apache.any23.extractor.html.AbstractExtractorTestCase
-
- org.apache.any23.extractor.calendar.ICalExtractorTest
-
public class ICalExtractorTest extends AbstractExtractorTestCase
-
-
Field Summary
-
Fields inherited from class org.apache.any23.extractor.html.AbstractExtractorTestCase
baseIRI, conn
-
Fields inherited from class org.apache.any23.AbstractAny23TestBase
tempDirectory, testFolder
-
-
Constructor Summary
Constructors Constructor Description ICalExtractorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
extractAndVerifyAgainstNQuads(String actual, String expected)
protected ExtractorFactory<?>
getExtractorFactory()
void
testBadTimezone()
void
testExternalTimezone()
void
testRFC5545example1()
void
testRFC5545example2()
void
testRFC5545example3()
void
testRFC5545example4()
void
testRFC5545example5()
void
testRFC5545example6()
-
Methods inherited from class org.apache.any23.extractor.html.AbstractExtractorTestCase
assertContains, assertContains, assertContains, assertContains, assertContains, assertContains, assertContainsModel, assertContainsModel, assertExtract, assertExtract, assertIssue, assertModelEmpty, assertModelNotEmpty, assertNoIssues, assertNotContains, assertNotContains, assertNotContains, assertNotContains, assertNotFound, assertStatementsSize, assertStatementsSize, assertStatementsSize, dumpAsListOfStatements, dumpHumanReadableTriples, dumpModelToNQuads, dumpModelToRDFXML, dumpModelToTurtle, extract, findExactlyOneBlankSubject, findExactlyOneObject, findObject, findObjectAsLiteral, findObjectAsResource, findObjects, findSubjects, getConnection, getIssues, getIssues, getReport, getStatements, getStatementsSize, setUp, tearDown
-
Methods inherited from class org.apache.any23.AbstractAny23TestBase
copyResourceToTempFile, getDocumentSourceFromResource, getDocumentSourceFromResource
-
-
-
-
Method Detail
-
getExtractorFactory
protected ExtractorFactory<?> getExtractorFactory()
- Specified by:
getExtractorFactory
in classAbstractExtractorTestCase
- Returns:
- the factory of the extractor to be tested.
-
testRFC5545example1
public void testRFC5545example1() throws IOException
- Throws:
IOException
-
testRFC5545example2
public void testRFC5545example2() throws IOException
- Throws:
IOException
-
testBadTimezone
public void testBadTimezone() throws IOException
- Throws:
IOException
-
testExternalTimezone
public void testExternalTimezone() throws IOException
- Throws:
IOException
-
testRFC5545example3
public void testRFC5545example3() throws IOException
- Throws:
IOException
-
testRFC5545example4
public void testRFC5545example4() throws IOException
- Throws:
IOException
-
testRFC5545example5
public void testRFC5545example5() throws IOException
- Throws:
IOException
-
testRFC5545example6
public void testRFC5545example6() throws IOException
- Throws:
IOException
-
extractAndVerifyAgainstNQuads
protected void extractAndVerifyAgainstNQuads(String actual, String expected) throws org.eclipse.rdf4j.repository.RepositoryException, org.eclipse.rdf4j.rio.RDFHandlerException, IOException, org.eclipse.rdf4j.rio.RDFParseException
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
org.eclipse.rdf4j.rio.RDFHandlerException
IOException
org.eclipse.rdf4j.rio.RDFParseException
-
-