[Jboss-cvs] JBossAS SVN: r56966 - in projects/microcontainer/trunk/container/src/tests/org/jboss/test: . virtual/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 19 09:22:46 EDT 2006
Author: adrian at jboss.org
Date: 2006-09-19 09:22:41 -0400 (Tue, 19 Sep 2006)
New Revision: 56966
Added:
projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/VFSAllTestSuite.java
Modified:
projects/microcontainer/trunk/container/src/tests/org/jboss/test/ContainerAllTestSuite.java
projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/FileVFSUnitTestCase.java
projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/SundryVFSUnitTestCase.java
Log:
Add the VFS tests to the main container testsuite.
Modified: projects/microcontainer/trunk/container/src/tests/org/jboss/test/ContainerAllTestSuite.java
===================================================================
--- projects/microcontainer/trunk/container/src/tests/org/jboss/test/ContainerAllTestSuite.java 2006-09-19 13:03:56 UTC (rev 56965)
+++ projects/microcontainer/trunk/container/src/tests/org/jboss/test/ContainerAllTestSuite.java 2006-09-19 13:22:41 UTC (rev 56966)
@@ -28,6 +28,7 @@
import org.jboss.test.classinfo.test.ClassInfoTestSuite;
import org.jboss.test.joinpoint.test.JoinpointTestSuite;
import org.jboss.test.metadata.MetaDataAllTestSuite;
+import org.jboss.test.virtual.test.VFSAllTestSuite;
/**
* All Test Suite.
@@ -49,6 +50,7 @@
suite.addTest(ClassInfoTestSuite.suite());
suite.addTest(JoinpointTestSuite.suite());
suite.addTest(MetaDataAllTestSuite.suite());
+ suite.addTest(VFSAllTestSuite.suite());
return suite;
}
Modified: projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/FileVFSUnitTestCase.java
===================================================================
--- projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/FileVFSUnitTestCase.java 2006-09-19 13:03:56 UTC (rev 56965)
+++ projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/FileVFSUnitTestCase.java 2006-09-19 13:22:41 UTC (rev 56966)
@@ -24,6 +24,9 @@
import java.util.jar.Manifest;
import java.util.zip.ZipInputStream;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
import org.jboss.test.BaseTestCase;
import org.jboss.virtual.VFS;
import org.jboss.virtual.VFSUtils;
@@ -49,6 +52,11 @@
{
super(name);
}
+
+ public static Test suite()
+ {
+ return new TestSuite(FileVFSUnitTestCase.class);
+ }
/**
* Test that a VFSContextFactory can be created from the testcase CodeSource url
Modified: projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/SundryVFSUnitTestCase.java
===================================================================
--- projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/SundryVFSUnitTestCase.java 2006-09-19 13:03:56 UTC (rev 56965)
+++ projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/SundryVFSUnitTestCase.java 2006-09-19 13:22:41 UTC (rev 56966)
@@ -23,6 +23,9 @@
import java.net.URL;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
import org.jboss.test.BaseTestCase;
import org.jboss.virtual.VFS;
import org.jboss.virtual.VirtualFile;
@@ -41,6 +44,11 @@
super(name);
}
+ public static Test suite()
+ {
+ return new TestSuite(SundryVFSUnitTestCase.class);
+ }
+
protected VirtualFile getVirtualFile(String root, String path) throws Exception
{
URL url = getResource(root);
Added: projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/VFSAllTestSuite.java
===================================================================
--- projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/VFSAllTestSuite.java 2006-09-19 13:03:56 UTC (rev 56965)
+++ projects/microcontainer/trunk/container/src/tests/org/jboss/test/virtual/test/VFSAllTestSuite.java 2006-09-19 13:22:41 UTC (rev 56966)
@@ -0,0 +1,50 @@
+/*
+* 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.virtual.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * VFS All Test Suite.
+ *
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 46146 $
+ */
+public class VFSAllTestSuite extends TestSuite
+{
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("VFS Tests");
+
+ suite.addTest(FileVFSUnitTestCase.suite());
+ suite.addTest(SundryVFSUnitTestCase.suite());
+
+ return suite;
+ }
+}
More information about the jboss-cvs-commits
mailing list