move SanitizedFileTest into non-Android tests
It can run in plain java, so might as well.
This commit is contained in:
		
							parent
							
								
									bc3d8a89b6
								
							
						
					
					
						commit
						74274d21b4
					
				@ -1,14 +1,14 @@
 | 
				
			|||||||
package org.fdroid.fdroid;
 | 
					package org.fdroid.fdroid.data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import android.test.AndroidTestCase;
 | 
					import org.junit.Test;
 | 
				
			||||||
 | 
					 | 
				
			||||||
import org.fdroid.fdroid.data.SanitizedFile;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.io.File;
 | 
					import java.io.File;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@SuppressWarnings("PMD")  // TODO port this to JUnit 4 semantics
 | 
					import static org.junit.Assert.assertEquals;
 | 
				
			||||||
public class SanitizedFileTest extends AndroidTestCase {
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class SanitizedFileTest {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
    public void testSanitizedFile() {
 | 
					    public void testSanitizedFile() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        File directory = new File("/tmp/blah");
 | 
					        File directory = new File("/tmp/blah");
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user