示例#1
0
 @Test
 public void testToString() {
   assertEquals(
       "User{" + homer.id + ", homer, simpson, secret, [email protected]}", homer.toString());
 }
 @Test
 public void testToString() {
   assertEquals(
       "User{" + user.userID + ", Rachel, Kavanagh, 24, female, student}", user.toString());
 }
示例#3
0
 @Test
 public void shouldHaveAName() {
   assertEquals("firstUser", firstUser.toString());
 }