Package org.apache.any23.extractor.html
Class LicenseExtractorTest
- java.lang.Object
-
- org.apache.any23.AbstractAny23TestBase
-
- org.apache.any23.extractor.html.AbstractExtractorTestCase
-
- org.apache.any23.extractor.html.LicenseExtractorTest
-
public class LicenseExtractorTest extends AbstractExtractorTestCase
Reference Test class for theLicenseExtractorextractor.
-
-
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 LicenseExtractorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtractorFactory<?>getExtractorFactory()voidtestEmpty()voidtestMixedCaseTitleTag()voidtestMultipleEmptyHref()voidtestMultipleLicenses()voidtestOnlyApache()voidtestOnlyCc()-
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
public ExtractorFactory<?> getExtractorFactory()
- Specified by:
getExtractorFactoryin classAbstractExtractorTestCase- Returns:
- the factory of the extractor to be tested.
-
testOnlyCc
public void testOnlyCc() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
testOnlyApache
public void testOnlyApache() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
testMultipleLicenses
public void testMultipleLicenses() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
testMultipleEmptyHref
public void testMultipleEmptyHref() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
testEmpty
public void testEmpty() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
testMixedCaseTitleTag
public void testMixedCaseTitleTag() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
-