Skip to content
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

Merged
merged 2 commits into from
Oct 17, 2017

Conversation

sleshchenko
Copy link
Member

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

@sleshchenko sleshchenko added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/branch Indicates that a PR will be merged into a branch other than master. labels Oct 13, 2017
@sleshchenko sleshchenko self-assigned this Oct 13, 2017
@benoitf benoitf added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Oct 13, 2017
garagatyi
garagatyi previously approved these changes Oct 13, 2017
Copy link

@garagatyi garagatyi left a 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)))
Copy link
Contributor

@benoitf benoitf Oct 13, 2017

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. I'll fix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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

@codenvy-ci
Copy link

skabashnyuk
skabashnyuk previously approved these changes Oct 13, 2017
@sleshchenko sleshchenko merged commit 5db3759 into eclipse-che:che6 Oct 17, 2017
@sleshchenko sleshchenko deleted the CHE-6557 branch October 17, 2017 08:06
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 17, 2017
@codenvy-ci
Copy link

@skabashnyuk skabashnyuk added this to the 6.0.0-M1 milestone Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed. target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants