예제 #1
0
 @Test
 public void testGetAgeRange(User user) throws AssertionError {
   assertTrue(1 <= user.getAge() && user.getAge() <= 150);
 }
예제 #2
0
 @Test
 public void testGetAge(User user) throws AssertionError {
   assertTrue(String.valueOf(user.getAge()).matches("[0-9]+"));
 }