예제 #1
0
 public List<String> getLeavesQualifiers(String qualifier) {
   ResourceTypeTree tree = getTree(qualifier);
   if (tree != null) {
     return tree.getLeaves();
   }
   return Collections.emptyList();
 }
 @Test
 public void getLeaves() {
   assertThat(tree.getLeaves().size(), is(2));
   assertThat(tree.getLeaves(), hasItems("FIL", "UTS"));
 }