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
GEODE-1548: Specifying --J=-Dgemfire.jmx-manager-hostname-for-clients… #248
Conversation
… now automatically sets -Djava.rmi.server.hostname
import org.apache.geode.internal.AvailablePort; | ||
import org.apache.geode.test.junit.categories.UnitTest; | ||
|
||
@Category(UnitTest.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.
Since this test is testing more than one class (it's creating a Cache and using networking resources), it should have @category(IntegrationTest.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.
The test name is ok but I'd probably make it JavaRmiServerNameIntegrationTest.java
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.
Isn't the convention to use *JUnitTest for unit tests?
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.
Oh got it, I missed the previous comment around @IntegrationTEST.
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 for clarifying that distinction. I pushed another commit with this change.
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 change Category of test to IntegrationTest and then it looks good to go. Thanks!
+1 |
… now automatically sets -Djava.rmi.server.hostname