public class TestImageAction
extends java.lang.Object
Constructor and Description |
---|
TestImageAction() |
Modifier and Type | Method and Description |
---|---|
void |
addImageBase64()
Test custom-encoding is base64.
|
void |
addImageByteArray()
Test custom-encoding is null.
|
void |
addImageUriAndEndpoint()
Test custom-encoding is null and content/type is image/jpeg for backwards compatibility
Handle body as json.
|
void |
addImageUriAndEndpointWithMimeType()
Test custom-encoding is null and content/type is application/json
Handle body as json, read mimetype from json body if it includes that.
|
void |
checkHttpPostResult(java.net.HttpURLConnection httpConn,
int targetResponseCode) |
void |
createAsset()
Create a new asset for image
|
void |
deleteAsset() |
void |
setAuth(java.lang.String user,
java.lang.String pwd,
java.net.HttpURLConnection con) |
public void createAsset() throws java.lang.Exception
java.lang.Exception
public void addImageByteArray() throws java.io.IOException, MXException
java.io.IOException
MXException
public void addImageBase64() throws java.io.IOException, MXException
java.io.IOException
MXException
public void addImageUriAndEndpoint() throws java.io.IOException, MXException
java.io.IOException
MXException
public void addImageUriAndEndpointWithMimeType() throws java.io.IOException, MXException
java.io.IOException
MXException
public void deleteAsset() throws java.lang.Exception
java.lang.Exception
public void setAuth(java.lang.String user, java.lang.String pwd, java.net.HttpURLConnection con)
public void checkHttpPostResult(java.net.HttpURLConnection httpConn, int targetResponseCode) throws java.io.IOException, MXException
java.io.IOException
MXException