-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUE-2428 refactor: update null checking
Signed-off-by: Luke Zhou <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,133 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import io.aiven.klaw.model.requests.EnvModel; | ||
import io.aiven.klaw.model.requests.KwClustersModel; | ||
import io.aiven.klaw.model.requests.KwRolesPermissionsModel; | ||
import io.aiven.klaw.model.requests.RegisterUserInfoModel; | ||
import io.aiven.klaw.model.requests.TeamModel; | ||
import io.aiven.klaw.model.requests.UserInfoModel; | ||
import io.aiven.klaw.model.response.EnvParams; | ||
|
@@ -53,6 +54,18 @@ public UserInfoModel getUserInfoModel(String username, String role, String team) | |
return userInfoModel; | ||
} | ||
|
||
public RegisterUserInfoModel getRegisterUserInfoModel(String username, String role) { | ||
RegisterUserInfoModel userInfoModel = new RegisterUserInfoModel(); | ||
userInfoModel.setUsername(username); | ||
userInfoModel.setPwd("testpwd"); | ||
userInfoModel.setRole(role); | ||
userInfoModel.setTeamId(1001); | ||
userInfoModel.setFullname("New User"); | ||
userInfoModel.setMailid("[email protected]"); | ||
|
||
return userInfoModel; | ||
} | ||
|
||
public UserInfoModel getUserInfoModelSwitchTeams( | ||
String username, String role, int teamId, int switchTeamSize) { | ||
UserInfoModel userInfoModel = new UserInfoModel(); | ||
|
Oops, something went wrong.