Skip to content

Commit

Permalink
Fix raw convert error message test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzanj authored Apr 23, 2018
1 parent 2ab4ea8 commit 0907886
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.cloudinary.utils.ObjectUtils;
import com.cloudinary.utils.Rectangle;
import org.cloudinary.json.JSONArray;
import org.cloudinary.json.JSONObject;
import org.junit.*;
import org.junit.rules.TestName;

Expand Down Expand Up @@ -404,7 +403,7 @@ public void testRawConvertRequest() {
try {
cloudinary.uploader().upload(SRC_TEST_IMAGE, asMap("raw_convert", "illegal", "tags", Arrays.asList(SDK_TEST_TAG, UPLOADER_TAG)));
} catch (Exception e) {
assertTrue(e.getMessage().matches("(.*)(Illegal value|not a valid)(.*)"));
assertTrue(e.getMessage().contains("Raw convert is invalid"));
}
}

Expand Down

0 comments on commit 0907886

Please sign in to comment.