Example #1
0
 public void testCollect() {
   CMITree tree = CMITree.empty();
   tree.setValue("cmi.some.thing", "somevalue");
   Map<String, String> values = CMITree.collectValues(tree);
   assertTrue(values.containsKey("cmi.some.thing"));
 }
Example #2
0
 public void testEmpty() {
   CMITree tree = CMITree.empty();
   assertEquals(null, tree.getValue("anything"));
 }
Example #3
0
 public void testSetAndGet() {
   CMITree tree = CMITree.empty();
   tree.setValue("cmi.some.thing", "somevalue");
   assertEquals("somevalue", tree.getValue("cmi.some.thing"));
 }