You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2007/10/15 13:41:18 UTC

svn commit: r584748 - /maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizPrinterTest.java

Author: vsiveton
Date: Mon Oct 15 04:41:18 2007
New Revision: 584748

URL: http://svn.apache.org/viewvc?rev=584748&view=rev
Log:
o removed comments to better handle test case

Modified:
    maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizPrinterTest.java

Modified: maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizPrinterTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizPrinterTest.java?rev=584748&r1=584747&r2=584748&view=diff
==============================================================================
--- maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizPrinterTest.java (original)
+++ maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-ant/src/test/java/org/apache/maven/jxr/ant/doc/VizPrinterTest.java Mon Oct 15 04:41:18 2007
@@ -19,10 +19,7 @@
  * under the License.
  */
 
-import junit.framework.*;
-
-import org.apache.maven.jxr.ant.doc.VizAttrStmt;
-import org.apache.maven.jxr.ant.doc.VizPrinter;
+import junit.framework.TestCase;
 
 public class VizPrinterTest
     extends TestCase
@@ -68,13 +65,12 @@
         edge.addAttribute( "c", "1" );
         printer.addAttributeStatement( edge );
 
-        // TODO Removed due to a NPE
-        //        VizAttrStmt node = new VizAttrStmt();
-        //        edge.setType("node");
-        //        edge.addAttribute("c", "1");
-        //        edge.addAttribute("b", "2");
-        //        edge.addAttribute("a", "3");
-        //        printer.addAttributeStatement(node);
+        VizAttrStmt node = new VizAttrStmt();
+        node.setType("node");
+        node.addAttribute("c", "1");
+        node.addAttribute("b", "2");
+        node.addAttribute("a", "3");
+        printer.addAttributeStatement(node);
 
         printer.print();
         assertEquals(
@@ -82,6 +78,7 @@
                           + "<graph name=\"build\">\n"
                           + "\n"
                           + "    <attributes type=\"graph\"><attribute name=\"rankdir\" value=\"LR\" /><attribute name=\"label\" value=\"test2\" /></attributes>\n"
+                          + "    <attributes type=\"node\"><attribute name=\"c\" value=\"1\" /><attribute name=\"b\" value=\"2\" /><attribute name=\"a\" value=\"3\" /></attributes>\n"
                           + "    <attributes type=\"edge\"><attribute name=\"a\" value=\"3\" /><attribute name=\"b\" value=\"2\" /><attribute name=\"c\" value=\"1\" /></attributes>\n"
                           + "</graph>\n", writer.getString() );
     }