use of org.apache.geode.management.internal.cli.json.TypedJson in project geode by apache.
the class TypedJsonJUnitTest method testEnumList.
@Test
public void testEnumList() {
List ls = new ArrayList();
ls.add(Currency.DIME);
ls.add(Currency.NICKLE);
ls.add(Currency.QUARTER);
ls.add(Currency.NICKLE);
TypedJson tjson = new TypedJson(RESULT, ls);
System.out.println(tjson);
}
use of org.apache.geode.management.internal.cli.json.TypedJson in project geode by apache.
the class TypedJsonJUnitTest method testBigDecimal.
@Test
public void testBigDecimal() {
java.math.BigDecimal dc = new java.math.BigDecimal(20);
TypedJson tjson = new TypedJson(RESULT, dc);
System.out.println(tjson);
}
use of org.apache.geode.management.internal.cli.json.TypedJson in project geode by apache.
the class TypedJsonJUnitTest method testEnum.
@Test
public void testEnum() {
EnumContainer test = new EnumContainer(Currency.DIME);
TypedJson tjson = new TypedJson(RESULT, test);
checkResult(tjson);
TypedJson enumObj = new TypedJson(RESULT, Currency.DIME);
checkResult(enumObj);
}
use of org.apache.geode.management.internal.cli.json.TypedJson in project geode by apache.
the class TypedJsonJUnitTest method testQueryLike.
@Test
public void testQueryLike() {
Portfolio[] p = createPortfoliosAndPositions(2);
TypedJson t1 = new TypedJson(RESULT, null);
t1.add("member", "server1");
System.out.println(t1);
for (int i = 0; i < 2; i++) {
t1.add(RESULT, p[i]);
}
System.out.println(t1);
}
use of org.apache.geode.management.internal.cli.json.TypedJson in project geode by apache.
the class TypedJsonJUnitTest method testObjects.
@Test
public void testObjects() {
Object obj = new Object();
TypedJson tjson = new TypedJson(RESULT, obj);
System.out.println(tjson);
}
Aggregations