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