[jboss-cvs] JBossAS SVN: r62286 - projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 11 15:06:29 EDT 2007


Author: kabir.khan at jboss.com
Date: 2007-04-11 15:06:29 -0400 (Wed, 11 Apr 2007)
New Revision: 62286

Modified:
   projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation/PerInstanceTestCase.java
Log:
[JBAOP-378] Add commented out tests

Modified: projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation/PerInstanceTestCase.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation/PerInstanceTestCase.java	2007-04-11 18:57:51 UTC (rev 62285)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation/PerInstanceTestCase.java	2007-04-11 19:06:29 UTC (rev 62286)
@@ -43,42 +43,42 @@
       super(name);
    }
 
-//   public void testPerInstanceInterceptor() throws Exception
-//   {
-//      POJO pojo = new POJO();
-//      PerInstanceInterceptor.called = 0;
-//      pojo.method1();
-//      assertEquals(1, PerInstanceInterceptor.called);
-//      getRunner().executeScenario(new PerInstanceInterceptorScenario());
-//   }
-//   
-//   private class PerInstanceInterceptorScenario extends AbstractScenario
-//   {
-//      POJO pojo = new POJO();
-//      public void execute(int thread, int loop) throws Exception
-//      {
-//         pojo.method1();
-//      }
-//   }
-//
-//   public void testPerInstanceAspect() throws Exception
-//   {
-//      POJO pojo = new POJO();
-//      PerInstanceAspect.called = 0;
-//      pojo.method2();
-//      assertEquals(1, PerInstanceAspect.called);
-//      getRunner().executeScenario(new PerInstanceAspectScenario());
-//   }
-//   
-//   private class PerInstanceAspectScenario extends AbstractScenario
-//   {
-//      POJO pojo = new POJO();
-//      public void execute(int thread, int loop) throws Exception
-//      {
-//         pojo.method2();
-//      }
-//   }
-//
+   public void testPerInstanceInterceptor() throws Exception
+   {
+      POJO pojo = new POJO();
+      PerInstanceInterceptor.called = 0;
+      pojo.method1();
+      assertEquals(1, PerInstanceInterceptor.called);
+      getRunner().executeScenario(new PerInstanceInterceptorScenario());
+   }
+   
+   private class PerInstanceInterceptorScenario extends AbstractScenario
+   {
+      POJO pojo = new POJO();
+      public void execute(int thread, int loop) throws Exception
+      {
+         pojo.method1();
+      }
+   }
+
+   public void testPerInstanceAspect() throws Exception
+   {
+      POJO pojo = new POJO();
+      PerInstanceAspect.called = 0;
+      pojo.method2();
+      assertEquals(1, PerInstanceAspect.called);
+      getRunner().executeScenario(new PerInstanceAspectScenario());
+   }
+   
+   private class PerInstanceAspectScenario extends AbstractScenario
+   {
+      POJO pojo = new POJO();
+      public void execute(int thread, int loop) throws Exception
+      {
+         pojo.method2();
+      }
+   }
+
    public void testPerInstanceInterceptorRepeatInstantiation() throws Exception
    {
       POJO pojo = new POJO();
@@ -97,22 +97,22 @@
          pojo.method1();
       }
    }
-//
-//   public void testPerInstanceAspectRepeatInstantiation() throws Exception
-//   {
-//      POJO pojo = new POJO();
-//      PerInstanceAspect.called = 0;
-//      pojo.method2();
-//      assertEquals(1, PerInstanceAspect.called);
-//      getRunner().executeScenario(new PerInstanceAspectRepeatInstantiationScenario());
-//   }
-//   
-//   private class PerInstanceAspectRepeatInstantiationScenario extends AbstractScenario
-//   {
-//      public void execute(int thread, int loop) throws Exception
-//      {
-//         POJO pojo = new POJO();
-//         pojo.method2();
-//      }
-//   }
+
+   public void testPerInstanceAspectRepeatInstantiation() throws Exception
+   {
+      POJO pojo = new POJO();
+      PerInstanceAspect.called = 0;
+      pojo.method2();
+      assertEquals(1, PerInstanceAspect.called);
+      getRunner().executeScenario(new PerInstanceAspectRepeatInstantiationScenario());
+   }
+   
+   private class PerInstanceAspectRepeatInstantiationScenario extends AbstractScenario
+   {
+      public void execute(int thread, int loop) throws Exception
+      {
+         POJO pojo = new POJO();
+         pojo.method2();
+      }
+   }
 }




More information about the jboss-cvs-commits mailing list