public class ConversationTest extends WatsonServiceUnitTest
ConversationService.DELETE, GET, POST, PUT, serverCONTENT_TYPE, PLACEHOLDER, properties| Constructor and Description |
|---|
ConversationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testConstructorWithNull()
Negative - Test constructor with null version date.
|
void |
testSendMessage()
Test send message.
|
void |
testSendMessageWithAlternateIntents()
Test send message.
|
void |
testSendMessageWithInputTextNull()
Negative - Test message with null input text.
|
void |
testSendMessageWithNullWorkspaceId()
Negative - Test message with null workspace id.
|
getMockWebServerUrl, jsonResponse, tearDowngetDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFilepublic void setUp()
throws java.lang.Exception
WatsonServiceUnitTestsetUp in class WatsonServiceUnitTestjava.lang.Exception - the exceptionpublic void testSendMessage()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testSendMessageWithAlternateIntents()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testSendMessageWithNullWorkspaceId()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testSendMessageWithInputTextNull()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testConstructorWithNull()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exception