Package org.springframework.binding.collection

Examples of org.springframework.binding.collection.MapAdaptable


      }
    }
  }

  private Map adapt(Object base) {
    MapAdaptable adaptable = (MapAdaptable) base;
    return adaptable.asMap();
  }
View Full Code Here


    assertTrue(context.isPropertyResolved());
    assertEquals(null, value);
  }

  public void testSetValue() {
    MapAdaptable testMap = new TestMapAdaptable();
    context.getELResolver().setValue(context, testMap, "foo", "foo");
    assertTrue(context.isPropertyResolved());
    assertEquals("foo", testMap.asMap().get("foo"));
  }
View Full Code Here

    assertTrue(context.isPropertyResolved());
    assertEquals("foo", testMap.asMap().get("foo"));
  }

  public void testSetValue_OverWrite() {
    MapAdaptable testMap = new TestMapAdaptable();
    context.getELResolver().setValue(context, testMap, "bar", "foo");
    assertTrue(context.isPropertyResolved());
    assertEquals("foo", testMap.asMap().get("bar"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.binding.collection.MapAdaptable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.