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

Unit & Functional Testing #777

Merged
merged 86 commits into from
Feb 26, 2014
Merged

Unit & Functional Testing #777

merged 86 commits into from
Feb 26, 2014

Conversation

maxme
Copy link
Contributor

@maxme maxme commented Jan 31, 2014

This branch adds:

  • Refactoring to unmesh network components (xmlrpc & rest) from other modules + mock objects
  • Functional testing (robotium) for NUX and Post lists
  • New unit tests (focused on Blog.java)
  • Bug fixes

maxme and others added 30 commits January 10, 2014 21:48
…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.
Fixed a couple NPEs possible with current Blog implementation.
fix oauth mock
add sInstances to customizable mock in order to track all instantiated clients
add a test to check for login error
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
@maxme maxme added this to the 2.7 milestone Feb 20, 2014
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
@nbradbury nbradbury self-assigned this Feb 26, 2014
import org.wordpress.android.util.AppLog.T;

public class RestClientFactory {
public static RestClientFactoryAbstract sFactory;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be private?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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
maxme added a commit that referenced this pull request Feb 26, 2014
@maxme maxme merged commit de091bb into develop Feb 26, 2014
@maxme
Copy link
Contributor Author

maxme commented Feb 26, 2014

The last merge (develop into feature/japan-testing) went smoothly, so I'm merging it to develop.

@maxme maxme deleted the feature/japan-testing branch February 26, 2014 18:47
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.

None yet

3 participants