UnitTestBase是怎么来的 我那里报错了 不是jar包里的吧
自己跟着做的 代码没问题
package com.interface1;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
@RunWith(BlockJUnit4ClassRunner.class)
public class MainTestJunit extends UnitTestBase{
public MainTestJunit() {
super("classpath*:spring-ioc.xml");
}
@Test
public void testSay() {
OneInterface oneInterface = super.getBean("oneInterface");
oneInterface.say("This is a test.");
}
}