public class TestUtils
extends java.lang.Object
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
assertCanTokenizeStream(java.io.InputStream untokenizedInput,
TokenizerBase tokenizer) |
static void |
assertCanTokenizeString(java.lang.String input,
TokenizerBase tokenizer) |
static void |
assertEqualTokenFeatureLengths(java.lang.String text,
TokenizerBase tokenizer) |
static void |
assertMultiThreadedTokenizedStreamEquals(int numThreads,
int perThreadRuns,
java.lang.String tokenizedInputResource,
java.lang.String untokenizedInputResource,
TokenizerBase tokenizer) |
static void |
assertTokenizedStreamEquals(java.io.InputStream tokenizedInput,
java.io.InputStream untokenizedInput,
TokenizerBase tokenizer) |
static void |
assertTokenSurfacesEquals(java.util.List<java.lang.String> expectedSurfaces,
java.util.List<? extends TokenBase> actualTokens) |
public static void assertTokenSurfacesEquals(java.util.List<java.lang.String> expectedSurfaces, java.util.List<? extends TokenBase> actualTokens)
public static void assertCanTokenizeStream(java.io.InputStream untokenizedInput, TokenizerBase tokenizer) throws java.io.IOException
java.io.IOException
public static void assertCanTokenizeString(java.lang.String input, TokenizerBase tokenizer)
public static void assertTokenizedStreamEquals(java.io.InputStream tokenizedInput, java.io.InputStream untokenizedInput, TokenizerBase tokenizer) throws java.io.IOException
java.io.IOException
public static void assertMultiThreadedTokenizedStreamEquals(int numThreads, int perThreadRuns, java.lang.String tokenizedInputResource, java.lang.String untokenizedInputResource, TokenizerBase tokenizer) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public static void assertEqualTokenFeatureLengths(java.lang.String text, TokenizerBase tokenizer)