Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
config-server-api
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何熠
config-server-api
Commits
3ba85684
Commit
3ba85684
authored
Dec 29, 2021
by
zxn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单元测试
parent
9d6894b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
pom.xml
pom.xml
+5
-0
IntegrateServiceTest.java
...om/uitech/authorization/service/IntegrateServiceTest.java
+33
-0
No files found.
pom.xml
View file @
3ba85684
...
...
@@ -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>
...
...
src/test/java/cn/com/uitech/authorization/service/IntegrateServiceTest.java
0 → 100644
View file @
3ba85684
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment