Home | History | Annotate | Download | only in examples

Lines Matching refs:object

29         String doc = Util.getLocalResource("examples/any-object-example.yaml");
31 Map<String, Object> object = (Map<String, Object>) yaml.load(doc);
32 assertEquals(6, object.size());
33 assertEquals("[null, null]", object.get("none").toString());
34 List<?> list1 = (List<?>) object.get("none");
36 for (Object object2 : list1) {
40 assertEquals("[true, false, true, false]", object.get("bool").toString());
41 assertEquals(4, ((List<?>) object.get("bool")).size());
43 assertEquals(new Integer(42), object.get("int"));
44 assertEquals(new Double(3.14159), object.get("float"));
46 assertEquals("[LITE, RES_ACID, SUS_DEXT]", object.get("list").toString());
47 List<?> list2 = (List<?>) object.get("list");
49 for (Object object2 : list2) {
53 assertEquals("{hp=13, sp=5}", object.get("dict").toString());
54 Map<String, Integer> map = (Map<String, Integer>) object.get("dict");