package com.simperium.test;

import com.simperium.client.AuthException;
import com.simperium.client.AuthResponseListener;
import com.simperium.client.User;

public class MockAuthResponseListener implements AuthResponseListener {
    public AuthException exception;
    public User user;
    public boolean success = false, failure = false;

    @Override
    public void onSuccess(User user, String userId, String token){
        success = true;
        this.user = user;
    }

    @Override
    public void onFailure(User user, AuthException exception){
        failure = true;
        this.user = user;
        this.exception = exception;
    }
}

package com.simperium.test;

import com.simperium.client.AuthException;
import com.simperium.client.AuthResponseListener;
import com.simperium.client.User;

public class MockAuthResponseListener implements AuthResponseListener {

    public boolean success = false, failure = false;

    public User user;
    public AuthException exception;

    @Override
    public void onSuccess(User user){
        success = true;
        this.user = user;
    }

    @Override
    public void onFailure(User user, AuthException exception){
        failure = true;
        this.user = user;
        this.exception = exception;
    }

}
--- 
+++ 
@@ -5,14 +5,12 @@
 import com.simperium.client.User;
 
 public class MockAuthResponseListener implements AuthResponseListener {
-
+    public AuthException exception;
+    public User user;
     public boolean success = false, failure = false;
 
-    public User user;
-    public AuthException exception;
-
     @Override
-    public void onSuccess(User user){
+    public void onSuccess(User user, String userId, String token){
         success = true;
         this.user = user;
     }
@@ -23,5 +21,4 @@
         this.user = user;
         this.exception = exception;
     }
-
 }
Add user id and token parameters to success method in mock auth response listener test
