junitparameter exception method should have no parameter

前端 未结 6 787
陌清茗
陌清茗 2021-01-02 05:21

By using JUnitParameter for testing a methode I have an exception. My code is similar to lot of example on JUnitParameter:

    private Object parametersForTe         


        
6条回答
  •  春和景丽
    2021-01-02 06:08

    If you are using JMockit, then adding below snippet resolves the issue

    import mockit.integration.junit4.JMockit;
    
    @RunWith(JMockit.class)
    public class TestClass
    

提交回复
热议问题