junit « AOP « Spring Q&A





1. Ignoring Aspectj during junit tests    stackoverflow.com

Here is situation:

  1. We have class with defined aspect to it's methodA;
  2. We have JUnit test for this methodA;
When I run JUnit test it activates Aspect as well. Any thoughts how to ...

2. Why do i need cglib (Spring AOP) to have multiple test classes?    stackoverflow.com

I have a spring application and I make my test class as follows:

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/META-INF/spring/applicationContext.xml" })
@TransactionConfiguration(defaultRollback = true)
@Transactional
public class MyTest {

}
When I try to create another test class and tried ...

3. Aspect is not being called while testing with JUnit.    forum.springsource.org

Aspect is not being called while testing with JUnit. Hi I am trying to Lazy Load an object using Aspect. My scenario is, a domain object Customer has another domain object ...

4. adding aspects on Junit methods    forum.springsource.org

adding aspects on Junit methods Hello, I'm new to Spring and I would like to use this framework to add aspects to my Junits test methods. For exemple, add logging before ...

5. Aspect in JUnit working but not in Tomcat    forum.springsource.org

Aspect in JUnit working but not in Tomcat Hi, i have an Aspech which is a logger. It works if i run it from JUnit, but it dont in Tomcat. Here ...

6. AOP & Junit - performance questions    forum.springsource.org

AOP & Junit - performance questions I have recently started integrating AspectJ into my project via @Configurable. Seems like an excellent way to add dependency injection to objects created by Hibernate. ...

7. JUnit : apply AOP on JUnit test class instance    forum.springsource.org

JUnit : apply AOP on JUnit test class instance Hello, I coded a superb junit test class (JUnit 3). Great ! Just one thing more I'd like to do : I ...

8. Spring-AOP-JUnit    forum.springsource.org

Hi, i try to stop the execution time of a method within a junit testcaes. Thatfore i want to proxy that testcase with AOP. The pointcut i use works with other, ...

9. Logging in Junit4 + spring aop    forum.springsource.org

Logging in Junit4 + spring aop Hi, I am using Junit4 by inheriting "AbstractJUnit4SpringContextTests". I want to log the method names which it is correctly executing. I tried with Spring aop, ...