You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
550 B
25 lines
550 B
package spring.methodreplace;
|
|
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.test.context.ContextConfiguration;
|
|
import org.springframework.test.context.junit.jupiter.web.SpringJUnitWebConfig;
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@RunWith(SpringJUnit4ClassRunner.class)
|
|
@SpringJUnitWebConfig
|
|
@ContextConfiguration()
|
|
public class SpringTest {
|
|
|
|
@Resource
|
|
private Add add;
|
|
|
|
@Test
|
|
public void test1(){
|
|
add.add();
|
|
}
|
|
|
|
}
|
|
|
|
|