core/src/test/java/org/apache/commons/vfs2/impl/test/VfsClassLoaderTests.java
/**
     * Verify the package loaded with class loader.
     */
Verify the package loaded with class loader.
Verify the package loaded with class loader .
private void verifyPackage(final Package pack,
                               final boolean sealed)
    {
        if (getBaseFolder().getFileSystem().hasCapability(Capability.MANIFEST_ATTRIBUTES))
        {
            assertEquals("ImplTitle", pack.getImplementationTitle());
            assertEquals("ImplVendor", pack.getImplementationVendor());
            assertEquals("1.1", pack.getImplementationVersion());
            assertEquals("SpecTitle", pack.getSpecificationTitle());
            assertEquals("SpecVendor", pack.getSpecificationVendor());
            assertEquals("1.0", pack.getSpecificationVersion());
            assertEquals(sealed, pack.isSealed());
        }
        else
        {
            assertNull(pack.getImplementationTitle());
            assertNull(pack.getImplementationVendor());
            assertNull(pack.getImplementationVersion());
            assertNull(pack.getSpecificationTitle());
            assertNull(pack.getSpecificationVendor());
            assertNull(pack.getSpecificationVersion());
            assertFalse(pack.isSealed());
        }
    }
private void verifyPackage ( final Package pack , final boolean sealed ) { if ( getBaseFolder ( ) . getFileSystem ( ) . hasCapability ( Capability . MANIFEST_ATTRIBUTES ) ) { assertEquals ( "ImplTitle" , pack . getImplementationTitle ( ) ) ; assertEquals ( "ImplVendor" , pack . getImplementationVendor ( ) ) ; assertEquals ( "1.1" , pack . getImplementationVersion ( ) ) ; assertEquals ( "SpecTitle" , pack . getSpecificationTitle ( ) ) ; assertEquals ( "SpecVendor" , pack . getSpecificationVendor ( ) ) ; assertEquals ( "1.0" , pack . getSpecificationVersion ( ) ) ; assertEquals ( sealed , pack . isSealed ( ) ) ; } else { assertNull ( pack . getImplementationTitle ( ) ) ; assertNull ( pack . getImplementationVendor ( ) ) ; assertNull ( pack . getImplementationVersion ( ) ) ; assertNull ( pack . getSpecificationTitle ( ) ) ; assertNull ( pack . getSpecificationVendor ( ) ) ; assertNull ( pack . getSpecificationVersion ( ) ) ; assertFalse ( pack . isSealed ( ) ) ; } }
Verify the package loaded with class loader.
Verify the package loaded with class loader .