public class ToneAnalyzerTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, serverCONTENT_TYPE, PLACEHOLDER, properties| Constructor and Description |
|---|
ToneAnalyzerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testGetTones()
Test get tones.
|
void |
testGetToneWithNull()
Test tone with null.
|
getMockWebServerUrl, jsonResponse, tearDowngetDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFilepublic void setUp()
throws java.lang.Exception
WatsonServiceUnitTestsetUp in class WatsonServiceUnitTestjava.lang.Exception - the exceptionpublic void testGetToneWithNull()
public void testGetTones()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedException - the interrupted exceptionjava.io.IOException - Signals that an I/O exception has occurred.