Skip to content

Commit 282d522

Browse files
nitzanjtocker
authored andcommitted
Add gravity-auto test (#64)
1 parent 469c740 commit 282d522

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cloudinary-core/src/test/java/com/cloudinary/test/CloudinaryTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ private Object parametersForTestQuality() {
297297

298298
}
299299

300+
@Test
301+
public void testAutoGravity(){
302+
Transformation transformation = new Transformation().crop("crop").gravity("auto").width(0.5f);
303+
String result = cloudinary.url().transformation(transformation).generate("test");
304+
assertEquals(DEFAULT_UPLOAD_PATH + "c_crop,g_auto,w_0.5/test", result);
305+
}
306+
300307
@Test
301308
public void testTransformationSimple() {
302309
// should support named transformation

0 commit comments

Comments
 (0)