[jboss-cvs] JBossAS SVN: r93909 - projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Sep 22 04:05:51 EDT 2009


Author: alesj
Date: 2009-09-22 04:05:51 -0400 (Tue, 22 Sep 2009)
New Revision: 93909

Added:
   projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/DumpTestCase.java
Removed:
   projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/JBVFS122Test.java
Modified:
   projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java
Log:
Move Carlo's test

Copied: projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/DumpTestCase.java (from rev 93905, projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/JBVFS122Test.java)
===================================================================
--- projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/DumpTestCase.java	                        (rev 0)
+++ projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/DumpTestCase.java	2009-09-22 08:05:51 UTC (rev 93909)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.virtual.test;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+
+import junit.framework.Test;
+import org.jboss.virtual.VFS;
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * This test case is a dumping ground for tests that don't fit anywhere else
+ * but since somebody bothered (in most cases this would be Carlo) to produce them,
+ * we don't see a point in throwing them away.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class DumpTestCase extends AbstractVFSTest
+{
+   public DumpTestCase(String name)
+   {
+      super(name, true, true);
+   }
+
+   public static Test suite()
+   {
+      return suite(DumpTestCase.class);
+   }
+
+   public void testJBVFS122() throws IOException
+   {
+      URL url = getResource("/vfs/test/nested/nested.jar");
+      VirtualFile root = VFS.getRoot(url);
+      assertNotNull(root);
+
+      VirtualFile child = root.getChild("complex.jar/META-INF/MANIFEST.MF");
+      InputStream in = child.openStream();
+      in.close();
+   }
+}
\ No newline at end of file

Deleted: projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/JBVFS122Test.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/JBVFS122Test.java	2009-09-22 07:38:34 UTC (rev 93908)
+++ projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/JBVFS122Test.java	2009-09-22 08:05:51 UTC (rev 93909)
@@ -1,58 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.virtual.test;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-
-import org.jboss.virtual.VFS;
-import org.jboss.virtual.VirtualFile;
-
-/**
- * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
-public class JBVFS122Test extends AbstractVFSTest
-{
-   public JBVFS122Test(String name)
-   {
-      super(name, true, true);
-   }
-
-   @Override
-   protected void setUp() throws Exception
-   {
-      super.setUp();
-   }
-   
-   public void test1() throws IOException
-   {
-      URL url = getResource("/vfs/test/nested/nested.jar");
-      VirtualFile root = VFS.getRoot(url);
-      assertNotNull(root);
-      
-      VirtualFile child = root.getChild("complex.jar/META-INF/MANIFEST.MF");
-      InputStream in = child.openStream();
-      in.close();
-   }
-}

Modified: projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java	2009-09-22 07:38:34 UTC (rev 93908)
+++ projects/vfs/branches/Branch_2_1/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java	2009-09-22 08:05:51 UTC (rev 93909)
@@ -45,6 +45,8 @@
       VFS.init();
       TestSuite suite = new TestSuite("VFS Tests default");
 
+      // general
+      suite.addTest(DumpTestCase.suite());
       // vfs / spi
       suite.addTest(VFSUnitTestCase.suite());
       suite.addTest(VirtualFileUnitTestCase.suite());




More information about the jboss-cvs-commits mailing list