public class VisualRecognitionTest extends WatsonServiceUnitTest
VisualRecognition service.DELETE, GET, POST, PUT, serverCONTENT_TYPE, PLACEHOLDER, properties| Constructor and Description |
|---|
VisualRecognitionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setups and starts the mock server.
|
void |
testClassifyWithBytes()
Test classify with bytes or stream.
|
void |
testClassifyWithFile()
Test classify with file.
|
void |
testCreateClassifier()
Test create classifier.
|
void |
testCreateCollection()
Test create collection.
|
void |
testCreateCollectionNeg()
Negative Test for create collection.
|
void |
testCreateImage()
Test create image.
|
void |
testCreateImageNeg1()
Negative Test for create image.
|
void |
testDeleteClassifier()
Test delete classifier.
|
void |
testDeleteCollection()
Test delete collection.
|
void |
testDeleteCollectionNeg()
Negative Test for delete collection.
|
void |
testDeleteImage()
Test delete image.
|
void |
testDetectFaces()
Test detect faces.
|
void |
testFindImages()
Test find image.
|
void |
testGetClassifier()
Test get classifier.
|
void |
testGetClassifiers()
Test get classifiers.
|
void |
testGetCollection()
Test get collection.
|
void |
testGetCollectionNeg()
Negative Test for get collection.
|
void |
testGetCollections()
Test get collections.
|
void |
testGetImage()
Test get image.
|
void |
testGetImageNeg()
Negative Test for get image.
|
void |
testGetImages()
Test get images.
|
void |
testGetImagesNeg()
Negative Test for get images.
|
void |
testRecognizeText()
Test recognize text.
|
void |
testUpdateClassifier()
Test update classifier.
|
getMockWebServerUrl, jsonResponse, tearDowngetDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFilepublic void setUp()
throws java.lang.Exception
WatsonServiceUnitTestsetUp in class WatsonServiceUnitTestjava.lang.Exception - the exceptionpublic void testClassifyWithFile()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testClassifyWithBytes()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testUpdateClassifier()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testCreateClassifier()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testDeleteClassifier()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testDetectFaces()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testGetClassifier()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedException - the interrupted exceptionjava.io.IOException - Signals that an I/O exception has occurred.public void testGetClassifiers()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedException - the interrupted exceptionjava.io.IOException - Signals that an I/O exception has occurred.public void testRecognizeText()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testGetCollection()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testGetCollectionNeg()
public void testGetCollections()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testDeleteCollection()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testDeleteCollectionNeg()
public void testCreateCollection()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testCreateCollectionNeg()
public void testGetImage()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testGetImageNeg()
public void testGetImages()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exceptionpublic void testGetImagesNeg()
public void testCreateImage()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurredjava.lang.InterruptedException - the interrupted exceptionpublic void testCreateImageNeg1()
public void testFindImages()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurredjava.lang.InterruptedException - the interrupted exceptionpublic void testDeleteImage()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - Signals that an I/O exception has occurred.java.lang.InterruptedException - the interrupted exception