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