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 LoginPresenter #82

Merged
merged 3 commits into from
Jul 20, 2017
Merged

Add tests for LoginPresenter #82

merged 3 commits into from
Jul 20, 2017

Conversation

jeanpimentel
Copy link
Member

No description provided.


testOptions {
unitTests.all {
jvmArgs '-noverify'
Copy link
Member Author

Choose a reason for hiding this comment

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

This is necessary because some classes, like GoogleSignInAccount, are obfuscated by Proguard and this cause many problems when mocking.

There is an issue opened for Proguard, and I'm following this issue: mockito/mockito#1138

@@ -102,12 +103,15 @@ class LoginActivity : BaseActivity(), LoginContract.View, GoogleApiClient.OnConn
progress.makeVisible()
}

override fun showError() {
override fun showError(exception: Exception) {
DragonflyLogger.warn(LOG_TAG, exception.message ?: "")
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed DragonflyLogger classes from Presenter because it contains Android code. We need to find a better option to inject our Logger class.

@jeanpimentel jeanpimentel merged commit a884f8a into SMTC-1486 Jul 20, 2017
@jeanpimentel jeanpimentel deleted the SMTC-1585 branch July 20, 2017 12:29
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.

3 participants