Skip to content

Commit b7edcb7

Browse files
committed
fix test logic
1 parent 6bc0ae1 commit b7edcb7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/com/auth0/client/mgmt/ManagementAPITest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ public void shouldThrowWhenApiTokenIsNull() throws Exception {
7777

7878
@Test
7979
public void shouldThrowOnUpdateWhenApiTokenIsNull() throws Exception {
80+
ManagementAPI api = new ManagementAPI(DOMAIN, API_TOKEN);
81+
8082
exception.expect(IllegalArgumentException.class);
8183
exception.expectMessage("'api token' cannot be null!");
82-
new ManagementAPI(DOMAIN, null);
84+
api.setApiToken(null);
8385
}
8486

8587
@Test

0 commit comments

Comments
 (0)