63646566676869
IUserRoleListService service = getUserRoleListService(); List<String> allUsers = service.getAllUsers(); if ( null != userComparator ) { Collections.sort( allUsers, userComparator ); } return new UserListWrapper( allUsers ); }
8788899091929394
users.add( "admin" ); users.add( "joe" ); users.add( "suzy" ); doReturn( users ).when( service ).getAllUsers(); UserListWrapper usersWrapper = userRoleListService.getUsers(); assertTrue( usersWrapper.getUsers().size() == 3 ); }