Skip to content

Commit

Permalink
Update MainActivityTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Nov 29, 2024
1 parent 6802bef commit e9f7344
Showing 1 changed file with 2 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import pl.leancode.patrol.PatrolJUnitRunner;
import org.getlantern.lantern.MainActivity;

@RunWith(Parameterized.class)
public class MainActivityTest {
Expand All @@ -31,38 +32,4 @@ public void runDartTest() {
PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation();
instrumentation.runDartTest(dartTestName);
}
}


//import androidx.test.platform.app.InstrumentationRegistry;
//
//import org.getlantern.lantern.MainActivity;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.junit.runners.Parameterized;
//import org.junit.runners.Parameterized.Parameters;
//
//import pl.leancode.patrol.PatrolJUnitRunner;
//
//@RunWith(Parameterized.class)
//public class MainActivityTest {
// @Parameters(name = "{0}")
// public static Object[] testCases() {
// PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation();
// instrumentation.setUp(MainActivity.class);
// instrumentation.waitForPatrolAppService();
// return instrumentation.listDartTests();
// }
//
// public MainActivityTest(String dartTestName) {
// this.dartTestName = dartTestName;
// }
//
// private final String dartTestName;
//
// @Test
// public void runDartTest() {
// PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation();
// instrumentation.runDartTest(dartTestName);
// }
//}
}

0 comments on commit e9f7344

Please sign in to comment.