junitparameter exception method should have no parameter

前端 未结 6 801
陌清茗
陌清茗 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 05:43

    Imports need to be updated like :

    import com.entities.Client;
    import junitparams.JUnitParamsRunner;
    import junitparams.Parameters;
    import static org.junit.Assert.*;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    

    Now it works

提交回复
热议问题