HCOLL-259 added a JSON byte buffer converter

This commit is contained in:
Rob Austin
2014-12-22 23:00:49 +00:00
parent c779ee95c5
commit 49e5713cae
6 changed files with 179 additions and 21 deletions
+27
View File
@@ -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;
}
}
+20
View File
@@ -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();