Disabling certain aspects during unit test runs

前端 未结 4 2108
我在风中等你
我在风中等你 2021-01-04 01:21

I have integration tests (load context) and unit tests running together. My code does aspectj compile time weaving using spring.

My problem is that my declared advi

4条回答
  •  一个人的身影
    2021-01-04 02:01

    I can only guess: The first thing is to have a separate Spring applicationContext-test.xml, without component-scan; In maven you can add a phase runtime excluding weaving jars for test.

提交回复
热议问题