Skip to content

Adding a Set of New Unit Tests #96

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

Merged
merged 17 commits into from
Nov 10, 2017
Merged

Adding a Set of New Unit Tests #96

merged 17 commits into from
Nov 10, 2017

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Nov 5, 2017

This is the first of a series of PRs I'm working on to improve the unit test coverage of the Java Admin SDK. This adds new unit tests to several packages (mostly RTDB-related), and also removes some of the dead code in the repo.

There are no implementation changes in this PR other than the removal of the dead code. This boosts the code coverage from 55% to 67%.

Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

This is awesome. Please ping me when you merged this. I will port these tests to the RTDB Android client.

assertTrue(error.getMessage().contains("_test_"));
assertEquals("", error.getDetails());

try {
Copy link
Contributor

Choose a reason for hiding this comment

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

This block is the same as above. I suggest to remove this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@hiranya911 hiranya911 merged commit 3283aa8 into master Nov 10, 2017
@hiranya911 hiranya911 deleted the hkj-test-cov branch November 10, 2017 00:59
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