public class DiscoveryServiceTest extends WatsonServiceUnitTest
Discovery
.DELETE, GET, POST, PUT, server
CONTENT_TYPE, PLACEHOLDER, properties
Constructor and Description |
---|
DiscoveryServiceTest() |
getMockWebServerUrl, jsonResponse, setUp, tearDown
getDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFile
public static void setupClass()
public void setup() throws java.lang.Exception
java.lang.Exception
public void cleanup()
public void getEnvironmentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void getEnvironmentFails1()
public void getEnvironmentFails2()
public void getEnvironmentsIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void getEnvironmentsFails()
public void createEnvironmentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void createEnvironmentFails()
public void deleteEnvironmentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void deleteEnvironmentFails()
public void updateEnvironmentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void createConfigurationIsSuccessful() throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, java.io.FileNotFoundException, java.lang.InterruptedException
com.google.gson.JsonSyntaxException
com.google.gson.JsonIOException
java.io.FileNotFoundException
java.lang.InterruptedException
public void getConfigurationIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void getConfigurationsIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void deleteConfigurationIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void updateConfigurationIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void createCollectionIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void getCollectionsIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void getCollectionIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void listfieldsCollectionIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void deleteCollectionIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void createDocumentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void updateDocumentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void getDocumentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void deleteDocumentIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void queryIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException
public void queryWithAggregationTermIsSuccessful() throws java.lang.InterruptedException
java.lang.InterruptedException