[jboss-cvs] JBossAS SVN: r105089 - projects/jboss-cl/trunk/classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 21 08:43:38 EDT 2010


Author: alesj
Date: 2010-05-21 08:43:37 -0400 (Fri, 21 May 2010)
New Revision: 105089

Modified:
   projects/jboss-cl/trunk/classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test/ShutdownUnitTestCase.java
Log:
Cleanup.

Modified: projects/jboss-cl/trunk/classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test/ShutdownUnitTestCase.java
===================================================================
--- projects/jboss-cl/trunk/classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test/ShutdownUnitTestCase.java	2010-05-21 12:41:10 UTC (rev 105088)
+++ projects/jboss-cl/trunk/classloading-vfs/src/test/java/org/jboss/test/classloading/vfs/policy/test/ShutdownUnitTestCase.java	2010-05-21 12:43:37 UTC (rev 105089)
@@ -24,9 +24,6 @@
 import java.net.URL;
 import java.util.Collections;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
 import org.jboss.classloader.plugins.ClassLoaderUtils;
 import org.jboss.classloader.plugins.system.DefaultClassLoaderSystem;
 import org.jboss.classloader.spi.ClassLoaderSystem;
@@ -39,6 +36,9 @@
 import org.jboss.vfs.VirtualFile;
 import org.jboss.vfs.util.automount.Automounter;
 
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
 /**
  * ShutdownUnitTestCase.
  * 
@@ -46,8 +46,7 @@
  * @version $Revision: 1.1 $
  */
 public class ShutdownUnitTestCase extends BaseTestCase
-{
-   
+{   
    private VirtualFile signedJar;
    
    @Override
@@ -69,28 +68,27 @@
 
    public void testShutdownUnregisterDefault() throws Exception
    {
-      VFSClassLoaderPolicy policy = getClassLoaderPolicy();;
+      VFSClassLoaderPolicy policy = getClassLoaderPolicy();
       testShutdown(policy, true);
    }
 
    public void testShutdownUnregister() throws Exception
    {
-      VFSClassLoaderPolicy policy = getClassLoaderPolicy();;
+      VFSClassLoaderPolicy policy = getClassLoaderPolicy();
       policy.setShutdownPolicy(ShutdownPolicy.UNREGISTER);
       testShutdown(policy, true);
    }
 
    public void testShutdownGC() throws Exception
    {
-      VFSClassLoaderPolicy policy = getClassLoaderPolicy();;
+      VFSClassLoaderPolicy policy = getClassLoaderPolicy();
       policy.setShutdownPolicy(ShutdownPolicy.GARBAGE_COLLECTION);
       testShutdown(policy, false);
    }
 
    protected VFSClassLoaderPolicy getClassLoaderPolicy() throws Exception
    {
-      VFSClassLoaderPolicy policy = VFSClassLoaderPolicy.createVFSClassLoaderPolicy(signedJar);
-      return policy;
+      return VFSClassLoaderPolicy.createVFSClassLoaderPolicy(signedJar);
    }
    
    protected void testShutdown(VFSClassLoaderPolicy policy, boolean shutdownAtUnregister) throws Exception




More information about the jboss-cvs-commits mailing list