public class NaturalLanguageClassifierTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, serverCONTENT_TYPE, PLACEHOLDER, properties| Constructor and Description |
|---|
NaturalLanguageClassifierTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testClassify()
Test classify.
|
void |
testCreateClassifier()
Test create classifier.
|
void |
testDeleteClassifier()
Test delete classifier.
|
void |
testGetClassifier()
Test get classifier.
|
void |
testGetClassifiers()
Test get classifiers.
|
void |
testNullClassifier()
Test null classifier.
|
void |
testNullDeleteClassifier()
Test null delete classifier.
|
void |
testNullText()
Test null text.
|
void |
testNullTrainingDataFile()
Test null training data file.
|
getMockWebServerUrl, jsonResponse, tearDowngetDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFilepublic void setUp()
throws java.lang.Exception
WatsonServiceUnitTestsetUp in class WatsonServiceUnitTestjava.lang.Exception - the exceptionpublic void testClassify()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testGetClassifier()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testGetClassifiers()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testCreateClassifier()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testDeleteClassifier()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testNullClassifier()
public void testNullText()
public void testNullDeleteClassifier()
public void testNullTrainingDataFile()