|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.carrot2.core.test.ClusteringProcessTestBase
public abstract class ClusteringProcessTestBase
A base class for testing clustering algorithms. This class contains utility code for setting up a
LocalController and passing through XML data sets.
| Field Summary | |
|---|---|
org.apache.log4j.Logger |
log
Logger instance attached to this test. |
| Constructor Summary | |
|---|---|
ClusteringProcessTestBase(String testName)
JUnit-specific constructor. |
|
| Method Summary | |
|---|---|
protected void |
addCustomComponents(LocalControllerBase controller)
Set up your own filters and add them to the controller (if needed). |
protected void |
assertResultsInRange(InputStream inputStream,
String query,
int requestedDocuments,
Range docsRange,
Range clustersRange,
Map requestParameters)
Assert the processing of an input XML stream in Carrot2 format causes no error and the results are within the given ranges (documents and clusters). |
protected void |
assertResultsInRange(String query,
int requestedDocuments,
Range documents,
Range clusters,
Map requestParameters)
Processes a sample XML file. |
protected abstract String[] |
getFiltersChain(LocalControllerBase controller)
Implement this method and return the filters chain used for clustering. |
protected void |
setUp()
|
protected void |
tearDown()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public ClusteringProcessTestBase(String testName)
| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseException
protected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected void addCustomComponents(LocalControllerBase controller)
protected abstract String[] getFiltersChain(LocalControllerBase controller)
protected final void assertResultsInRange(String query,
int requestedDocuments,
Range documents,
Range clusters,
Map requestParameters)
throws Exception
ExceptionassertResultsInRange(InputStream, String, int, Range, Range, Map)
protected final void assertResultsInRange(InputStream inputStream,
String query,
int requestedDocuments,
Range docsRange,
Range clustersRange,
Map requestParameters)
throws Exception
Exception
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||