Skip to content

Commit d74590c

Browse files
author
chris-hoefgen
committed
tweaked unit test
1 parent e466ffd commit d74590c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/devcycle/sdk/server/cloud/DevCycleCloudClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void variable_emptyKey_throwsException() {
155155
.build();
156156

157157
Assert.assertThrows("Missing parameter: key",
158-
DevCycleException.class, () -> api.variable(user, null, true));
158+
IllegalArgumentException.class, () -> api.variable(user, null, true));
159159
}
160160

161161
@Test
@@ -165,7 +165,7 @@ public void variable_emptyDefaultValue_throwsException() {
165165
.build();
166166

167167
Assert.assertThrows("Missing parameter: defaultValue",
168-
DevCycleException.class, () -> api.variable(user, "wibble", null));
168+
IllegalArgumentException.class, () -> api.variable(user, "wibble", null));
169169
}
170170

171171
@Test

0 commit comments

Comments
 (0)