@Test( expected = IllegalAccessException.class )
public void testSetValueWithFormatterNonExistentProperty() throws Exception {
TestAction action1 = new TestAction();
ActionHarness harness1 = new ActionHarness( action1 );
PropertyNameFormatter f = new PropertyNameFormatter() {
public String format( String name ) {
return "THISPROPERTYDOESNOTEXIST";
}
};
harness1.setValue( "THISWILLGETCLOBBERED", "test message action1", new EagerFailingCallback(), f );
}