MCPcopy Create free account
hub / github.com/e2wugui/zeze / createRole

Method createRole

ZezeJava/ZezeJavaTest/src/Zezex/TestGameTimer.java:358–365  ·  view source on GitHub ↗
(ClientGame.App app, String role)

Source from the content-addressed store, hash-verified

356 }
357
358 @SuppressWarnings("SameParameterValue")
359 private static long createRole(ClientGame.App app, String role) {
360 var createRole = new CreateRole();
361 createRole.Argument.setName(role);
362 createRole.SendForWait(app.ClientService.GetSocket(), 10_000).await();
363 Assert.assertEquals(0, createRole.getResultCode());
364 return createRole.Result.getId();
365 }
366
367 private static BRole getRole(ClientGame.App app) {
368 var get = new GetRoleList();

Callers 2

testRoleTimer1Method · 0.95
testRoleTimer2Method · 0.95

Calls 6

awaitMethod · 0.65
getIdMethod · 0.65
setNameMethod · 0.45
SendForWaitMethod · 0.45
GetSocketMethod · 0.45
getResultCodeMethod · 0.45

Tested by

no test coverage detected