Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxueli committed Jun 29, 2024
1 parent 4149237 commit 8dc1e30
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.xxl.app.sample.test.util.HttpClientUtil;
import com.xxl.sso.core.conf.Conf;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -28,22 +28,22 @@ public void test() throws Exception {

// 登录:获取 sso sessionId
String sessionId = loginTest();
Assert.assertNotNull(sessionId);
Assertions.assertNotNull(sessionId);

// 登陆状态校验
String username = logincheckTest(sessionId);
Assert.assertNotNull(username);
Assertions.assertNotNull(username);

clientApiRequestTest(client01, sessionId);
clientApiRequestTest(client02, sessionId);

// 注销:销毁 sso sessionId
boolean loginoutResult = logoutTest(sessionId);
Assert.assertTrue(loginoutResult);
Assertions.assertTrue(loginoutResult);

// 登陆状态校验
username = logincheckTest(sessionId);
Assert.assertNull(username);
Assertions.assertNull(username);

clientApiRequestTest(client01, sessionId);
clientApiRequestTest(client02, sessionId);
Expand Down

0 comments on commit 8dc1e30

Please sign in to comment.