public class RetrieveAndRankTest extends WatsonServiceUnitTest
DELETE, GET, POST, PUT, server
CONTENT_TYPE, PLACEHOLDER, properties
Constructor and Description |
---|
RetrieveAndRankTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testClusterConfigDelete()
Test cluster configuration delete.
|
void |
testClusterConfigDelete1Ng()
Negative - Test cluster config delete with null config name.
|
void |
testClusterConfigDelete2Ng()
Negative - Test cluster config delete with empty cluster id.
|
void |
testClusterConfigGet()
Test cluster configuration retrieve.
|
void |
testClusterConfigGet1Ng()
Negative - Test cluster config retrieve with null config name.
|
void |
testClusterConfigGet2Ng()
Negative - Test cluster config retrieve with empty cluster id.
|
void |
testClusterConfigsGet()
Test cluster configurations retrieve.
|
void |
testClusterConfigsGetNg()
Negative - Test cluster configs retrieve with null cluster id.
|
void |
testClusterCreate1()
Test cluster create.
|
void |
testClusterCreate2()
Test cluster create with options.
|
void |
testClusterCreate3()
Test cluster create with bad options.
|
void |
testClusterDelete()
Test cluster delete.
|
void |
testClusterDeleteNg()
Negative - Test cluster delete with empty cluster id.
|
void |
testClusterGet()
Test cluster retrieve.
|
void |
testClusterGetNg()
Negative - Test cluster retrieve with empty cluster id.
|
void |
testClusterResize()
Test cluster resize.
|
void |
testClusterResizeNg1()
Negative - Test Resize Cluster with negative size.
|
void |
testClusterResizeNg2()
Negative - Test Resize Cluster with null cluster id.
|
void |
testClusterResizeStatus()
Test cluster resize status.
|
void |
testClustersGet()
Test clusters retrieve.
|
void |
testClusterStatsGet()
Test cluster stats retrieve.
|
void |
testClusterStatsGetNg()
Negative - Test cluster stats retrieve with null cluster id.
|
void |
testRankerDelete()
Test ranker delete.
|
void |
testRankerDeleteNg()
Negative - Test ranker delete with empty ranker id.
|
void |
testRankerList()
Test ranker list.
|
void |
testRankerRank1()
Test ranker rank.
|
void |
testRankerRank1Ng()
Negative - Test ranker rank with empty ranker id.
|
void |
testRankerRank2()
Test ranker rank with InputStream.
|
void |
testRankerRank2Ng()
Negative - Test ranker rank with null file name.
|
void |
testRankerRank3Ng()
Negative - Test ranker rank with null InputStream.
|
void |
testRankerStatus()
Test ranker status.
|
void |
testRankerStatusNg()
Negative - Test ranker status with null.
|
void |
testRankerTrain1()
Test ranker train.
|
void |
testRankerTrain2()
Test ranker train with null ranker name.
|
void |
testRankerTrainNg1()
Negative - Test ranker train with null file.
|
void |
testRankerTrainNg2()
Negative - Test ranker train with bad file.
|
void |
testSolrUrlGet()
Test solr URL retrieve.
|
void |
testUploadClusterConfig()
Test upload Cluster Configuration.
|
void |
testUploadClusterConfigNg1()
Negative - Test Upload Cluster Config with null directory.
|
void |
testUploadClusterConfigWithClusterIdNull()
Negative - Test Upload Cluster Config with null cluster id.
|
void |
testUploadClusterConfigWithConfigNameNull()
Negative - Test Upload Cluster Config with null config name.
|
void |
testUploadClusterConfigZip()
Test upload Cluster Configuration Zip.
|
void |
testUploadClusterConfigZipNg1()
Negative - Test Upload Cluster Zip with null directory.
|
void |
testUploadClusterConfigZipNg2()
Negative - Test Upload Cluster Zip with null config name.
|
void |
testUploadClusterConfigZipNg3()
Negative - Test Upload Cluster Zip with null cluster id.
|
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 testClusterCreate1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterCreate2() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterCreate3() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterDelete() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigDelete() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterGet() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigGet() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClustersGet() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterStatsGet() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigsGet() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testSolrUrlGet() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigZip() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfig() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterResize() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterResizeStatus() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerStatus() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerList() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerDelete() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerTrain1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerTrain2() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerRank1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerRank2() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerStatusNg() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerDeleteNg() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerTrainNg1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerTrainNg2() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerRank1Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerRank2Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testRankerRank3Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterDeleteNg() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigDelete1Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigDelete2Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterGetNg() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigGet1Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigGet2Ng() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterConfigsGetNg() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterStatsGetNg() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigNg1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigWithConfigNameNull() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigWithClusterIdNull() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigZipNg1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigZipNg2() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testUploadClusterConfigZipNg3() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterResizeNg1() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testClusterResizeNg2() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exception