public void testSetValue_OverWrite() { MapAdaptable<String, String> testMap = new TestMapAdaptable(); context.getELResolver().setValue(context, testMap, "bar", "foo"); assertTrue(context.isPropertyResolved()); assertEquals("foo", testMap.asMap().get("bar")); }
public void testSetValue() { MapAdaptable<String, String> testMap = new TestMapAdaptable(); context.getELResolver().setValue(context, testMap, "foo", "foo"); assertTrue(context.isPropertyResolved()); assertEquals("foo", testMap.asMap().get("foo")); }
public void testGetValue() { Object value = context.getELResolver().getValue(context, new TestMapAdaptable(), "bar"); assertTrue(context.isPropertyResolved()); assertEquals("bar", value); }
public void testGetType() { Class<?> type = context.getELResolver().getType(context, new TestMapAdaptable(), "bar"); assertTrue(context.isPropertyResolved()); assertEquals(String.class, type); }
public void testGetValue_UnknownProperty() { Object value = context.getELResolver().getValue(context, new TestMapAdaptable(), "foo"); assertTrue(context.isPropertyResolved()); assertEquals(null, value); }
public void testGetType_UnknownProperty() { Class<?> type = context.getELResolver().getType(context, new TestMapAdaptable(), "foo"); assertTrue(context.isPropertyResolved()); assertEquals(null, type); }