svnno****@sourc*****
svnno****@sourc*****
2008年 11月 10日 (月) 22:47:11 JST
Revision: 2128 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jiemamy&view=rev&rev=2128 Author: daisuke_m Date: 2008-11-10 22:47:11 +0900 (Mon, 10 Nov 2008) Log Message: ----------- node追加削除のappender化、コミット漏れ。 Modified Paths: -------------- artemis/trunk/org.jiemamy.core/src/test/java/org/jiemamy/core/utils/processor/root/GetNodesProcessorTest.java -------------- next part -------------- Modified: artemis/trunk/org.jiemamy.core/src/test/java/org/jiemamy/core/utils/processor/root/GetNodesProcessorTest.java =================================================================== --- artemis/trunk/org.jiemamy.core/src/test/java/org/jiemamy/core/utils/processor/root/GetNodesProcessorTest.java 2008-11-10 13:38:03 UTC (rev 2127) +++ artemis/trunk/org.jiemamy.core/src/test/java/org/jiemamy/core/utils/processor/root/GetNodesProcessorTest.java 2008-11-10 13:47:11 UTC (rev 2128) @@ -65,11 +65,11 @@ */ @Test public void test01_rootModelから特定のエンティティを抽出するテスト() throws Exception { - rootModel.getNodes().add(rootModel.createJiemamyModel(TableModel.class).init("table1")); - rootModel.getNodes().add(rootModel.createJiemamyModel(TableModel.class).init("table2")); - rootModel.getNodes().add(rootModel.createJiemamyModel(TableModel.class).init("table3")); - rootModel.getNodes().add(rootModel.createJiemamyModel(ViewModel.class).init("view1", "select * from table1")); - rootModel.getNodes().add(rootModel.createJiemamyModel(ViewModel.class).init("view2", "select * from table2")); + rootModel.appendModel(rootModel.createJiemamyModel(TableModel.class).init("table1")); + rootModel.appendModel(rootModel.createJiemamyModel(TableModel.class).init("table2")); + rootModel.appendModel(rootModel.createJiemamyModel(TableModel.class).init("table3")); + rootModel.appendModel(rootModel.createJiemamyModel(ViewModel.class).init("view1", "select * from table1")); + rootModel.appendModel(rootModel.createJiemamyModel(ViewModel.class).init("view2", "select * from table2")); assertThat(rootModel.getNodes(TableModel.class).size(), is(3)); assertThat(rootModel.getNodes(ViewModel.class).size(), is(2));