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
Conversation
- Add test for onCreate - Add test for onHandleIntent
ef98dff
to
f8ed7e6
Compare
|
||
public void setHttpAgent(HTTPAgent httpAgent) { | ||
this.httpAgent = httpAgent; | ||
} | ||
|
||
public void setBaseUrl(String baseUrl) { | ||
this.baseUrl = baseUrl; | ||
} | ||
|
||
public void setSharedPreferences(AllSharedPreferences sharedPreferences) { | ||
this.sharedPreferences = sharedPreferences; | ||
} |
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.
Any reason you removed this?
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.
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
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.
cool
public void tearDown() throws Exception { | ||
ReflectionHelpers.setStaticField(Context.class, "context", null); | ||
} | ||
|
||
@Test | ||
public void onHandleIntent() { |
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.
Could you update the test name to match the convention.
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.
Cool
Depends on #633