crud/test/java/aopTest.java

18 lines
544 B
Java
Raw Normal View History

2023-05-24 15:00:58 +00:00
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();
}
}