-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnnoTest.java
More file actions
28 lines (25 loc) · 744 Bytes
/
AnnoTest.java
File metadata and controls
28 lines (25 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.cpucode.test;
import com.cpucode.anno.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;
/**
* @author : cpucode
* @date : 2021/2/18
* @time : 20:23
* @github : https://githfub.com/CPU-Code
* @csdn : https://blog.csdn.net/qq_44226094
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext-anno.xml")
public class AnnoTest {
@Autowired
private TargetInterface target;
@Test
public void tesg1(){
target.save();
target.exce();
}
}