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());
}
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());
}
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());
}
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());
}
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());
}
Aggregations