-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unit & Functional Testing #777
Conversation
…s wrong credentials
…ndencies. BlogTest is incomplete as of this commit; just want to get something into the repo for review to make sure I’m doing it right.
Started unit testing Blog. Refactored Blog to remove persistence dependencies.
…ordPress-Android into feature/japan-testing
…ordPress-Android into feature/japan-testing
Fixed a couple NPEs possible with current Blog implementation.
…ed via an abstract factory
fix oauth mock add sInstances to customizable mock in order to track all instantiated clients add a test to check for login error
…ordPress-Android into feature/japan-testing
Conflicts: src/org/wordpress/android/ui/accounts/CreateUserAndBlog.java
Conflicts: src/org/wordpress/android/ui/accounts/NewAccountAbstractPageFragment.java src/org/wordpress/android/ui/accounts/WelcomeFragmentSignIn.java
Conflicts: src/org/wordpress/android/ui/stats/StatsActivity.java
Conflicts: src/org/wordpress/android/WordPress.java src/org/wordpress/android/ui/stats/WPComLoginActivity.java src/org/xmlrpc/android/ApiHelper.java
Conflicts: src/org/wordpress/android/WordPressDB.java src/org/wordpress/android/ui/comments/EditCommentActivity.java src/org/wordpress/android/ui/notifications/NotificationsActivity.java src/org/xmlrpc/android/ApiHelper.java src/org/xmlrpc/android/XMLRPCClient.java
import org.wordpress.android.util.AppLog.T; | ||
|
||
public class RestClientFactory { | ||
public static RestClientFactoryAbstract sFactory; |
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.
Should this be private?
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.
sFactory is used in the test package to override the default factory. It could be a good idea to make it private cause we don't want to change it in production and even add a check in the setter to be sure we're in test mode.
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.
Conflicts: src/org/wordpress/android/util/PostUploadService.java
The last merge (develop into feature/japan-testing) went smoothly, so I'm merging it to develop. |
This branch adds: