1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 1
1
2
2
``` java
3
- var auth1 = ClientConfigurationData . Auth . builder()
4
- .userId(id)
5
- .userName(cj)
6
- .build();
7
-
8
- Client client1 = Client . builder()
9
- .auth(auth1)
10
- .routeUrl(routeUrl)
11
- .build();
12
-
13
- ClientState . State state = client1. getState();
14
- Awaitility . await(). atMost(10 , TimeUnit . SECONDS )
15
- .untilAsserted(() - > Assertions . assertEquals(ClientState . State . Ready , state));
16
- Optional<CIMServerResVO > serverInfo = client1. getServerInfo();
17
- Assertions . assertTrue(serverInfo. isPresent());
18
-
19
- // send msg
20
- String msg = " hello" ;
21
- client1. sendGroup(msg);
22
-
23
- // get oline user
24
- Set<CIMUserInfo > onlineUser = client1. getOnlineUser();
3
+ var auth1 = ClientConfigurationData . Auth . builder()
4
+ .userId(id)
5
+ .userName(cj)
6
+ .build();
7
+
8
+ Client client1 = Client . builder()
9
+ .auth(auth1)
10
+ .routeUrl(routeUrl)
11
+ .build();
12
+
13
+ ClientState . State state = client1. getState();
14
+ Awaitility . await(). atMost(10 , TimeUnit . SECONDS )
15
+ .untilAsserted(() - > Assertions . assertEquals(ClientState . State . Ready , state));
16
+ Optional<CIMServerResVO > serverInfo = client1. getServerInfo();
17
+ Assertions . assertTrue(serverInfo. isPresent());
18
+
19
+ // send msg
20
+ String msg = " hello" ;
21
+ client1. sendGroup(msg);
22
+
23
+ // get oline user
24
+ Set<CIMUserInfo > onlineUser = client1. getOnlineUser();
25
25
```
0 commit comments