Package org.infinispan.distribution.ch

Examples of org.infinispan.distribution.ch.DefaultConsistentHash.locate()


      // Making use of Mock Objects for non-critical components helps isolate the problem you are trying to test.
      dch.setCaches(new HashSet(Arrays.asList(EasyMock.createNiceMock(Address.class),
                                  EasyMock.createNiceMock(Address.class),
                                  EasyMock.createNiceMock(Address.class))));

      List<Address> a = dch.locate("somekey", 2);
      assert a.size() == 2 : "Was expecting 2 entries in the location list";
   }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.