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