Exemple #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");
 }
Exemple #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"));
 }
Exemple #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);
 }
Exemple #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"));
 }