mirror of
				https://github.com/oxen-io/session-android.git
				synced 2025-11-04 00:45:58 +00:00 
			
		
		
		
	* 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();
 | 
						|
  }
 | 
						|
}
 |