commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/test/org/apache/commons/vfs/provider/jar/test NestedJarTestCase.java JarProviderTestCase.java
Date Mon, 25 Nov 2002 05:48:17 GMT
adammurdoch    2002/11/24 21:48:17

  Modified:    vfs/src/test/org/apache/commons/vfs/provider/jar/test
                        NestedJarTestCase.java JarProviderTestCase.java
  Log:
  Remove unused code.
  
  Revision  Changes    Path
  1.4       +0 -54     jakarta-commons-sandbox/vfs/src/test/org/apache/commons/vfs/provider/jar/test/NestedJarTestCase.java
  
  Index: NestedJarTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/test/org/apache/commons/vfs/provider/jar/test/NestedJarTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NestedJarTestCase.java	23 Nov 2002 00:41:10 -0000	1.3
  +++ NestedJarTestCase.java	25 Nov 2002 05:48:17 -0000	1.4
  @@ -106,58 +106,4 @@
           final FileObject nestedFS = manager.createFileSystem( "jar", jarFile );
           return nestedFS.resolveFile( "/" );
       }
  -
  -    /**
  -     * Verify the package loaded with class loader.
  -     * If the provider supports attributes override this method.
  -     */
  -    protected boolean verifyPackage( Package pack )
  -    {
  -        return "code".equals( pack.getName() ) &&
  -            "ImplTitle".equals( pack.getImplementationTitle() ) &&
  -            "ImplVendor".equals( pack.getImplementationVendor() ) &&
  -            "1.1".equals( pack.getImplementationVersion() ) &&
  -            "SpecTitle".equals( pack.getSpecificationTitle() ) &&
  -            "SpecVendor".equals( pack.getSpecificationVendor() ) &&
  -            "1.0".equals( pack.getSpecificationVersion() ) &&
  -            !pack.isSealed();
  -    }
  -
  -    /*
  -     * TODO - activate this
  -    public void testJarClassLoader() throws Exception
  -    {
  -        FileObject test = topFolder.resolveFile( "normal.jar" );
  -        final FileObject[] objects = { test };
  -        VFSClassLoader loader =
  -            new VFSClassLoader( objects, getManager() );
  -
  -        Class testClass = loader.loadClass( "code.ClassToLoad" );
  -        assertTrue( verifyNormalPackage( testClass.getPackage() ) );
  -
  -        Object testObject = testClass.newInstance();
  -        assertSame( "**PRIVATE**", testObject.toString() );
  -
  -        URL resource = loader.getResource( "file1.txt" );
  -        assertNotNull( resource );
  -        URLConnection urlCon = resource.openConnection();
  -        assertSameURLContent( getCharContent(), urlCon );
  -    }
  -    */
  -
  -    /**
  -     * Verify the package loaded with class loader.
  -     * If the provider supports attributes override this method.
  -     */
  -    protected boolean verifyNormalPackage( Package pack )
  -    {
  -        return "code".equals( pack.getName() ) &&
  -            "NormalTitle".equals( pack.getImplementationTitle() ) &&
  -            "NormalVendor".equals( pack.getImplementationVendor() ) &&
  -            "1.2".equals( pack.getImplementationVersion() ) &&
  -            "NormalSpec".equals( pack.getSpecificationTitle() ) &&
  -            "NormalSpecVendor".equals( pack.getSpecificationVendor() ) &&
  -            "0.1".equals( pack.getSpecificationVersion() ) &&
  -            pack.isSealed();
  -    }
   }
  
  
  
  1.5       +0 -16     jakarta-commons-sandbox/vfs/src/test/org/apache/commons/vfs/provider/jar/test/JarProviderTestCase.java
  
  Index: JarProviderTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/test/org/apache/commons/vfs/provider/jar/test/JarProviderTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JarProviderTestCase.java	23 Nov 2002 00:41:10 -0000	1.4
  +++ JarProviderTestCase.java	25 Nov 2002 05:48:17 -0000	1.5
  @@ -101,20 +101,4 @@
           final String uri = "jar:" + jarFile.getAbsolutePath() + "!/";
           return manager.resolveFile( uri );
       }
  -
  -    /**
  -     * Verify the package loaded with class loader.
  -     * If the provider supports attributes override this method.
  -     */
  -    protected boolean verifyPackage( Package pack )
  -    {
  -        return "code".equals( pack.getName() ) &&
  -            "ImplTitle".equals( pack.getImplementationTitle() ) &&
  -            "ImplVendor".equals( pack.getImplementationVendor() ) &&
  -            "1.1".equals( pack.getImplementationVersion() ) &&
  -            "SpecTitle".equals( pack.getSpecificationTitle() ) &&
  -            "SpecVendor".equals( pack.getSpecificationVendor() ) &&
  -            "1.0".equals( pack.getSpecificationVersion() ) &&
  -            !pack.isSealed();
  -    }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message