Running spring tests from executable jar

前端 未结 3 955
星月不相逢
星月不相逢 2020-12-31 19:32

I have some Spring tests which spin up the application context and tests some services. I am able to run these tests using Maven and through IDE. Now I have a requirement to

3条回答
  •  别那么骄傲
    2020-12-31 20:27

    I have just forked your repository and I found the error. Spring factory must be the same than the one is used when test are thrown by maven. It is a must to delegate into Spring Ic in the same way like test context.

    See pull request for aditional information:

    https://github.com/SaiUpadhyayula/executabletests/pull/2

提交回复
热议问题