@Test public void testHasModelObjectAnnotatedMethod() { assertThat(ModelObjects.isAccessible(new TestPmo(), ModelObject.DEFAULT_NAME), is(true)); assertThat(ModelObjects.isAccessible(new PmoWithNamedModelObject(), PmoWithNamedModelObject.MODEL_OBJECT), is(true)); assertThat(ModelObjects.isAccessible(new PmoWithNamedModelObject(), ModelObject.DEFAULT_NAME), is(true)); }
public static boolean isAccessible(Object pmo, String modelObjectName) { return getModelObjectAccessMember(pmo, modelObjectName).isPresent(); }
ModelObjects { public static boolean isAccessible(Object pmo, String modelObjectName) { return getModelObjectAccessMember(pmo, modelObjectName).isPresent(); } }
ModelObjects { public static boolean isAccessible(Object pmo, String modelObjectName) { return getModelObjectAccessMember(pmo, modelObjectName).isPresent(); } private  ModelObjects(Class<?> pmoClass, String modelObjectName); }
ModelObjects { public static boolean isAccessible(Object pmo, String modelObjectName) { return getModelObjectAccessMember(pmo, modelObjectName).isPresent(); } private  ModelObjects(Class<?> pmoClass, String modelObjectName); static Supplier<Object> supplierFor(Object pmo, String modelObjectName); static boolean isAccessible(Object pmo, String modelObjectName); }
ModelObjects { public static boolean isAccessible(Object pmo, String modelObjectName) { return getModelObjectAccessMember(pmo, modelObjectName).isPresent(); } private  ModelObjects(Class<?> pmoClass, String modelObjectName); static Supplier<Object> supplierFor(Object pmo, String modelObjectName); static boolean isAccessible(Object pmo, String modelObjectName);  }