Skip to content

Commit 0f2ba90

Browse files
Don't fail api tests if api_secret is not given
1 parent d366fb9 commit 0f2ba90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import static org.junit.Assert.assertNotNull;
55
import static org.junit.Assert.assertNotSame;
66
import static org.junit.Assert.assertTrue;
7+
import static org.junit.Assume.assumeNotNull;
78

89
import java.io.IOException;
910
import java.util.Arrays;
@@ -62,6 +63,7 @@ public static void setUpClass() throws IOException {
6263
@Before
6364
public void setUp() {
6465
this.cloudinary = new Cloudinary();
66+
assumeNotNull(cloudinary.getStringConfig("api_secret"));
6567
this.api = cloudinary.api();
6668
}
6769

0 commit comments

Comments
 (0)