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