" }",
"}");
}
public void test_flowContainer_MOVE() throws Exception {
TileLayoutInfo layout =
parseJavaInfo(
"public class Test extends TileLayout {",
" public Test() {",
" setRect(0, 0, 350, 200);",
" {",
" Button button_1 = new Button();",
" addTile(button_1);",
" }",
" {",
" Button button_2 = new Button();",
" addTile(button_2);",
" }",
" }",
"}");
CanvasInfo button_1 = getJavaInfoByName("button_1");
CanvasInfo button_2 = getJavaInfoByName("button_2");
layout.refresh();
//
FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
assertTrue(flowContainer.validateComponent(button_2));
assertTrue(flowContainer.validateReference(button_1));
flowContainer.command_MOVE(button_2, button_1);