Skip to content

Commit

Permalink
Rework test to hopefully pass on java 8 & 11
Browse files Browse the repository at this point in the history
Looks like the error message is different.

Need to stop supporting java 8
  • Loading branch information
MrCreosote committed Jul 21, 2023
1 parent d0d5453 commit ba9079e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/us/kbase/test/auth2/service/api/AdminTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ public void anonIDsToUserNamesFailInputs() throws Exception {
final Admin admin = new Admin(auth);

final String t = "token";
final String a = UID1.toString();
final String a = "b8e62d05-1968-4aa0-916d-8815ab69ea15";

anonIDsToUserNamesFail(admin, t, a + ", foobar, " + a, new IllegalParameterException(
"Illegal anonymous user ID [foobar]: Invalid UUID string: foobar"));
anonIDsToUserNamesFail(admin, t, a + "x", new IllegalParameterException(
String.format("Illegal anonymous user ID [%sx]: UUID string too large", UID1)));
anonIDsToUserNamesFail(admin, t, a.substring(0, 35) + "x", new IllegalParameterException(
"Illegal anonymous user ID [b8e62d05-1968-4aa0-916d-8815ab69ea1x]: "
+ "Error at index 11 in: \"8815ab69ea1x\""));
anonIDsToUserNamesFail(admin, t, a + ", , " + a, new IllegalParameterException(
"Illegal anonymous user ID []: Invalid UUID string: "));

Expand Down

0 comments on commit ba9079e

Please sign in to comment.