Search in sources :

Example 11 with BackendUser

use of io.divide.client.BackendUser in project divide by HiddenStage.

the class AuthManagerTest method testSignUpASync.

@Test
public void testSignUpASync() throws Exception {
    BackendUser user = authManager.signUpASync(new SignUpCredentials("name", "email", "")).toBlockingObservable().first();
    assertEquals(user.getUsername(), "name");
}
Also used : SignUpCredentials(io.divide.client.auth.credentials.SignUpCredentials) BackendUser(io.divide.client.BackendUser) ClientTest(io.divide.client.ClientTest) Test(org.junit.Test)

Aggregations

BackendUser (io.divide.client.BackendUser)11 ClientTest (io.divide.client.ClientTest)6 SignUpCredentials (io.divide.client.auth.credentials.SignUpCredentials)6 Test (org.junit.Test)6 LoginListener (io.divide.client.auth.LoginListener)3 LoginCredentials (io.divide.client.auth.credentials.LoginCredentials)3 ValidCredentials (io.divide.client.auth.credentials.ValidCredentials)2 PublicKey (java.security.PublicKey)2 Handler (android.os.Handler)1 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 ListView (android.widget.ListView)1 TextView (android.widget.TextView)1 InjectView (butterknife.InjectView)1 BackendObject (io.divide.client.BackendObject)1 CredentialView (io.divide.client.android.CredentialView)1 Storage (io.divide.shared.file.Storage)1 XmlStorage (io.divide.shared.file.XmlStorage)1 Query (io.divide.shared.transitory.query.Query)1 QueryBuilder (io.divide.shared.transitory.query.QueryBuilder)1