import cn.reghao.jutil.jdk.security.RandomString; import cn.reghao.bnt.web.WebApplication; import cn.reghao.bnt.web.admin.db.repository.UserRepository; import cn.reghao.bnt.web.admin.model.po.User; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.test.context.ActiveProfiles; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.method.HandlerMethod; import org.springframework.web.servlet.mvc.condition.PatternsRequestCondition; import org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition; import org.springframework.web.servlet.mvc.method.RequestMappingInfo; import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping; import java.lang.annotation.Annotation; import java.util.*; import java.util.stream.Collectors; /** * @author reghao * @date 2022-08-11 10:14:51 */ @Slf4j @ActiveProfiles("dev") @SpringBootTest(classes = WebApplication.class) public class BlogTest { }