Commit 3ba85684 by zxn

单元测试

parent 9d6894b9
......@@ -152,6 +152,11 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
......
package cn.com.uitech.authorization.service;
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;
import static org.junit.Assert.*;
/**
* @Author: ZXN
* @Date: 2021/12/29/11:01
* @Description:
* @version: 1.0
* This Class Created with IntelliJ IDEA 2019.1.4
*/
@RunWith(SpringRunner.class)
@SpringBootTest
public class IntegrateServiceTest {
@Autowired
private IntegrateService integrateService;
@Test
public void ldapAuth() {
System.out.println("验证结果"+integrateService.ldapAuth("ldapupdate","6KRutglNdiXp"));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment