mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-259 added a JSON byte buffer converter
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package eg;
|
||||
|
||||
/**
|
||||
* Created by Rob on 20/12/14.
|
||||
*/
|
||||
public class TestBeanClass {
|
||||
|
||||
|
||||
String name;
|
||||
int value;
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package eg;
|
||||
|
||||
import com.sun.tools.internal.xjc.generator.bean.BeanGenerator;
|
||||
|
||||
import java.beans.BeanInfo;
|
||||
import java.beans.IntrospectionException;
|
||||
import java.beans.Introspector;
|
||||
|
||||
/**
|
||||
* Created by Rob on 20/12/14.
|
||||
*/
|
||||
public class TestMain {
|
||||
|
||||
public static void main(String... args) throws IntrospectionException {
|
||||
BeanInfo info= Introspector.getBeanInfo(TestBeanClass .class);
|
||||
System.out.println(info);
|
||||
|
||||
info.getPropertyDescriptors();
|
||||
}
|
||||
}
|
||||
@@ -121,9 +121,8 @@ public class CHMUseCasesTest {
|
||||
return;
|
||||
|
||||
|
||||
|
||||
// waitTillEqual(5000);
|
||||
// assertEquals(map1, map2);
|
||||
// waitTillEqual(5000);
|
||||
// assertEquals(map1, map2);
|
||||
}
|
||||
|
||||
if (typeOfMap == TypeOfMap.SIMPLE)
|
||||
@@ -139,12 +138,6 @@ public class CHMUseCasesTest {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (ByteBuffer.class.isAssignableFrom(map1.keyClass()) ||
|
||||
ByteBuffer.class.isAssignableFrom(map1.valueClass())) {
|
||||
return;
|
||||
}
|
||||
|
||||
File file = new File(TMP + "/chronicle-map-" + System.nanoTime() + ".json");
|
||||
file.deleteOnExit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user