[jboss-cvs] JBossAS SVN: r63538 - branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 15 05:01:59 EDT 2007


Author: kabir.khan at jboss.com
Date: 2007-06-15 05:01:59 -0400 (Fri, 15 Jun 2007)
New Revision: 63538

Added:
   branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/NotWoven.java
Modified:
   branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/BeforeAfterThrowingFinallyVersusAroundTestCase.java
Log:
Test not woven code with and without constructors

Modified: branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/BeforeAfterThrowingFinallyVersusAroundTestCase.java
===================================================================
--- branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/BeforeAfterThrowingFinallyVersusAroundTestCase.java	2007-06-15 09:00:59 UTC (rev 63537)
+++ branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/BeforeAfterThrowingFinallyVersusAroundTestCase.java	2007-06-15 09:01:59 UTC (rev 63538)
@@ -103,4 +103,33 @@
          }
       }
    }
+
+
+   public void testNotWovenNoCtorScenario() throws Exception
+   {
+      getRunner().executeScenario(new NotWovenNoCtorScenario());
+   }
+   
+   private class NotWovenNoCtorScenario extends AbstractScenario
+   {
+      NotWoven pojo = new NotWoven();
+      public void execute(int thread, int loop) throws Exception
+      {
+         pojo.method1();
+      }
+   }
+
+   public void testNotWovenWithCtorScenario() throws Exception
+   {
+      getRunner().executeScenario(new NotWovenWithCtorScenario());
+   }
+   
+   private class NotWovenWithCtorScenario extends AbstractScenario
+   {
+      public void execute(int thread, int loop) throws Exception
+      {
+         NotWoven pojo = new NotWoven();
+         pojo.method2();
+      }
+   }
 }

Added: branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/NotWoven.java
===================================================================
--- branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/NotWoven.java	                        (rev 0)
+++ branches/Branch_AOP_1_5/aop/src/test/org/jboss/test/aop/stress/batf/NotWoven.java	2007-06-15 09:01:59 UTC (rev 63538)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors. 
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/ 
+package org.jboss.test.aop.stress.batf;
+
+/**
+ * 
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class NotWoven
+{
+   boolean b;
+   public NotWoven()
+   {
+      
+   }
+   
+   public void method1()
+   {
+      b = true;
+   }
+   
+   public void method2()
+   {
+      b = true;
+   }
+}




More information about the jboss-cvs-commits mailing list