Index: aspectj-new/src/plugin-test/argfile.lst =================================================================== RCS file: /home/cvspublic/maven-plugins/aspectj/src/plugin-test/argfile.lst,v retrieving revision 1.1 diff -a -u -r1.1 argfile.lst --- aspectj-new/src/plugin-test/argfile.lst 3 Oct 2004 19:30:14 -0000 1.1 +++ aspectj-new/src/plugin-test/argfile.lst 7 Dec 2004 17:00:05 -0000 @@ -1,2 +1,3 @@ src\aspect\org\apache\maven\aspectj\Sample.aj -src\aspect\org\apache\maven\aspectj\TestA.aj \ No newline at end of file +src\aspect\org\apache\maven\aspectj\TestA.aj +src\aspect\org\apache\maven\aspectj\BOTest.aj \ No newline at end of file Index: aspectj-new/src/plugin-test/argfilemix.lst =================================================================== RCS file: aspectj-new/src/plugin-test/argfilemix.lst diff -N aspectj-new/src/plugin-test/argfilemix.lst --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ aspectj-new/src/plugin-test/argfilemix.lst 7 Dec 2004 17:00:05 -0000 @@ -0,0 +1,2 @@ +src\aspect\org\apache\maven\aspectj\BOTest.aj +src\main\org\apache\maven\aspectj\BO.java \ No newline at end of file Index: aspectj-new/src/plugin-test/maven.xml =================================================================== RCS file: /home/cvspublic/maven-plugins/aspectj/src/plugin-test/maven.xml,v retrieving revision 1.3 diff -a -u -r1.3 maven.xml --- aspectj-new/src/plugin-test/maven.xml 3 Oct 2004 19:30:14 -0000 1.3 +++ aspectj-new/src/plugin-test/maven.xml 7 Dec 2004 17:00:05 -0000 @@ -17,7 +17,7 @@ --> - + @@ -30,6 +30,16 @@ + + + + + + + + + + Index: aspectj-new/src/plugin-test/src/aspect/org/apache/maven/aspectj/BOTest.aj =================================================================== RCS file: aspectj-new/src/plugin-test/src/aspect/org/apache/maven/aspectj/BOTest.aj diff -N aspectj-new/src/plugin-test/src/aspect/org/apache/maven/aspectj/BOTest.aj --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ aspectj-new/src/plugin-test/src/aspect/org/apache/maven/aspectj/BOTest.aj 7 Dec 2004 17:00:05 -0000 @@ -0,0 +1,29 @@ +package org.apache.maven.aspectj; + +/* ==================================================================== + * Copyright 2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ + +public aspect BOTest +{ + pointcut mockupPointcut() : + execution(public * org.apache.maven.aspectj.BO.findByKey(..)); + + BO around() : mockupPointcut() + { + return new BO("dummy"); + } +} \ No newline at end of file Index: aspectj-new/src/plugin-test/src/main/org/apache/maven/aspectj/BO.java =================================================================== RCS file: aspectj-new/src/plugin-test/src/main/org/apache/maven/aspectj/BO.java diff -N aspectj-new/src/plugin-test/src/main/org/apache/maven/aspectj/BO.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ aspectj-new/src/plugin-test/src/main/org/apache/maven/aspectj/BO.java 7 Dec 2004 17:00:07 -0000 @@ -0,0 +1,38 @@ +package org.apache.maven.aspectj; + +/* ==================================================================== + * Copyright 2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ + +public class BO +{ + + private String id; + + public BO(String id){ + this.id = id; + } + + public static BO findByKey(String id) + { + //some code with connection to database + return null; + } + + public String getId(){ + return this.id; + } +} Index: aspectj-new/src/plugin-test/src/test/org/apache/maven/aspectj/AspectBOTest.java =================================================================== RCS file: aspectj-new/src/plugin-test/src/test/org/apache/maven/aspectj/AspectBOTest.java diff -N aspectj-new/src/plugin-test/src/test/org/apache/maven/aspectj/AspectBOTest.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ aspectj-new/src/plugin-test/src/test/org/apache/maven/aspectj/AspectBOTest.java 7 Dec 2004 17:00:07 -0000 @@ -0,0 +1,32 @@ +package org.apache.maven.aspectj; + +/* ==================================================================== + * Copyright 2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ +import junit.framework.TestCase; + +public class AspectBOTest extends TestCase +{ + + public void testSourceIsCorrectlyWeaved() + { + BO bo = BO.findByKey("test"); + assertNotNull(bo); + assertEquals("dummy", bo.getId()); + + } + +} \ No newline at end of file