-
-
Notifications
You must be signed in to change notification settings - Fork 55
Get method #350
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
Get method #350
Conversation
Pull Request Test Coverage Report for Build 701
💛 - Coveralls |
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.
@jackpan123 Please see comments.
@Override | ||
public Container get(final String containerId) { | ||
return new RtContainer( | ||
Json.createObjectBuilder().build(), |
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.
@jackpan123 can you add the id to this JSON?
Json.createObjectBuilder()
.add("Id", containerId)
.build()
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.
Yes, I will.
URI.create("http://localhost/test"), | ||
Mockito.mock(Docker.class) | ||
).get("df2419f4").stop(); | ||
} |
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.
@jackpan123 These 2 tests don't make sense. Why are you calling start and stop?
Just add a simple test only for the get(...)
method and assert that a Container
is being returned (not null) and that its JSON contains the ID.
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.
What get(...)
method wants to express is that users cant directly obtain a certain container instead of iteratively searching. When the user finds it, who can directly manipulate the internal method of the Container
.
@rultor merge it |
@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here |
@amihaiemil Done! FYI, the full log is here (took me 2min) |
Job |
fix #348