mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Use ChronicleMapBuilder to build all ChronicleMap
This commit is contained in:
@@ -117,8 +117,8 @@ public class StatelessClientTest {
|
||||
serverMap.put(10, new StringBuilder("Hello World"));
|
||||
|
||||
try (ChronicleMap<Integer, StringBuilder> statelessMap =
|
||||
ChronicleMapStatelessClientBuilder
|
||||
.<Integer, StringBuilder>of(new InetSocketAddress("localhost", port))
|
||||
ChronicleMapBuilder
|
||||
.of(Integer.class, StringBuilder.class, new InetSocketAddress("localhost", port))
|
||||
.putReturnsNull(true)
|
||||
.create()) {
|
||||
String actual = statelessMap.getMapped(10, ToString.INSTANCE);
|
||||
|
||||
Reference in New Issue
Block a user