mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
0d493a3af9
* Fix the build.gradle file * Use the correct VisibleForTesting class * Fix the Android test setUp() logic * Enable a test in DeliveryReceiptJobTest.java where the @Test anotation was missing It should be noted that the tests in AttachmentDatabaseTest.java fail. Fixes #3474 Closes #5882
17 lines
420 B
Java
17 lines
420 B
Java
package org.thoughtcrime.securesms;
|
|
|
|
import android.content.Context;
|
|
import android.test.InstrumentationTestCase;
|
|
|
|
public class TextSecureTestCase extends InstrumentationTestCase {
|
|
|
|
@Override
|
|
public void setUp() {
|
|
System.setProperty("dexmaker.dexcache", getInstrumentation().getTargetContext().getCacheDir().getPath());
|
|
}
|
|
|
|
protected Context getContext() {
|
|
return getInstrumentation().getContext();
|
|
}
|
|
}
|