[jboss-cvs] JBossAS SVN: r91447 - in projects/mc-tools/grapher/trunk/src/test: java/org/jboss/test/mctools/grapher/graph/support and 3 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jul 20 17:13:23 EDT 2009
Author: alesj
Date: 2009-07-20 17:13:23 -0400 (Mon, 20 Jul 2009)
New Revision: 91447
Added:
projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/graph/support/
projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/graph/support/CycleBean.java
projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/CycleTestCase.java
projects/mc-tools/grapher/trunk/src/test/resources/org/jboss/test/mctools/grapher/render/test/CycleTestCase.xml
Modified:
projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/swing/ManualSwingExample.java
Log:
Cycle test.
Added: projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/graph/support/CycleBean.java
===================================================================
--- projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/graph/support/CycleBean.java (rev 0)
+++ projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/graph/support/CycleBean.java 2009-07-20 21:13:23 UTC (rev 91447)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.mctools.grapher.graph.support;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class CycleBean
+{
+ private CycleBean other;
+
+ public CycleBean()
+ {
+ }
+
+ public CycleBean(CycleBean other)
+ {
+ this.other = other;
+ }
+
+ public CycleBean getOther()
+ {
+ return other;
+ }
+
+ public void setOther(CycleBean other)
+ {
+ this.other = other;
+ }
+}
Copied: projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/CycleTestCase.java (from rev 91434, projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/RendererTestCase.java)
===================================================================
--- projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/CycleTestCase.java (rev 0)
+++ projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/CycleTestCase.java 2009-07-20 21:13:23 UTC (rev 91447)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.mctools.grapher.render.test;
+
+import junit.framework.Test;
+
+/**
+ * Renderer impl tests.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class CycleTestCase extends RendererTestCase
+{
+ public CycleTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(CycleTestCase.class);
+ }
+
+ protected String getDefaultBean()
+ {
+ return "A";
+ }
+}
\ No newline at end of file
Modified: projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/swing/ManualSwingExample.java
===================================================================
--- projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/swing/ManualSwingExample.java 2009-07-20 20:30:51 UTC (rev 91446)
+++ projects/mc-tools/grapher/trunk/src/test/java/org/jboss/test/mctools/grapher/render/test/swing/ManualSwingExample.java 2009-07-20 21:13:23 UTC (rev 91447)
@@ -26,6 +26,7 @@
import junit.textui.TestRunner;
import org.jboss.test.mctools.grapher.render.support.SwingExampleDelegateTest;
import org.jboss.test.mctools.grapher.render.test.AbstractRendererTest;
+import org.jboss.test.mctools.grapher.render.test.CycleTestCase;
import org.jboss.test.mctools.grapher.render.test.ManualGraphWrite2FileTestCase;
import org.jboss.test.mctools.grapher.render.test.RendererTestCase;
import org.jboss.test.mctools.grapher.render.test.Write2FileTestCase;
@@ -42,6 +43,7 @@
runTest(ManualGraphWrite2FileTestCase.class);
runTest(Write2FileTestCase.class);
runTest(RendererTestCase.class);
+ runTest(CycleTestCase.class);
}
protected static void runTest(Class<? extends AbstractRendererTest> clazz)
Copied: projects/mc-tools/grapher/trunk/src/test/resources/org/jboss/test/mctools/grapher/render/test/CycleTestCase.xml (from rev 90940, projects/mc-tools/grapher/trunk/src/test/resources/org/jboss/test/mctools/grapher/render/test/RendererTestCase.xml)
===================================================================
--- projects/mc-tools/grapher/trunk/src/test/resources/org/jboss/test/mctools/grapher/render/test/CycleTestCase.xml (rev 0)
+++ projects/mc-tools/grapher/trunk/src/test/resources/org/jboss/test/mctools/grapher/render/test/CycleTestCase.xml 2009-07-20 21:13:23 UTC (rev 91447)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <bean name="A" class="org.jboss.test.mctools.grapher.graph.support.CycleBean">
+ <constructor>
+ <parameter><inject bean="B" state="Instantiated"/></parameter>
+ </constructor>
+ </bean>
+
+ <bean name="B" class="org.jboss.test.mctools.grapher.graph.support.CycleBean">
+ <property name="other"><inject bean="A" state="Instantiated"/></property>
+ </bean>
+
+</deployment>
More information about the jboss-cvs-commits
mailing list