[jboss-cvs] JBossAS SVN: r65200 - in projects/aop/trunk/aop: src/resources/test and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 6 17:00:29 EDT 2007
Author: flavia.rainone at jboss.com
Date: 2007-09-06 17:00:28 -0400 (Thu, 06 Sep 2007)
New Revision: 65200
Added:
projects/aop/trunk/aop/src/resources/test/invocationParams/
projects/aop/trunk/aop/src/resources/test/invocationParams/jboss-aop.xml
projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/
projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationAspect.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationTestCase.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/POJO.java
Removed:
projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationAspect.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationTestCase.java
projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/POJO.java
Modified:
projects/aop/trunk/aop/base-tests.xml
projects/aop/trunk/aop/build-tests-jdk50.xml
projects/aop/trunk/aop/src/resources/test/arguments/jboss-aop.xml
Log:
[JBAOP-382] Finished refactoring of tests: get/setArgument tests on arguments package; typed invocation parameters on invocationParams.
(notice that the joinpoint argument tests have been moved to beforeafterArgs package)
Modified: projects/aop/trunk/aop/base-tests.xml
===================================================================
--- projects/aop/trunk/aop/base-tests.xml 2007-09-06 20:48:51 UTC (rev 65199)
+++ projects/aop/trunk/aop/base-tests.xml 2007-09-06 21:00:28 UTC (rev 65200)
@@ -5,6 +5,9 @@
<param name="test" value="arguments"/>
</antcall>
<antcall target="${test-target}" inheritRefs="true">
+ <param name="test" value="invocationParams"/>
+ </antcall>
+ <antcall target="${test-target}" inheritRefs="true">
<param name="test" value="packagedotdot"/>
</antcall>
<antcall target="${test-target}" inheritRefs="true">
Modified: projects/aop/trunk/aop/build-tests-jdk50.xml
===================================================================
--- projects/aop/trunk/aop/build-tests-jdk50.xml 2007-09-06 20:48:51 UTC (rev 65199)
+++ projects/aop/trunk/aop/build-tests-jdk50.xml 2007-09-06 21:00:28 UTC (rev 65200)
@@ -1476,6 +1476,10 @@
<param name="case" value="ArgsTestCase"/>
</antcall>
<antcall target="memory-test" inheritRefs="true">
+ <param name="test" value="invocationParams"/>
+ <param name="case" value="ArgsTestCase"/>
+ </antcall>
+ <antcall target="memory-test" inheritRefs="true">
<param name="test" value="basic"/>
<param name="case" value="AOPTester"/>
</antcall>
Modified: projects/aop/trunk/aop/src/resources/test/arguments/jboss-aop.xml
===================================================================
--- projects/aop/trunk/aop/src/resources/test/arguments/jboss-aop.xml 2007-09-06 20:48:51 UTC (rev 65199)
+++ projects/aop/trunk/aop/src/resources/test/arguments/jboss-aop.xml 2007-09-06 21:00:28 UTC (rev 65200)
@@ -2,7 +2,6 @@
<!DOCTYPE aop SYSTEM "jboss-aop_1_0.dtd">
<aop>
- <!-- get/setArguments test -->
<aspect class="org.jboss.test.aop.arguments.ArgumentsAspect" scope="PER_VM"/>
<stack name="getAndChange">
@@ -64,25 +63,4 @@
<bind pointcut="call(static * org.jboss.test.aop.arguments.CalledPOJO->*(int))" cflow="(ArgumentsPOJO2_constructor OR ArgumentsPOJO2_method)">
<advice name="getAndChangeArgumentsAdvice" aspect="org.jboss.test.aop.arguments.ArgumentsAspect"/>
</bind>
-
- <!-- @Invocation test -->
- <aspect class="org.jboss.test.aop.arguments.InvocationAspect" scope="PER_VM"/>
-
- <bind pointcut="execution(* org.jboss.test.aop.arguments.POJO->method1(..))">
- <advice name="aroundMethodExecution1" aspect="org.jboss.test.aop.arguments.InvocationAspect"/>
- </bind>
-
- <bind pointcut="get(* org.jboss.test.aop.arguments.POJO->number)">
- <advice name="aroundFieldRead" aspect="org.jboss.test.aop.arguments.InvocationAspect"/>
- </bind>
-
- <bind pointcut="set(* org.jboss.test.aop.arguments.POJO->number)">
- <advice name="aroundFieldWrite" aspect="org.jboss.test.aop.arguments.InvocationAspect"/>
- </bind>
-
- <bind pointcut="call(* org.jboss.test.aop.arguments.POJO->calleeMethod(..)) AND
- withincode(* org.jboss.test.aop.arguments.POJO->callerMethod(..))">
- <advice name="aroundMethodCalledByMethod" aspect="org.jboss.test.aop.arguments.InvocationAspect"/>
- </bind>
-
</aop>
\ No newline at end of file
Added: projects/aop/trunk/aop/src/resources/test/invocationParams/jboss-aop.xml
===================================================================
--- projects/aop/trunk/aop/src/resources/test/invocationParams/jboss-aop.xml (rev 0)
+++ projects/aop/trunk/aop/src/resources/test/invocationParams/jboss-aop.xml 2007-09-06 21:00:28 UTC (rev 65200)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE aop SYSTEM "jboss-aop_1_0.dtd">
+
+<aop>
+ <aspect class="org.jboss.test.aop.invocationParams.InvocationAspect" scope="PER_VM"/>
+
+ <bind pointcut="execution(* org.jboss.test.aop.invocationParams.POJO->method 1(..))">
+ <advice name="aroundMethodExecution1" aspect="org.jboss.test.aop.invocationParams.InvocationAspect"/>
+ </bind>
+
+ <bind pointcut="get(* org.jboss.test.aop.invocationParams.POJO->number)">
+ <advice name="aroundFieldRead" aspect="org.jboss.test.aop.invocationParams.InvocationAspect"/>
+ </bind>
+
+ <bind pointcut="set(* org.jboss.test.aop.invocationParams.POJO->number)">
+ <advice name="aroundFieldWrite" aspect="org.jboss.test.aop.invocationParams.InvocationAspect"/>
+ </bind>
+
+ <bind pointcut="call(* org.jboss.test.aop.invocationParams.POJO->calleeMethod(..)) AND
+ withincode(* org.jboss.test.aop.invocationParams.POJO->callerMethod(..))">
+ <advice name="aroundMethodCalledByMethod" aspect="org.jboss.test.aop.invocationParams.InvocationAspect"/>
+ </bind>
+</aop>
\ No newline at end of file
Deleted: projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationAspect.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationAspect.java 2007-09-06 20:48:51 UTC (rev 65199)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationAspect.java 2007-09-06 21:00:28 UTC (rev 65200)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.arguments;
-
-import org.jboss.aop.joinpoint.FieldInvocation;
-import org.jboss.aop.joinpoint.FieldReadInvocation;
-import org.jboss.aop.joinpoint.Invocation;
-import org.jboss.aop.joinpoint.MethodInvocation;
-
-/**
- * Aspect used on tests with typed Invocation parameters.
- *
- * @author <a href="flavia.rainone at jboss.com">Flavia Rainone</a>
- */
-public class InvocationAspect
-{
- static String advice = null;
- static Object invokeReturn = null;
-
- public static void clear()
- {
- advice = null;
- invokeReturn = null;
- }
-
- public Object aroundMethodExecution1(MethodInvocation invocation) throws Throwable
- {
- advice = "aroundMethodExecution1";
- return "aroundMethodExecution1";
- }
-
- public Object aroundMethodExecution2(MethodInvocation invocation) throws Throwable
- {
- advice = "aroundMethodExecution1";
- return "aroundMethodExecution1";
- }
-
- public Object aroundMethodCalledByMethod(Invocation invocation) throws Throwable
- {
- advice = "aroundMethodCalledByMethod";
- invokeReturn = invocation.invokeNext();
- return 15000;
- }
-
- public Object aroundFieldWrite(FieldInvocation invocation) throws Throwable
- {
- advice = "aroundFieldWrite";
- invokeReturn = invocation.invokeNext();
- return null;
- }
-
- public Object aroundFieldRead(FieldReadInvocation invocation) throws Throwable
- {
- advice = "aroundFieldRead";
- invokeReturn = invocation.invokeNext();
- return 500;
- }
-}
\ No newline at end of file
Deleted: projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationTestCase.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationTestCase.java 2007-09-06 20:48:51 UTC (rev 65199)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationTestCase.java 2007-09-06 21:00:28 UTC (rev 65200)
@@ -1,97 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.arguments;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.jboss.test.aop.AOPTestWithSetup;
-
-/**
- * Tests the use of @org.jboss.aop.advice.annotation.Invocation parameters.
- *
- * @author <a href="flavia.rainone at jboss.com">Flavia Rainone</a>
- */
-public class InvocationTestCase extends AOPTestWithSetup
-{
- private POJO pojo;
-
- public static void main(String[] args)
- {
- TestRunner.run(suite());
- }
-
- public static Test suite()
- {
- TestSuite suite = new TestSuite("InvocationTestCase");
- suite.addTestSuite(InvocationTestCase.class);
- return suite;
- }
-
- public InvocationTestCase(String name)
- {
- super(name);
- }
-
- public void setUp() throws Exception
- {
- super.setUp();
- InvocationAspect.clear();
- this.pojo = new POJO();
- }
-
- public void test1()
- {
- assertEquals("aroundMethodExecution1", pojo.method1());
- assertEquals("aroundMethodExecution1", InvocationAspect.advice);
- assertNull(InvocationAspect.invokeReturn);
- }
-
- public void test2()
- {
- assertEquals(2, pojo.method2());
- assertNull(InvocationAspect.advice);
- assertNull(InvocationAspect.invokeReturn);
- }
-
- public void test3()
- {
- assertEquals(15000, pojo.callerMethod(20));
- assertEquals("aroundMethodCalledByMethod", InvocationAspect.advice);
- assertNotNull(InvocationAspect.invokeReturn);
- assertEquals(40, ((Integer) InvocationAspect.invokeReturn).intValue());
- }
-
- public void test4()
- {
- pojo.number = 35;
- assertEquals("aroundFieldWrite", InvocationAspect.advice);
- assertNull(InvocationAspect.invokeReturn);
-
-
- assertEquals(500, pojo.number);
- assertEquals("aroundFieldRead", InvocationAspect.advice);
- assertNotNull(InvocationAspect.invokeReturn);
- assertEquals(35, ((Integer) InvocationAspect.invokeReturn).intValue());
- }
-}
\ No newline at end of file
Deleted: projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/POJO.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/POJO.java 2007-09-06 20:48:51 UTC (rev 65199)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/POJO.java 2007-09-06 21:00:28 UTC (rev 65200)
@@ -1,87 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.arguments;
-
-
-/**
- * Plain old java object used on the tests
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public class POJO /*implements ArgPOJOInterface*/
-{
- /* ArgTestCase */
-
- public String echo(String echo)
- {
- return echo;
- }
-
- public int bunch(int x, double y, float z, String str, int q)
- {
- return x + (int) y + (int) z + q;
- }
-
- public int bunchArgs(int x, double y, float z, String str, int q)
- {
- return x + (int) y + (int) z + q;
- }
-
- public int bunchArgsWithInvocation(int x, double y, float z, String str, int q)
- {
- return x + (int) y + (int) z + q;
- }
-
- public int bunchWrapped(int x, double y, float z, String str, int q)
- {
- return x + (int) y + (int) z + q;
- }
-
- /* InvocationTestCase */
-
- public int number;
-
- public int callerMethod(int i)
- {
- return calleeMethod(i);
- }
-
- private int calleeMethod(int i)
- {
- return i*2;
- }
-
- public String method1()
- {
- return "method";
- }
-
- public int method2()
- {
- return 2;
- }
-
- /* OverloadedTestCase */
-
- public void method3(int arg1, long arg2) {}
-}
Copied: projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationAspect.java (from rev 65192, projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationAspect.java)
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationAspect.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationAspect.java 2007-09-06 21:00:28 UTC (rev 65200)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.invocationParams;
+
+import org.jboss.aop.joinpoint.FieldInvocation;
+import org.jboss.aop.joinpoint.FieldReadInvocation;
+import org.jboss.aop.joinpoint.Invocation;
+import org.jboss.aop.joinpoint.MethodInvocation;
+
+/**
+ * Aspect used on tests with typed Invocation parameters.
+ *
+ * @author <a href="flavia.rainone at jboss.com">Flavia Rainone</a>
+ */
+public class InvocationAspect
+{
+ static String advice = null;
+ static Object invokeReturn = null;
+
+ public static void clear()
+ {
+ advice = null;
+ invokeReturn = null;
+ }
+
+ public Object aroundMethodExecution1(MethodInvocation invocation) throws Throwable
+ {
+ advice = "aroundMethodExecution1";
+ return "aroundMethodExecution1";
+ }
+
+ public Object aroundMethodExecution2(MethodInvocation invocation) throws Throwable
+ {
+ advice = "aroundMethodExecution1";
+ return "aroundMethodExecution1";
+ }
+
+ public Object aroundMethodCalledByMethod(Invocation invocation) throws Throwable
+ {
+ advice = "aroundMethodCalledByMethod";
+ invokeReturn = invocation.invokeNext();
+ return 15000;
+ }
+
+ public Object aroundFieldWrite(FieldInvocation invocation) throws Throwable
+ {
+ advice = "aroundFieldWrite";
+ invokeReturn = invocation.invokeNext();
+ return null;
+ }
+
+ public Object aroundFieldRead(FieldReadInvocation invocation) throws Throwable
+ {
+ advice = "aroundFieldRead";
+ invokeReturn = invocation.invokeNext();
+ return 500;
+ }
+}
\ No newline at end of file
Copied: projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationTestCase.java (from rev 65192, projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/InvocationTestCase.java)
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationTestCase.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/InvocationTestCase.java 2007-09-06 21:00:28 UTC (rev 65200)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.invocationParams;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.aop.AOPTestWithSetup;
+
+/**
+ * Tests the use of typed invocation parameters.
+ *
+ * @author <a href="flavia.rainone at jboss.com">Flavia Rainone</a>
+ */
+public class InvocationTestCase extends AOPTestWithSetup
+{
+ private POJO pojo;
+
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("InvocationTestCase");
+ suite.addTestSuite(InvocationTestCase.class);
+ return suite;
+ }
+
+ public InvocationTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ InvocationAspect.clear();
+ this.pojo = new POJO();
+ }
+
+ public void test1()
+ {
+ assertEquals("aroundMethodExecution1", pojo.method1());
+ assertEquals("aroundMethodExecution1", InvocationAspect.advice);
+ assertNull(InvocationAspect.invokeReturn);
+ }
+
+ public void test2()
+ {
+ assertEquals(2, pojo.method2());
+ assertNull(InvocationAspect.advice);
+ assertNull(InvocationAspect.invokeReturn);
+ }
+
+ public void test3()
+ {
+ assertEquals(15000, pojo.callerMethod(20));
+ assertEquals("aroundMethodCalledByMethod", InvocationAspect.advice);
+ assertNotNull(InvocationAspect.invokeReturn);
+ assertEquals(40, ((Integer) InvocationAspect.invokeReturn).intValue());
+ }
+
+ public void test4()
+ {
+ pojo.number = 35;
+ assertEquals("aroundFieldWrite", InvocationAspect.advice);
+ assertNull(InvocationAspect.invokeReturn);
+
+
+ assertEquals(500, pojo.number);
+ assertEquals("aroundFieldRead", InvocationAspect.advice);
+ assertNotNull(InvocationAspect.invokeReturn);
+ assertEquals(35, ((Integer) InvocationAspect.invokeReturn).intValue());
+ }
+}
\ No newline at end of file
Copied: projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/POJO.java (from rev 65192, projects/aop/trunk/aop/src/test/org/jboss/test/aop/arguments/POJO.java)
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/POJO.java (rev 0)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/invocationParams/POJO.java 2007-09-06 21:00:28 UTC (rev 65200)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.invocationParams;
+
+
+/**
+ * Plain old java object used on the typed invocation parameter tests
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ * @version $Revision:65192 $
+ */
+public class POJO
+{
+ public int number;
+
+ public int callerMethod(int i)
+ {
+ return calleeMethod(i);
+ }
+
+ private int calleeMethod(int i)
+ {
+ return i*2;
+ }
+
+ public String method1()
+ {
+ return "method";
+ }
+
+ public int method2()
+ {
+ return 2;
+ }
+}
More information about the jboss-cvs-commits
mailing list