move SanitizedFileTest into non-Android tests

It can run in plain java, so might as well.
This commit is contained in:
Hans-Christoph Steiner 2016-03-22 21:02:24 +01:00
parent bc3d8a89b6
commit 74274d21b4

View File

@ -1,14 +1,14 @@
package org.fdroid.fdroid;
package org.fdroid.fdroid.data;
import android.test.AndroidTestCase;
import org.fdroid.fdroid.data.SanitizedFile;
import org.junit.Test;
import java.io.File;
@SuppressWarnings("PMD") // TODO port this to JUnit 4 semantics
public class SanitizedFileTest extends AndroidTestCase {
import static org.junit.Assert.assertEquals;
public class SanitizedFileTest {
@Test
public void testSanitizedFile() {
File directory = new File("/tmp/blah");