@Test public void testGetChildren20() throws Exception { DbAccessor<?> accessor = new DotStatAccessor(nbbBean(), supplier); assertArrayEquals(new String[] {"LOCSTL04"}, accessor.getChildren().toArray()); assertArrayEquals(new String[] {"AUS"}, accessor.getChildren("LOCSTL04").toArray()); assertArrayEquals(new String[] {"M"}, accessor.getChildren("LOCSTL04", "AUS").toArray()); }
@Test public void testGetChildren21() throws Exception { DbAccessor<?> accessor = new DotStatAccessor(ecbBean(), supplier); List<String> children; children = accessor.getChildren(); assertEquals(1, children.size()); assertTrue(children.contains("A")); children = accessor.getChildren("A"); assertEquals(30, children.size()); assertTrue(children.contains("BEL")); assertTrue(children.contains("POL")); children = accessor.getChildren("A", "BEL"); assertEquals(1, children.size()); assertTrue(children.contains("1")); children = accessor.getChildren("hello"); assertTrue(children.isEmpty()); }