5 changed files with 31 additions and 9 deletions
@ -1,13 +1,23 @@ |
|||||
package com.aiprose.mbp; |
package com.aiprose.mbp; |
||||
|
|
||||
|
import com.aiprose.mbp.entity.User; |
||||
|
import com.aiprose.mbp.service.UserService; |
||||
import org.junit.jupiter.api.Test; |
import org.junit.jupiter.api.Test; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
@SpringBootTest |
@SpringBootTest |
||||
class MbpApplicationTests { |
class MbpApplicationTests { |
||||
|
|
||||
|
@Autowired |
||||
|
private UserService userService; |
||||
|
|
||||
@Test |
@Test |
||||
void contextLoads() { |
void contextLoads() { |
||||
|
List<User> list = userService.list(); |
||||
|
System.out.println(list); |
||||
} |
} |
||||
|
|
||||
} |
} |
||||
|
Loading…
Reference in new issue