workaround dexmaker bug in test cases

// FREEBIE
This commit is contained in:
Jake McGinty
2015-01-12 11:34:36 -10:00
parent b25b95f933
commit 91bf5532b2
6 changed files with 26 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
package org.thoughtcrime.securesms;
import android.content.Context;
import android.test.InstrumentationTestCase;
public class TextSecureTestCase extends InstrumentationTestCase {
@Override
public void setUp() throws Exception {
System.setProperty("dexmaker.dexcache", getInstrumentation().getTargetContext().getCacheDir().getPath());
}
protected Context getContext() {
return getInstrumentation().getContext();
}
}