mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 improved StatelessServerConnector, but its still in draft.
This commit is contained in:
@@ -79,17 +79,21 @@ public class SerializerTest {
|
||||
|
||||
ChronicleMapBuilder builder = ChronicleMapBuilder.of(clazz, Integer.class);
|
||||
builder.preMapConstruction();
|
||||
|
||||
Serializer v = new Serializer(builder.keyBuilder);
|
||||
{
|
||||
Serializer v = new Serializer(builder.keyBuilder);
|
||||
|
||||
|
||||
v.writeMarshallable(key, out);
|
||||
v.writeMarshallable(key, out);
|
||||
|
||||
long position = out.position();
|
||||
in.limit(position);
|
||||
|
||||
Object actual = v.readMarshallable(in);
|
||||
Assert.assertEquals(actual, key);
|
||||
|
||||
}
|
||||
|
||||
long position = out.position();
|
||||
in.limit(position);
|
||||
|
||||
Object actual = v.readMarshallable(in);
|
||||
Assert.assertEquals(actual, key);
|
||||
}
|
||||
|
||||
public static class MyTestClassExternalizable implements Externalizable {
|
||||
|
||||
Reference in New Issue
Block a user