Skip to content

Commit f265c89

Browse files
committed
remove delete_all from tests. fix face coordinates in explicit
1 parent a2fa28c commit f265c89

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cloudinary-core/src/main/java/com/cloudinary/Uploader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public Map explicit(String publicId, Map options) throws IOException {
105105
params.put("eager", buildEager((List<Transformation>) options.get("eager")));
106106
params.put("headers", buildCustomHeaders(options.get("headers")));
107107
params.put("tags", StringUtils.join(Cloudinary.asArray(options.get("tags")), ","));
108-
params.put("face_coordinates", StringUtils.join(Cloudinary.asArray(options.get("face_coordinates")), ","));
108+
if (options.get("face_coordinates") != null) {
109+
params.put("face_coordinates", options.get("face_coordinates").toString());
110+
}
109111
return callApi("explicit", params, options, null);
110112
}
111113

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ private void assertContains(Object object, Collection list) {
352352
assertTrue(list.contains(object));
353353
}
354354

355-
//this test must be last because it deletes (potentially) all dependent transformations which some tests rely on.
356-
@Test
355+
// This test must be last because it deletes (potentially) all dependent transformations which some tests rely on.
356+
// Add @Test if you really want to test it - This test deletes derived resources!
357357
public void testDeleteAllResources() throws Exception {
358358
// should allow deleting all resources
359359
cloudinary.uploader().upload("src/test/resources/logo.png", Cloudinary.asMap("public_id", "api_test5", "eager", Collections.singletonList(new Transformation().crop("scale").width(2.0))));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy