mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
moved testPrefixStingFunctionSerialization to SerializerTest
This commit is contained in:
@@ -29,8 +29,24 @@ import java.io.*;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Collections;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class SerializerTest {
|
||||
|
||||
@Test
|
||||
public void testPrefixStingFunctionSerialization() throws Exception {
|
||||
|
||||
ByteBufferBytes b = new ByteBufferBytes(ByteBuffer.allocate(512));
|
||||
|
||||
CHMUseCasesTest.PrefixStingFunction expected = new CHMUseCasesTest.PrefixStingFunction("New ");
|
||||
b.writeObject(expected);
|
||||
|
||||
b.clear();
|
||||
CHMUseCasesTest.PrefixStingFunction actual = b.readObject(CHMUseCasesTest.PrefixStingFunction.class);
|
||||
assertEquals(expected, actual);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValueMarshallable() throws Exception {
|
||||
testReadWriteValue("Test");
|
||||
|
||||
Reference in New Issue
Block a user