mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-257 fixed StringPrefixFunction serialization test case
This commit is contained in:
@@ -64,7 +64,7 @@ public class CHMUseCasesTest {
|
||||
|
||||
|
||||
private static class PrefixStingFunction implements Function<String, String> {
|
||||
private String prefix;
|
||||
private final String prefix;
|
||||
|
||||
public PrefixStingFunction(@NotNull String prefix) {
|
||||
this.prefix = prefix;
|
||||
@@ -74,6 +74,17 @@ public class CHMUseCasesTest {
|
||||
public String apply(String s) {
|
||||
return prefix + s;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof PrefixStingFunction &&
|
||||
prefix.equals(((PrefixStingFunction) obj).prefix);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return prefix;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +109,6 @@ public class CHMUseCasesTest {
|
||||
}
|
||||
|
||||
|
||||
@Ignore("HCOLL-257 Object serialization is failing when calling writeObject() / readObject()")
|
||||
@Test
|
||||
public void testPrefixStingFunctionSerialization() throws ExecutionException,
|
||||
InterruptedException, IOException {
|
||||
@@ -114,7 +124,6 @@ public class CHMUseCasesTest {
|
||||
|
||||
}
|
||||
|
||||
@Ignore("HCOLL-257 Object serialization is failing when calling writeObject() / readObject()")
|
||||
@Test
|
||||
public void testStringStringMap() throws ExecutionException, InterruptedException, IOException {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user