wynnhjg · 2006-06-20 08:04:55 · 阅读: 271 .偶还是1.4build 不了. * name space of JUnit4 is org.junit * JUnit4 requires J2SE 5.0 leverage J2SE 5.0 features * @Test annotation @Test(expected=IndexOutOfBoundsException.class) @Test(timeout= 1000)