Skip to content

GEODE-3835: Use TemporayFolder instead of /tmp#2811

Merged
jujoramos merged 2 commits intoapache:developfrom
jujoramos:feature/GEODE-3835
Nov 15, 2018
Merged

GEODE-3835: Use TemporayFolder instead of /tmp#2811
jujoramos merged 2 commits intoapache:developfrom
jujoramos:feature/GEODE-3835

Conversation

@jujoramos
Copy link
Copy Markdown
Contributor

GEODE-3835: Use TemporayFolder instead of /tmp

  • Fixed minor warnings.
  • Replaced the usage of junit.Assert by assertj.

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

@jujoramos jujoramos requested a review from kirklund November 8, 2018 14:58

public class DistributedSystemBridgeJUnitTest {
@Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the test to DistributedSystemBridgeIntegrationTest and move it from geode-core/src/test to geode-core/src/integrationTest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @kirklund,

Why should I categorise this as an integrationTest if it only uses fakes and mocks?.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disregard that, it uses the file system through the TemporaryFolder, got it.

- Fixed minor warnings.
- Replaced the usage of `junit.Assert` by `assertj`.
@jujoramos jujoramos merged commit 7f70a28 into apache:develop Nov 15, 2018
@jujoramos jujoramos deleted the feature/GEODE-3835 branch November 15, 2018 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants