-
Notifications
You must be signed in to change notification settings - Fork 12
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
[1.x] Make BlackBoxContext
provide a Client
linked to the context under the test
#1407
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.
@yevhenii-nadtochii please see my comments. This is the first round of the review. I will need to have another look once it's ready for the final review.
testutil-server/src/main/java/io/spine/testing/server/blackbox/BlackBoxContext.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/BlackBoxContext.java
Outdated
Show resolved
Hide resolved
testutil-server/src/test/java/io/spine/testing/server/blackbox/BlackBoxContextTest.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## 1.x-dev #1407 +/- ##
=============================================
+ Coverage 90.97% 91.00% +0.02%
- Complexity 4786 4804 +18
=============================================
Files 615 616 +1
Lines 15197 15261 +64
Branches 859 861 +2
=============================================
+ Hits 13826 13888 +62
- Misses 1100 1101 +1
- Partials 271 272 +1 |
a1be142
to
cb99f49
Compare
BlackBoxContext
provide a Client
linked to the context under the test
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.
@yevhenii-nadtochii Close to LGTM. Please see my comments.
testutil-server/src/main/java/io/spine/testing/server/blackbox/BlackBoxContext.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/BlackBoxContext.java
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/ClientProvider.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/ClientProvider.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/ClientProvider.java
Outdated
Show resolved
Hide resolved
…instance each time
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.
@yevhenii-nadtochii LGTM with some minor comments to address before merging.
testutil-server/src/main/java/io/spine/testing/server/blackbox/BlackBoxContext.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/BlackBoxContext.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/ClientSupplier.java
Outdated
Show resolved
Hide resolved
testutil-server/src/main/java/io/spine/testing/server/blackbox/ClientSupplier.java
Outdated
Show resolved
Hide resolved
BlackBoxContext
provide a Client
linked to the context under the testBlackBoxContext
provide a Client
linked to the context under the test
ClientProvider
that accepts aBoundedContext
on its constructor and distributesClient
instances linked to the passed context. The provider lazily creates in-processGrpcContainer
for that;BlackBoxContext
provide aClient
asblackBoxContext.client()
.