/** This test tests that if invalidfield is passed as a field for the getter */ @Test(expected = AssertionError.class) public void testPassInvalidFieldToGettersPerson() { beanTester.testGetterForField("invalid"); }
/** * 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")); }
/** 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); }
/** * 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")); }