org.apache.any23.extractor.html
Class TitleExtractorTest
java.lang.Object
org.apache.any23.extractor.html.AbstractExtractorTestCase
org.apache.any23.extractor.html.TitleExtractorTest
public class TitleExtractorTest
- extends AbstractExtractorTestCase
Reference Test class for the TitleExtractor
extractor.
Methods inherited from class org.apache.any23.extractor.html.AbstractExtractorTestCase |
assertContains, assertContains, assertContains, assertContains, assertContains, assertContains, assertContainsModel, assertContainsModel, assertError, assertExtracts, assertModelEmpty, assertModelNotEmpty, assertNotContains, assertNotContains, assertNotContains, assertNotContains, assertNotFound, assertStatementsSize, assertStatementsSize, assertStatementsSize, dumpAsListOfStatements, dumpHumanReadableTriples, dumpModelToNQuads, dumpModelToRDFXML, dumpModelToTurtle, extract, findExactlyOneBlankSubject, findExactlyOneObject, findObject, findObjectAsLiteral, findObjectAsResource, findObjects, findSubjects, getConnection, getErrors, getReport, getStatements, getStatementsSize, setUp, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TitleExtractorTest
public TitleExtractorTest()
getExtractorFactory
protected org.apache.any23.extractor.ExtractorFactory<?> getExtractorFactory()
- Specified by:
getExtractorFactory
in class AbstractExtractorTestCase
- Returns:
- the factory of the extractor to be tested.
testExtractPageTitle
public void testExtractPageTitle()
throws org.openrdf.repository.RepositoryException
- Throws:
org.openrdf.repository.RepositoryException
testStripSpacesFromTitle
public void testStripSpacesFromTitle()
throws org.openrdf.repository.RepositoryException
- Throws:
org.openrdf.repository.RepositoryException
testNoPageTitle
public void testNoPageTitle()
throws org.openrdf.repository.RepositoryException
- Throws:
org.openrdf.repository.RepositoryException
testMixedCaseTitleTag
public void testMixedCaseTitleTag()
throws org.openrdf.repository.RepositoryException
- Throws:
org.openrdf.repository.RepositoryException
testTitleWithDefaultLanguage
public void testTitleWithDefaultLanguage()
throws org.openrdf.repository.RepositoryException
- This test verifies that when present the default language this is adopted by the title literal.
- Throws:
org.openrdf.repository.RepositoryException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.