-
Notifications
You must be signed in to change notification settings - Fork 0
Improve dependencies management #158
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
Conversation
dmdashenkov
left a comment
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.
@yuri-sergiichuk, LGTM with a few minor comments.
| NewBoundedContextBuilderTest.class.getName()); | ||
| assertFalse(builder.tenantIndex() | ||
| .isPresent()); | ||
| assertThat(builder.tenantIndex()).isEmpty(); |
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.
| assertThat(builder.tenantIndex()).isEmpty(); | |
| assertThat(builder.tenantIndex()) | |
| .isEmpty(); |
| assertTrue(updatedIndex.isPresent()); | ||
| assertThat(updatedIndex.get(), instanceOf(TestNamespaceIndex.getType())); | ||
| assertThat(updatedIndex).isPresent(); | ||
| Truth.assertThat(updatedIndex.get()) |
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.
Please use a static import. Java can handle multiple imported methods with the same name if parameters are different.
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's interesting is that IDEA does not allow fixing if not doing the static import manually.
| .tenantIndex(); | ||
| assertTrue(updatedIndex.isPresent()); | ||
| assertThat(updatedIndex.get(), instanceOf(TestNamespaceIndex.getType())); | ||
| assertThat(updatedIndex).isPresent(); |
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.
Please apply the formatting as in the suggestion above — the assertion on a new line. It's our conversion. It makes assertions easier to read.
| assertNotNull(namespace); | ||
| assertEquals(namespaceValue, namespace.value()); | ||
| assertThat(namespace).isNotNull(); | ||
| assertThat(namespace.value()).isEqualTo(namespaceValue); |
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.
Same in this file.
This PR improves our Gradle dependencies management a bit and applies the new scope to the dependencies that are used by the code analysis software only.
As part of the PR, I have also eliminated the usage of the
hamcrestassertion framework in favor oftruth.The change is related to the SpineEventEngine/config#156 issue.