public class NaturalLanguageClassifierTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, server
CONTENT_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, tearDown
getDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFile
public void setUp() throws java.lang.Exception
WatsonServiceUnitTest
setUp
in class WatsonServiceUnitTest
java.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()