如何使用junit 4将开关/案例代码重写为junit 5或testng

时间:2018-07-11 19:09:53

标签: java testing junit

我有代码:

Result result = null;
    for(int i = 1; i <= setOfConfiguration; i++){

        switch(typeOfAgreement){
                case "GUS":
                    result = JUnitCore.runClasses(first.class); break;
                case "MUS":
                    result = JUnitCore.runClasses(second.class); break;
                case "DUS":
                    result = JUnitCore.runClasses(third.class); break;
        }
      }

如何将junit 4的开关/案例代码重写为junit 5或testng

0 个答案:

没有答案