public class CustomizationsTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, server
CONTENT_TYPE, PLACEHOLDER, properties
Constructor and Description |
---|
CustomizationsTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testAddWord()
Test add word.
|
void |
testAddWords()
Test add words.
|
void |
testCreateVoiceModel()
Test create voice model.
|
void |
testDeleteVoiceModel()
Test delete voice model.
|
void |
testDeleteWordObject()
Test delete word with object.
|
void |
testDeleteWordString()
Test delete word with string.
|
void |
testGetVoiceCustomization()
Test get voice with custom voice model.
|
void |
testGetVoiceModel()
Test get voice model.
|
void |
testGetVoiceModelsLanguage()
Test get voice models for a language.
|
void |
testGetVoiceModelsNull()
Test get voice models for null language.
|
void |
testGetWord()
Test get word.
|
void |
testGetWords()
Test get words.
|
void |
testUpdateVoiceModel()
Test update voice model.
|
void |
testUpdateVoiceModelWords()
Test update voice model with new words.
|
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 testGetVoiceCustomization() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testGetVoiceModelsNull() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testGetVoiceModelsLanguage() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testGetVoiceModel() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testCreateVoiceModel() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testUpdateVoiceModel() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testUpdateVoiceModelWords() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testDeleteVoiceModel() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testGetWords() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testGetWord() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testAddWords() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testAddWord() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testDeleteWordObject() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testDeleteWordString() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exception