Skip to content

Commit

Permalink
set username to null and retest
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangs18 committed Oct 4, 2024
1 parent 3e40a1d commit 9734e19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/us/kbase/test/userprofile/FullServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ public void testBasicPath() throws Exception {

// Test no username
UserProfile noUsernameP = new UserProfile().withUser(new User()
.withUsername(null)
.withRealname("real real name")
.withThumbnail("thumb thumb nail"))
.withProfile(new UObject(ImmutableMap.of("test", "noUsername")));
USR1_CLIENT.setUserProfile(new SetUserProfileParams().withProfile(noUsernameP));

List<User> emptyUsers = CLIENT.filterUsers( new FilterParams().withFilter(""));
List<User> emptyUsers = CLIENT.filterUsers(new FilterParams().withFilter(""));
assertTrue(emptyUsers.isEmpty());
emptyUsers = CLIENT.filterUsers( new FilterParams().withFilter("filter"));
assertTrue(emptyUsers.isEmpty());
Expand Down

0 comments on commit 9734e19

Please sign in to comment.