-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use interceptor to mock any network request #6299
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: tobiasKaminsky <[email protected]>
Issues
======
+ Solved 1
- Added 2
Complexity decreasing per file
==============================
+ src/main/java/com/owncloud/android/ui/asynctasks/NotificationExecuteActionTask.java -1
See the complete overview on Codacy |
public class NotificationExecuteActionTask extends AsyncTask<Action, Void, Boolean> { | ||
|
||
private NotificationListAdapter.NotificationViewHolder holder; | ||
private OwnCloudClient client; | ||
private NextcloudClient client; |
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.
public class NotificationExecuteActionTask extends AsyncTask<Action, Void, Boolean> { | ||
|
||
private NotificationListAdapter.NotificationViewHolder holder; | ||
private OwnCloudClient client; | ||
private NextcloudClient client; |
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.
Issue found: Avoid unused private fields such as 'client'.
stable-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14491.apk |
master-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
Codacy397Lint
SpotBugs (new)
SpotBugs (master)
Android-library is not set to master branch in build.gradleSpotBugs increased! |
Similar to nextcloud/android-library#454
This approach let us mock any network request when run an instrumented test (for now).
I am unsure about this concept:
What do you think?
Signed-off-by: tobiasKaminsky [email protected]
Testing
Writing tests is very important. Please try to write some tests for your PR.
If you need help, please do not hesitate to ask in this PR for help.
unit tests
instrumented tests
UI tests