Using both Arquillian and PowerMock in the same JUnit test

后端 未结 3 556
难免孤独
难免孤独 2020-12-20 14:48

I would like to use the features of both Arquillian and PowerMock in the same JUnit 4 test.

The problem is that both products are JUnit Runners which sh

3条回答
  •  庸人自扰
    2020-12-20 15:48

    No, you either need to:

    • use one and create a test base class that does the things you wanted the other runner to do.
    • separate your test into multiple tests, each using different runners.

提交回复
热议问题