Skip to content

Commit f8c1dfd

Browse files
Clean up tests
1 parent fdf0146 commit f8c1dfd

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/test/java/com/auth0/client/auth/AuthAPITest.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,14 +1556,6 @@ public void addOobAuthenticatorThrowsWhenChannelsNull() {
15561556
"'OOB channels' cannot be null!");
15571557
}
15581558

1559-
@SuppressWarnings("deprecation")
1560-
@Test
1561-
public void addOobAuthenticatorThrowsWhenPhoneNumberNull() {
1562-
verifyThrows(IllegalArgumentException.class,
1563-
() -> api.addOobAuthenticator("mfaToken", Collections.singletonList("sms"), null, null),
1564-
"'phone number' cannot be null!");
1565-
}
1566-
15671559
@SuppressWarnings("deprecation")
15681560
@Test
15691561
public void addOobAuthenticatorRequest() throws Exception {
@@ -1589,6 +1581,13 @@ public void addOobAuthenticatorRequest() throws Exception {
15891581
assertThat(response.getRecoveryCodes(), notNullValue());
15901582
}
15911583

1584+
@Test
1585+
public void addOobAuthenticatorThrowsWhenPhoneNumberNull() {
1586+
verifyThrows(IllegalArgumentException.class,
1587+
() -> api.addOobAuthenticator("mfaToken", Collections.singletonList("sms"), null, null),
1588+
"'phone number' cannot be null!");
1589+
}
1590+
15921591
@Test
15931592
public void addOobAuthenticatorThrowsWhenEmailNull() {
15941593
verifyThrows(IllegalArgumentException.class,

0 commit comments

Comments
 (0)