public class PersonalityInsightsTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, serverCONTENT_TYPE, PLACEHOLDER, properties| Constructor and Description |
|---|
PersonalityInsightsTest()
Instantiates a new personality insights test.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testGetProfileWithContent()
Test get profile with content.
|
void |
testGetProfileWithEnglishText()
Test get profile with english text.
|
void |
testGetProfileWithSpanishText()
Test get profile with spanish text.
|
getMockWebServerUrl, jsonResponse, tearDowngetDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFilepublic PersonalityInsightsTest()
throws java.io.FileNotFoundException
java.io.FileNotFoundException - the file not found exceptionpublic void setUp()
throws java.lang.Exception
WatsonServiceUnitTestsetUp in class WatsonServiceUnitTestjava.lang.Exception - the exceptionpublic void testGetProfileWithContent()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testGetProfileWithEnglishText()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exceptionpublic void testGetProfileWithSpanishText()
throws java.lang.InterruptedException
java.lang.InterruptedException - the interrupted exception