[Exmmt-commit] SF.net SVN: exmmt: [84] net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/b
Status: Inactive
Brought to you by:
lgrammel
|
From: <lgr...@us...> - 2006-06-06 00:54:37
|
Revision: 84 Author: lgrammel Date: 2006-06-05 05:25:07 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/exmmt/?rev=84&view=rev Log Message: ----------- #1500774 scenario "shopping list" Modified Paths: -------------- net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/builder/ControllerTreeBuilderTest.java Modified: net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/builder/ControllerTreeBuilderTest.java =================================================================== --- net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/builder/ControllerTreeBuilderTest.java 2006-06-05 12:09:03 UTC (rev 83) +++ net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/builder/ControllerTreeBuilderTest.java 2006-06-05 12:25:07 UTC (rev 84) @@ -15,7 +15,10 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; import junit.framework.JUnit4TestAdapter; +import net.sourceforge.exmmt.renderer.AttributeRenderer; +import net.sourceforge.exmmt.renderer.NullRenderer; import org.jdom.Element; import org.junit.Test; @@ -34,6 +37,7 @@ assertNotNull(composite.getChildren()); assertEquals(0, composite.getChildren().size()); assertNull(composite.getParent()); + assertTrue(composite.getRenderer() instanceof NullRenderer); } @Test @@ -52,7 +56,6 @@ assertEquals(element, composite.getModel()); assertNotNull(composite.getChildren()); assertEquals(2, composite.getChildren().size()); - assertNull(composite.getParent()); Controller childComposite1 = composite.getChildren().get(0); @@ -61,6 +64,7 @@ assertNotNull(childComposite1.getChildren()); assertEquals(0, childComposite1.getChildren().size()); assertEquals(composite, childComposite1.getParent()); + assertTrue(childComposite1.getRenderer() instanceof AttributeRenderer); Controller childComposite2 = composite.getChildren().get(1); @@ -69,6 +73,7 @@ assertNotNull(childComposite2.getChildren()); assertEquals(0, childComposite2.getChildren().size()); assertEquals(composite, childComposite2.getParent()); + assertTrue(childComposite2.getRenderer() instanceof AttributeRenderer); } @Test @@ -84,7 +89,6 @@ assertEquals(listElement, composite.getModel()); assertNotNull(composite.getChildren()); assertEquals(1, composite.getChildren().size()); - assertNull(composite.getParent()); Controller childComposite = composite.getChildren().get(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |