package com.izouma.dingdong.contorller;

import com.izouma.dingdong.enums.Identity;
import com.izouma.dingdong.web.AuthenticationController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class AuthControllerTest {
    @Autowired
    private AuthenticationController controller;

    @Test
    public void test(){
        System.out.println(controller.loginByRegister("9999", "9999", Identity.RIDER));
    }

    @Test
    public void test1(){
        System.out.println(controller.phoneLogin("+8613365135976", "9487", Identity.USER));
      //  System.out.println("+8618205083565".substring(3));
    }
}
