Package ch.fusun.baron.property.api

Examples of ch.fusun.baron.property.api.PropertyService


  /**
   * Tests that the correct entries are returned
   */
  @Test
  public void testGetAllOwnerships() {
    PropertyService service = new PropertyServiceImpl();
    String a = "a";
    String b = "b";
    Double c = 2.0;
    Integer i = 1;
    service.setOwnership(c, a);
    service.setOwnership(i, b);
    Map<Integer, List<String>> allOwnerships = service.getAllOwnerships(
        Integer.class, String.class);
    assertEquals("Wrong number of entries", 1, allOwnerships.size());
    assertEquals("Wrong entry", allOwnerships.get(i).get(0), b);
  }
View Full Code Here

TOP

Related Classes of ch.fusun.baron.property.api.PropertyService

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.