public class PersonalityInsightsTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, server
CONTENT_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.
|
void |
testLoadAContentFromAFile()
Test load a content from a file.
|
getMockWebServerUrl, jsonResponse, tearDown
getDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFile
public PersonalityInsightsTest() throws java.io.FileNotFoundException
java.io.FileNotFoundException
- the file not found exceptionpublic void setUp() throws java.lang.Exception
WatsonServiceUnitTest
setUp
in class WatsonServiceUnitTest
java.lang.Exception
- the exceptionpublic void testGetProfileWithContent() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exceptionpublic void testLoadAContentFromAFile() throws java.lang.InterruptedException, java.io.FileNotFoundException
java.lang.InterruptedException
- the interrupted exceptionjava.io.FileNotFoundException
- the file not found 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