runwith是紅色的,應(yīng)該怎么辦呢
package?com.neo.helloWorld.service; import?com.neo.helloWorld.hello.HelloService; import?org.junit.jupiter.api.Test; import?org.springframework.boot.test.context.SpringBootTest; import?org.springframework.test.context.junit4.SpringRunner; import?javax.annotation.Resource; @RunWith(SpringRunner.class) @SpringBootTest public?class?HelloTest?{ ????@Resource ????HelloService?helloService; ????@Test ????public?void??sayHelloTest(){ ????????helloService.sayHello(); ????} }
2020-09-30
2020-04-20
是不是沒有junit? ?jar包的依賴。