-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made RuntimeDto return machine token #6732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the tests!
final WorkspaceConfigDto configDto = createConfigDto(); | ||
final WorkspaceImpl workspace = createWorkspace(configDto); | ||
when(wsManager.createWorkspace( | ||
any(WorkspaceConfig.class), anyString(), anyMapOf(String.class, String.class))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with Java8, anyMapOf is not required (and it is deprecated in new releases) any() is enough for type inference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. I'll fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://stackoverflow.com/questions/21783219/mockito-anymapof-nested-generics
Matchers.<Map<String, String >>any()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW it's because I'm thinking of #6719
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4144/ |
a83a52b
Signed-off-by: Sergii Leshchenko <[email protected]>
Signed-off-by: Sergii Leshchenko <[email protected]>
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4175/ |
What does this PR do?
Made
RuntimeDto
return machine token.Also, this PR contains uncommenting and fixing tests for WorkspaceService and WorkspaceValidator.
What issues does this PR fix or reference?
#6557