moved testPrefixStingFunctionSerialization to SerializerTest

This commit is contained in:
Rob Austin
2014-12-17 10:01:15 +00:00
parent e4e231bed3
commit 9368e63f3b
2 changed files with 21 additions and 21 deletions
@@ -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");