[jboss-cvs] JBossAS SVN: r64111 - 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 Jul 18 06:01:42 EDT 2007
Author: kabir.khan at jboss.com
Date: 2007-07-18 06:01:42 -0400 (Wed, 18 Jul 2007)
New Revision: 64111
Modified:
projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation/PerInstanceTestCase.java
Log:
These tests were wrongly commented out
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-07-18 09:46:33 UTC (rev 64110)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/stress/perinstancemethodinvocation/PerInstanceTestCase.java 2007-07-18 10:01:42 UTC (rev 64111)
@@ -42,61 +42,61 @@
super(name);
}
-// public void testPerInstanceInterceptor() throws Exception
-// {
-// POJO pojo = new POJO();
-// PerInstanceInterceptor.called = 0;
-// pojo.method1();
-// assertEquals(1, PerInstanceInterceptor.called);
-// getRunner().executeScenario(new PerInstanceInterceptorScenario(), this);
-// }
-//
-// 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(), this);
-// }
-//
-// 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();
-// PerInstanceInterceptor.called = 0;
-// pojo.method1();
-// pojo.method1();
-// assertEquals(2, PerInstanceInterceptor.called);
-// getRunner().executeScenario(new PerInstanceInterceptorRepeatInstantiationScenario(), this);
-// }
-//
-// private class PerInstanceInterceptorRepeatInstantiationScenario extends AbstractScenario
-// {
-// public void execute(int thread, int loop) throws Exception
-// {
-// POJO pojo = new POJO();
-// pojo.method1();
-// }
-// }
+ public void testPerInstanceInterceptor() throws Exception
+ {
+ POJO pojo = new POJO();
+ PerInstanceInterceptor.called = 0;
+ pojo.method1();
+ assertEquals(1, PerInstanceInterceptor.called);
+ getRunner().executeScenario(new PerInstanceInterceptorScenario(), this);
+ }
+
+ 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(), this);
+ }
+
+ 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();
+ PerInstanceInterceptor.called = 0;
+ pojo.method1();
+ pojo.method1();
+ assertEquals(2, PerInstanceInterceptor.called);
+ getRunner().executeScenario(new PerInstanceInterceptorRepeatInstantiationScenario(), this);
+ }
+
+ private class PerInstanceInterceptorRepeatInstantiationScenario extends AbstractScenario
+ {
+ public void execute(int thread, int loop) throws Exception
+ {
+ POJO pojo = new POJO();
+ pojo.method1();
+ }
+ }
+
public void testPerInstanceAspectRepeatInstantiation() throws Exception
{
POJO pojo = new POJO();
More information about the jboss-cvs-commits
mailing list