|
|
@@ -8,6 +8,7 @@ import org.springframework.boot.test.context.SpringBootTest; |
|
|
|
import org.springframework.test.context.junit4.SpringRunner; |
|
|
|
|
|
|
|
import com.hp.user.client.entity.AreaVO; |
|
|
|
import com.hp.user.client.service.MessageService; |
|
|
|
import com.hp.user.client.service.UserAreaService; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
@@ -20,6 +21,8 @@ public class ControllerTest { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private UserAreaService areaService; |
|
|
|
@Autowired |
|
|
|
private MessageService messageService; |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
@@ -27,4 +30,11 @@ public class ControllerTest { |
|
|
|
List<AreaVO> users = areaService.getAllArea(); |
|
|
|
users.forEach(System.out::println); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void messageTest() { |
|
|
|
messageService.sendVerificationCode("18668123093"); |
|
|
|
System.out.println(messageService.getVerificationCode("18668123093")); |
|
|
|
} |
|
|
|
|
|
|
|
} |