mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Split AbstractMarshallable into SelfDescribingMarshallable and BytesInBinaryMarshallable, closes https://github.com/OpenHFT/Chronicle-Wire/issues/151
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.wire.AbstractMarshallable;
|
||||
import net.openhft.chronicle.wire.SelfDescribingMarshallable;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
@@ -34,11 +34,11 @@ public final class AbstractMarshallableKeyValueTest {
|
||||
assertThat(map.get(new Key()).number, is(new Value().number));
|
||||
}
|
||||
|
||||
private static final class Key extends AbstractMarshallable {
|
||||
private static final class Key extends SelfDescribingMarshallable {
|
||||
private String k = "key";
|
||||
}
|
||||
|
||||
private static final class Value extends AbstractMarshallable {
|
||||
private Integer number = Integer.valueOf(17);
|
||||
private static final class Value extends SelfDescribingMarshallable {
|
||||
private Integer number = 17;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.wire.AbstractBytesMarshallable;
|
||||
import net.openhft.chronicle.wire.AbstractMarshallable;
|
||||
import net.openhft.chronicle.wire.BytesInBinaryMarshallable;
|
||||
import net.openhft.chronicle.wire.SelfDescribingMarshallable;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -108,7 +108,7 @@ public class SerializableTest {
|
||||
}
|
||||
}
|
||||
|
||||
static class Bar extends AbstractBytesMarshallable {
|
||||
static class Bar extends BytesInBinaryMarshallable {
|
||||
|
||||
final String x;
|
||||
|
||||
@@ -117,7 +117,7 @@ public class SerializableTest {
|
||||
}
|
||||
}
|
||||
|
||||
static class Bar2 extends AbstractMarshallable {
|
||||
static class Bar2 extends SelfDescribingMarshallable {
|
||||
|
||||
final String x;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user