User development,
A new message was posted in the thread "withincode from JUnit test not
working":
http://community.jboss.org/message/522759#522759
Author : Alan Nisbet
Profile :
http://community.jboss.org/people/nizzy
Message:
--------------------------------------------------------------
Sorry didnt mean to post that, wasnt finished
What I was going to say was that none of the classes were compiled with the jboss-aop.xml
from previous post.
"I would try using the pointcut with the call expression alone"
<aspect class="com.ecebs.unittest.aop.aspect.ExceptionInjector"
scope="PER_CLASS" />
<bind pointcut="call(public void
com.ecebs.unittest.aop.ExampleManagerBean->createObject(..))">
<advice name="throwMultefileException"
aspect="com.ecebs.unittest.aop.aspect.ExceptionInjector" />
</bind>
Again none of the classes were compiled.
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\MultefileException.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelperTest.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\IPersistenceHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\aspect\ExceptionInjector.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\mock\MockService.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\Application.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\Environment.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelperTest$1.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\ExampleManager.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\ExampleManagerBean.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\ExampleManagerBeanTest.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\MultefileRuntimeException.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\interceptor\GenericInterceptor.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\EnvironmentPK.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\AbstractJPAHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\PersistenceHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\mock\MockPersistenceHelper.class
[aopc] [no comp needed]
C:\workspace\multefile-core-dev\offcard\research\AOPUnitTestPOC\aopclasses\com\ecebs\unittest\aop\entitymodel\Revision.class
Seems a bit strange!
In the past I have been able to use the call and withincode combination, however the java
class defined in the withincode was not a JUnit test.
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/522759#522759