Package org.apache.any23.extractor.html
Class EmbeddedJSONLDExtractorTest
- java.lang.Object
-
- org.apache.any23.AbstractAny23TestBase
-
- org.apache.any23.extractor.html.AbstractExtractorTestCase
-
- org.apache.any23.extractor.html.EmbeddedJSONLDExtractorTest
-
public class EmbeddedJSONLDExtractorTest extends AbstractExtractorTestCase
- Author:
- lmcgibbn
-
-
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 EmbeddedJSONLDExtractorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExtractorFactory<?>
getExtractorFactory()
void
testEmbeddedJSONLDInBody()
void
testEmbeddedJSONLDInHead()
void
testEmbeddedJSONLDInHeadAndBody()
void
testJSONLDBadCharacter()
void
testJSONLDCommaNormalization()
void
testJSONLDCommentStripping()
void
testJSONLDFatalError()
void
testJSONLDUnescapedCharacters()
void
testSeveralEmbeddedJSONLDInHead()
-
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
-
testSeveralEmbeddedJSONLDInHead
public void testSeveralEmbeddedJSONLDInHead() throws Exception
- Throws:
Exception
-
testEmbeddedJSONLDInHeadAndBody
public void testEmbeddedJSONLDInHeadAndBody() throws Exception
- Throws:
Exception
-
testJSONLDCommentStripping
public void testJSONLDCommentStripping() throws Exception
- Throws:
Exception
-
testJSONLDCommaNormalization
public void testJSONLDCommaNormalization()
-
testJSONLDUnescapedCharacters
public void testJSONLDUnescapedCharacters()
-
testJSONLDFatalError
public void testJSONLDFatalError()
-
getExtractorFactory
protected ExtractorFactory<?> getExtractorFactory()
- Specified by:
getExtractorFactory
in classAbstractExtractorTestCase
- Returns:
- the factory of the extractor to be tested.
-
-