Exemplo n.º 1
0
  public void testChildren() {
    CollectionLeaf leaf =
        new CollectionLeaf(new SequenceNumber(1), 1, AboraConverter.toAboraContent("hello"));
    BeEdition edition = new BeEdition();
    RootNode root = new RootNode(edition, new SequenceNumber(10), leaf);

    List children = root.children();
    assertEquals(1, children.size());
    assertTrue(children.contains(leaf));
  }
Exemplo n.º 2
0
 public void testChildrenEmpty() {
   RootNode node = new RootNode(null, new SequenceNumber(1));
   assertTrue(node.children().isEmpty());
 }