我不明白为什么会这样
ioannis@ioannis-GA-MA74GM-S2H:~$ java -cp /opt/junit4.6/junit-4.6.jar org.junit.runner.JUnitCore /opt/CalculatorTest
给出错误:
Could not find class: /opt/CalculatorTest
这工作正常:
ioannis@ioannis-GA-MA74GM-S2H:~$ java -cp /opt/junit4.6/junit-4.6.jar:/opt org.junit.runner.JUnitCore CalculatorTest
JUnit version 4.6
.
Time: 0.005
OK (1 test)
首先,我给出类 /opt/CalculatorTest 的完整路径