[Jboss-cvs] JBossAS SVN: r56795 - in trunk/aop: . src/test/org/jboss/test/aop/field
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Sep 13 07:29:00 EDT 2006
Author: stalep
Date: 2006-09-13 07:28:57 -0400 (Wed, 13 Sep 2006)
New Revision: 56795
Added:
trunk/aop/src/test/org/jboss/test/aop/field/FieldTestCase.java
Removed:
trunk/aop/src/test/org/jboss/test/aop/field/AnnotatedFieldTestCase.java
Modified:
trunk/aop/build.xml
Log:
JBAOP-284
renamed test
Modified: trunk/aop/build.xml
===================================================================
--- trunk/aop/build.xml 2006-09-13 11:28:23 UTC (rev 56794)
+++ trunk/aop/build.xml 2006-09-13 11:28:57 UTC (rev 56795)
@@ -1481,7 +1481,7 @@
</classpath>
<formatter usefile="true" type="plain" extension="-jdk15-loadtime-tests.txt"/>
<formatter usefile="true" type="xml" extension="-jdk15-loadtime-tests.xml"/>
- <test todir="${report.dir}" name="org.jboss.test.aop.field.AnnotatedFieldTestCase" />
+ <test todir="${report.dir}" name="org.jboss.test.aop.field.FieldTestCase" />
</junit>
</target>
Deleted: trunk/aop/src/test/org/jboss/test/aop/field/AnnotatedFieldTestCase.java
===================================================================
--- trunk/aop/src/test/org/jboss/test/aop/field/AnnotatedFieldTestCase.java 2006-09-13 11:28:23 UTC (rev 56794)
+++ trunk/aop/src/test/org/jboss/test/aop/field/AnnotatedFieldTestCase.java 2006-09-13 11:28:57 UTC (rev 56795)
@@ -1,67 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.aop.field;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.jboss.test.aop.AOPTestWithSetup;
-
-/**
- *
- * @author <a href="mailto:stalep at conduct.no">Stale W. Pedersen</a>
- * @version $Revision
- */
-public class AnnotatedFieldTestCase extends AOPTestWithSetup
-{
-
- public static void main(String[] args)
- {
- TestRunner.run(suite());
- }
-
- public static Test suite()
- {
- TestSuite suite = new TestSuite("FieldTestCase");
- suite.addTestSuite(AnnotatedFieldTestCase.class);
- return suite;
- }
-
- public AnnotatedFieldTestCase(String name)
- {
- super(name);
- }
-
- protected void setUp() throws Exception
- {
- super.setUp();
- }
-
- public void testField()
- {
- System.out.println("*** testField");
- SubPOJO spojo = new SubPOJO(4);
- assertEquals("Field is not set correctly", spojo.getPOJOField(), (spojo.getSubPOJOField()/2));
- }
-
-}
Copied: trunk/aop/src/test/org/jboss/test/aop/field/FieldTestCase.java (from rev 56793, trunk/aop/src/test/org/jboss/test/aop/field/AnnotatedFieldTestCase.java)
===================================================================
--- trunk/aop/src/test/org/jboss/test/aop/field/AnnotatedFieldTestCase.java 2006-09-13 11:25:56 UTC (rev 56793)
+++ trunk/aop/src/test/org/jboss/test/aop/field/FieldTestCase.java 2006-09-13 11:28:57 UTC (rev 56795)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.aop.field;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.aop.AOPTestWithSetup;
+
+/**
+ *
+ * @author <a href="mailto:stalep at conduct.no">Stale W. Pedersen</a>
+ * @version $Revision
+ */
+public class FieldTestCase extends AOPTestWithSetup
+{
+
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("FieldTestCase");
+ suite.addTestSuite(FieldTestCase.class);
+ return suite;
+ }
+
+ public FieldTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ public void testField()
+ {
+ System.out.println("*** testField");
+ SubPOJO spojo = new SubPOJO(4);
+ assertEquals("Field is not set correctly", spojo.getPOJOField(), (spojo.getSubPOJOField()/2));
+ }
+
+}
More information about the jboss-cvs-commits
mailing list