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