Class NullPropertyAssertionImpl
java.lang.Object
info.ejava.assignments.aop.houserenters.util.NullPropertyAssertion
info.ejava_student.starter.assignment3.aop.houserentals.NullPropertyAssertionImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGetterMethod(Object object, String getterName) Return the named Method for the object or empty if method does not exist.protected ObjectReturn the value returned from the getter method and report any errors that with a server-type error.Methods inherited from class info.ejava.assignments.aop.houserenters.util.NullPropertyAssertion
assertConditions, assertNotNull, assertNull, getterName, makeAssertion
-
Constructor Details
-
NullPropertyAssertionImpl
public NullPropertyAssertionImpl()
-
-
Method Details
-
getGetterMethod
Return the named Method for the object or empty if method does not exist.- Specified by:
getGetterMethodin classNullPropertyAssertion- Parameters:
object-getterName-- Returns:
- method for getterName in class or null if does not exist
-
getValue
Return the value returned from the getter method and report any errors that with a server-type error.- Specified by:
getValuein classNullPropertyAssertion- Parameters:
object-getterMethod-- Returns:
- result of calling method against object
-