Search in sources :

Example 1 with DomainVerificationResult

use of com.instructure.loginapi.login.model.DomainVerificationResult in project instructure-android by instructure.

the class DomainVerificationResultTest method getResult_generalError.

@Test
public void getResult_generalError() throws Exception {
    DomainVerificationResult.DomainVerificationCode code = DomainVerificationResult.DomainVerificationCode.GeneralError;
    DomainVerificationResult result = new DomainVerificationResult();
    result.setResult(code);
    Assert.assertEquals(DomainVerificationResult.DomainVerificationCode.GeneralError, result.getResult());
}
Also used : DomainVerificationResult(com.instructure.loginapi.login.model.DomainVerificationResult) Test(org.junit.Test)

Example 2 with DomainVerificationResult

use of com.instructure.loginapi.login.model.DomainVerificationResult in project instructure-android by instructure.

the class DomainVerificationResultTest method getResult_domainNotAuthorized.

@Test
public void getResult_domainNotAuthorized() throws Exception {
    DomainVerificationResult.DomainVerificationCode code = DomainVerificationResult.DomainVerificationCode.DomainNotAuthorized;
    DomainVerificationResult result = new DomainVerificationResult();
    result.setResult(code);
    Assert.assertEquals(DomainVerificationResult.DomainVerificationCode.DomainNotAuthorized, result.getResult());
}
Also used : DomainVerificationResult(com.instructure.loginapi.login.model.DomainVerificationResult) Test(org.junit.Test)

Example 3 with DomainVerificationResult

use of com.instructure.loginapi.login.model.DomainVerificationResult in project instructure-android by instructure.

the class DomainVerificationResultTest method getResult_unknownUserAgent.

@Test
public void getResult_unknownUserAgent() throws Exception {
    DomainVerificationResult.DomainVerificationCode code = DomainVerificationResult.DomainVerificationCode.UnknownUserAgent;
    DomainVerificationResult result = new DomainVerificationResult();
    result.setResult(code);
    Assert.assertEquals(DomainVerificationResult.DomainVerificationCode.UnknownUserAgent, result.getResult());
}
Also used : DomainVerificationResult(com.instructure.loginapi.login.model.DomainVerificationResult) Test(org.junit.Test)

Example 4 with DomainVerificationResult

use of com.instructure.loginapi.login.model.DomainVerificationResult in project instructure-android by instructure.

the class DomainVerificationResultTest method getResult_unknownError.

@Test
public void getResult_unknownError() throws Exception {
    DomainVerificationResult.DomainVerificationCode code = DomainVerificationResult.DomainVerificationCode.UnknownError;
    DomainVerificationResult result = new DomainVerificationResult();
    result.setResult(code);
    Assert.assertEquals(DomainVerificationResult.DomainVerificationCode.UnknownError, result.getResult());
}
Also used : DomainVerificationResult(com.instructure.loginapi.login.model.DomainVerificationResult) Test(org.junit.Test)

Example 5 with DomainVerificationResult

use of com.instructure.loginapi.login.model.DomainVerificationResult in project instructure-android by instructure.

the class DomainVerificationResultTest method getResult_success.

@Test
public void getResult_success() throws Exception {
    DomainVerificationResult.DomainVerificationCode code = DomainVerificationResult.DomainVerificationCode.Success;
    DomainVerificationResult result = new DomainVerificationResult();
    result.setResult(code);
    Assert.assertEquals(DomainVerificationResult.DomainVerificationCode.Success, result.getResult());
}
Also used : DomainVerificationResult(com.instructure.loginapi.login.model.DomainVerificationResult) Test(org.junit.Test)

Aggregations

DomainVerificationResult (com.instructure.loginapi.login.model.DomainVerificationResult)6 Test (org.junit.Test)5 Intent (android.content.Intent)1 CookieManager (android.webkit.CookieManager)1 WebResourceResponse (android.webkit.WebResourceResponse)1 MaterialDialog (com.afollestad.materialdialogs.MaterialDialog)1 OAuthToken (com.instructure.canvasapi.model.OAuthToken)1 User (com.instructure.canvasapi.model.User)1 LinkHeaders (com.instructure.canvasapi.utilities.LinkHeaders)1 UserCallback (com.instructure.canvasapi.utilities.UserCallback)1 SignedInUser (com.instructure.loginapi.login.model.SignedInUser)1 JSONArray (org.json.JSONArray)1 RetrofitError (retrofit.RetrofitError)1 Response (retrofit.client.Response)1