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

Add tests for SettingsSyncIntentService #639

Merged
merged 6 commits into from Sep 14, 2020
Merged

Conversation

ekigamba
Copy link
Contributor

@ekigamba ekigamba commented Sep 8, 2020

Depends on #633

Comment on lines -225 to -236

public void setHttpAgent(HTTPAgent httpAgent) {
this.httpAgent = httpAgent;
}

public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}

public void setSharedPreferences(AllSharedPreferences sharedPreferences) {
this.sharedPreferences = sharedPreferences;
}
Copy link
Member

Choose a reason for hiding this comment

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

Any reason you removed 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.

I had added the setters on another testing PR. Their role was to enable setting the values instead of using the constructor. I no longer need them

Copy link
Member

Choose a reason for hiding this comment

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

cool

public void tearDown() throws Exception {
ReflectionHelpers.setStaticField(Context.class, "context", null);
}

@Test
public void onHandleIntent() {
Copy link
Member

@bennsimon bennsimon Sep 14, 2020

Choose a reason for hiding this comment

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

Could you update the test name to match the convention.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool

@coveralls
Copy link

coveralls commented Sep 14, 2020

Coverage Status

Coverage increased (+0.07%) to 64.431% when pulling 19a19df on kigamba-tt-8-9-2020 into 8a6bf9d on master.

@ekigamba ekigamba merged commit f177cd7 into master Sep 14, 2020
@ekigamba ekigamba deleted the kigamba-tt-8-9-2020 branch September 14, 2020 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants