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

GEODE-1548: Specifying --J=-Dgemfire.jmx-manager-hostname-for-clients… #248

Closed

Conversation

jaredjstewart
Copy link
Contributor

… now automatically sets -Djava.rmi.server.hostname

… now automatically sets -Djava.rmi.server.hostname
import org.apache.geode.internal.AvailablePort;
import org.apache.geode.test.junit.categories.UnitTest;

@Category(UnitTest.class)
Copy link
Contributor

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).

Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@kirklund kirklund left a 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!

@jinmeiliao
Copy link
Member

+1

@asfgit asfgit closed this in db4ad02 Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants