Package org.apache.any23.extractor.html
Class HCardExtractorTest
- java.lang.Object
-
- org.apache.any23.AbstractAny23TestBase
-
- org.apache.any23.extractor.html.AbstractExtractorTestCase
-
- org.apache.any23.extractor.html.HCardExtractorTest
-
public class HCardExtractorTest extends AbstractExtractorTestCase
HCardExtractortest case.
-
-
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 HCardExtractorTest()
-
Method Summary
-
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:
getExtractorFactoryin classAbstractExtractorTestCase- Returns:
- the factory of the extractor to be tested.
-
testNoNullPointers
public void testNoNullPointers()
-
testNoMicroformats
public void testNoMicroformats() throws Exception, IOException, ExtractionException- Throws:
ExceptionIOExceptionExtractionException
-
testMultipleclassNamesOnVCard
public void testMultipleclassNamesOnVCard() throws Exception- Throws:
Exception
-
testHonorificAdditionalSingle
public void testHonorificAdditionalSingle() throws Exception- Throws:
Exception
-
testHonorificAdditionalMultiple
public void testHonorificAdditionalMultiple() throws Exception- Throws:
Exception
-
testBirthDayDateTimeTimeZone
public void testBirthDayDateTimeTimeZone() throws Exception- Throws:
Exception
-
testCumulativeHNames
public void testCumulativeHNames() throws ExceptionTests that the HCardName data is not cumulative and is cleaned up at each extraction.- Throws:
Exception- if there is an error asserting the test data.
-
testInfiniteLoop
public void testInfiniteLoop() throws IOException, ExtractionExceptionTests the detection and prevention of the inclusion of an ancestor by a sibling node. This test is related to issue ANY23-58.- Throws:
IOException- if there is an error interpreting the input dataExtractionException- if there is an exception during extraction
-
testExtractionPerformance
public void testExtractionPerformance()
Tests extractor performances. This test is related to issue ANY23-76.
-
-