18 lines
544 B
Java
18 lines
544 B
Java
import com.aop.targetInterface;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.test.context.ContextConfiguration;
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
@RunWith(SpringJUnit4ClassRunner.class)
|
|
@ContextConfiguration("classpath:applicationContext.xml")
|
|
public class aopTest {
|
|
@Autowired
|
|
private targetInterface targetInterface;
|
|
@Test
|
|
public void test1() {
|
|
targetInterface.show();
|
|
}
|
|
}
|