我有代码:
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