我有一個Location類,存儲多個位置對象,從JSON文件中解析。目前,我可以使用toString()方法在列表中打印所有位置。輸出看起來是這樣的: http://hastebin.com/eruxateduz.vhdl 這是列表中的loctions的一個示例: Location [location=null, id=3, description=You are at battlefield o
我想在JUnit測試中使用JMockit,但在從Eclipse運行測試時出現UnsupportedClassVersionError。這是一個Java 1.5的項目,我有JDK 1.5.0.22在構建路徑和JUnit的類路徑中的版本是4.11(從Maven倉庫下載) java.lang.UnsupportedClassVersionError: Bad version number in .cla