Search in sources :

Example 1 with OktaStorageMock

use of com.okta.oidc.util.OktaStorageMock in project okta-oidc-android by okta.

the class OktaStateTest method setUp.

@Before
public void setUp() throws Exception {
    mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
    mOktaStorageMock = new OktaStorageMock(mContext, false);
    mOktaRepository = new OktaRepository(mOktaStorageMock, mContext, new EncryptionManagerStub(), false, false);
    mOktaState = new OktaState(mOktaRepository);
}
Also used : OktaStorageMock(com.okta.oidc.util.OktaStorageMock) OktaRepository(com.okta.oidc.storage.OktaRepository) EncryptionManagerStub(com.okta.oidc.util.EncryptionManagerStub) Before(org.junit.Before)

Example 2 with OktaStorageMock

use of com.okta.oidc.util.OktaStorageMock in project okta-oidc-android by okta.

the class OktaRepositoryTest method setUp.

@Before
public void setUp() throws Exception {
    mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
    mHardwareEncryption = new EncryptionManagerStub(true);
    mSoftwareEncryption = new EncryptionManagerStub(false);
    mOktaStorageSoftware = new OktaStorageMock(mContext, PREF_NAME_SOFTWARE, false);
    mOktaStorageHardware = new OktaStorageMock(mContext, PREF_NAME_HARDWARE, true);
}
Also used : OktaStorageMock(com.okta.oidc.util.OktaStorageMock) EncryptionManagerStub(com.okta.oidc.util.EncryptionManagerStub) Before(org.junit.Before)

Aggregations

EncryptionManagerStub (com.okta.oidc.util.EncryptionManagerStub)2 OktaStorageMock (com.okta.oidc.util.OktaStorageMock)2 Before (org.junit.Before)2 OktaRepository (com.okta.oidc.storage.OktaRepository)1