Skip to content

Commit 9aa1efe

Browse files
nitzanjAmir Tocker
authored andcommitted
Fix deleteStreamProfile no-options overload.
1 parent 919900c commit 9aa1efe

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public ApiResponse deleteStreamingProfile(String name, Map options) throws Excep
434434
* @see Api#deleteStreamingProfile(String, Map)
435435
*/
436436
public ApiResponse deleteStreamingProfile(String name) throws Exception {
437-
return getStreamingProfile(name, null);
437+
return deleteStreamingProfile(name, null);
438438
}
439439

440440
/**

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractStreamingProfilesApiTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
import java.util.Map;
1919

2020
import static org.hamcrest.Matchers.*;
21-
import static org.junit.Assert.assertThat;
22-
import static org.junit.Assert.assertTrue;
21+
import static org.junit.Assert.*;
2322
import static org.junit.Assume.assumeNotNull;
2423

2524
abstract public class AbstractStreamingProfilesApiTest extends MockableTest {
@@ -92,10 +91,7 @@ public void testDelete() throws Exception {
9291
}
9392

9493
result = api.deleteStreamingProfile(DELETE_PROFILE_NAME);
95-
assertTrue(result.containsKey("data"));
96-
Map profile = (Map) result.get("data");
97-
assertThat(profile, (Matcher) hasEntry("name", (Object) DELETE_PROFILE_NAME));
98-
94+
assertEquals("deleted", result.get("message"));
9995
}
10096

10197
@Test

0 commit comments

Comments
 (0)