/** * Test method for {@link * org.coreasm.engine.plugins.list.FlattenListFunctionElement#FlattenListFunctionElement()}. */ @Test public void testFlattenListFunctionElement() { List<? extends Element> r = func.flattenList(lists[3].getList()); assertEquals(4, r.size()); System.out.println(r); r = func.flattenList(lists[0].getList()); assertEquals(0, r.size()); System.out.println(r); }
/** * Test method for {@link * org.coreasm.engine.plugins.list.FlattenListFunctionElement#getValue(java.util.List)}. */ @Test public void testGetValue() { Element e = func.getValue(new ElementList(lists[2])); assertTrue(e instanceof AbstractListElement); assertEquals(4, ((AbstractListElement) e).size()); e = func.getValue(new ElementList(lists[0])); assertTrue(e instanceof AbstractListElement); assertEquals(0, ((AbstractListElement) e).size()); }