package com.izouma.dingdong.service;

import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class RiderServiceTest {

    @Test
    public void test(){

        String encode = new BCryptPasswordEncoder().encode("123456");
        String str = "123456";
        System.out.println(new BCryptPasswordEncoder().matches(str,encode));
//        System.out.println(RandomStringUtils.randomAlphabetic(1));
//        System.out.println(RandomStringUtils.randomNumeric(4));
    }
}
