[jboss-cvs] JBossAS SVN: r63669 - in branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress: methodinvocation and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 27 06:17:12 EDT 2007


Author: kabir.khan at jboss.com
Date: 2007-06-27 06:17:12 -0400 (Wed, 27 Jun 2007)
New Revision: 63669

Modified:
   branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/POJO.java
   branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/methodinvocation/POJO.java
Log:
Don't use empty methods in stress test

Modified: branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/POJO.java
===================================================================
--- branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/POJO.java	2007-06-27 10:16:44 UTC (rev 63668)
+++ branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/POJO.java	2007-06-27 10:17:12 UTC (rev 63669)
@@ -28,12 +28,24 @@
  */
 public class POJO
 {
+   private static int counter;
+   
    public void methodWithAroundNoExceptions() 
    {
-      
+      counter++;
    }
+   public void methodWithBeforeAfter() 
+   {
+      counter++;      
+   }
    public void methodWithAroundExceptions()
    {
+      counter++;
       throw new RuntimeException();
    }
+   public void methodWithBeforeThrowingFinally()
+   {
+      counter++;
+      throw new RuntimeException();
+   }
 }

Modified: branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/methodinvocation/POJO.java
===================================================================
--- branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/methodinvocation/POJO.java	2007-06-27 10:16:44 UTC (rev 63668)
+++ branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/methodinvocation/POJO.java	2007-06-27 10:17:12 UTC (rev 63669)
@@ -28,38 +28,41 @@
  */
 public class POJO
 {
+   private static int counter;
+   
    public static void staticMethodNoAdvice()
    {
-      
+      counter++;
    }
    
    public void nonStaticMethodNoAdvice()
    {
-      
+      counter++;
    }
    
    public void oneInterceptor()
    {
-      
+      counter++;
    }
    
    public void fiveInterceptors()
    {
-      
+      counter++;
    }
    
    public void oneAdvice()
    {
-      
+      counter++;
    }
    
    public void fiveAdvices()
    {
-      
+      counter++;
    }
    
    public static void generateStackTrace()
    {
+      counter++;
       //Look at the depth of the call stack for different weaving types
       new Exception("CALL STACK - INFO ONLY").printStackTrace();
    }




More information about the jboss-cvs-commits mailing list