List of usage examples for org.springframework.beans NotReadablePropertyException getPropertyName
public String getPropertyName()
From source file:org.springframework.beans.AbstractPropertyAccessorTests.java
@Test public void getUnknownProperty() { Simple target = new Simple("John", 2); AbstractPropertyAccessor accessor = createAccessor(target); try {//w w w . j ava 2s .c om accessor.getPropertyValue("foo"); fail("Should have failed to get an unknown property."); } catch (NotReadablePropertyException e) { assertEquals(Simple.class, e.getBeanClass()); assertEquals("foo", e.getPropertyName()); } }