Ejemplo n.º 1
0
 /** This test tests that if invalidfield is passed as a field for the getter */
 @Test(expected = AssertionError.class)
 public void testPassInvalidFieldToGettersPerson() {
   beanTester.testGetterForField("invalid");
 }
Ejemplo n.º 2
0
 /**
  * This test tests if getters are present for specific fields in the class and the names are in
  * the proper format
  */
 @Test
 public void testIndividualGettersPerson() {
   assertTrue(beanTester.testGetterForField("name"));
 }
Ejemplo n.º 3
0
 /** This test tests that exception is thrown if null is passed as a field for the getter */
 @Test(expected = IllegalArgumentException.class)
 public void testPassNullToGettersPerson() {
   beanTester.testGetterForField(null);
 }
Ejemplo n.º 4
0
 /**
  * This test tests if getters are present for specific fields in the class and the names are in
  * the proper format
  */
 @Test
 public void testIndividualGettersAddress() {
   assertTrue(beanTester.testGetterForField("zipcode"));
 }