forked from upstream-mirrors/OpenTracks
Change method name of EndToEndTestUtils.isEmulator() to EndToEndTestUtils.setIsEmulator(). And add comment in CreateAndSendTrackTest.
This commit is contained in:
+1
@@ -109,6 +109,7 @@ public class CreateAndSendTrackTest extends ActivityInstrumentationTestCase2<Tra
|
|||||||
// Go back to track list.
|
// Go back to track list.
|
||||||
EndToEndTestUtils.SOLO.goBack();
|
EndToEndTestUtils.SOLO.goBack();
|
||||||
instrumentation.waitForIdleSync();
|
instrumentation.waitForIdleSync();
|
||||||
|
// For all characters will be change to lower case during sendKeys() method, add to lower() method here.
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(newTrackName.toLowerCase().replaceAll(" ", "")));
|
assertTrue(EndToEndTestUtils.SOLO.searchText(newTrackName.toLowerCase().replaceAll(" ", "")));
|
||||||
assertTrue(EndToEndTestUtils.SOLO.searchText(newDesc.toLowerCase().replaceAll(" ", "")));
|
assertTrue(EndToEndTestUtils.SOLO.searchText(newDesc.toLowerCase().replaceAll(" ", "")));
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-3
@@ -121,7 +121,7 @@ public class EndToEndTestUtils {
|
|||||||
/**
|
/**
|
||||||
* Checks if the test is run under an emulator.
|
* Checks if the test is run under an emulator.
|
||||||
*/
|
*/
|
||||||
static void isEmulator() {
|
static void setIsEmulator() {
|
||||||
isEmulator = android.os.Build.MODEL.equals("google_sdk");
|
isEmulator = android.os.Build.MODEL.equals("google_sdk");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ public class EndToEndTestUtils {
|
|||||||
* @param activityMyTracks the startup activity
|
* @param activityMyTracks the startup activity
|
||||||
*/
|
*/
|
||||||
static void setupForAllTest(Instrumentation instrumentation, TrackListActivity activityMyTracks) {
|
static void setupForAllTest(Instrumentation instrumentation, TrackListActivity activityMyTracks) {
|
||||||
isEmulator();
|
setIsEmulator();
|
||||||
EndToEndTestUtils.INSTRUMENTATION = instrumentation;
|
EndToEndTestUtils.INSTRUMENTATION = instrumentation;
|
||||||
EndToEndTestUtils.ACTIVITYMYTRACKS = activityMyTracks;
|
EndToEndTestUtils.ACTIVITYMYTRACKS = activityMyTracks;
|
||||||
EndToEndTestUtils.SOLO = new Solo(EndToEndTestUtils.INSTRUMENTATION,
|
EndToEndTestUtils.SOLO = new Solo(EndToEndTestUtils.INSTRUMENTATION,
|
||||||
@@ -503,5 +503,4 @@ public class EndToEndTestUtils {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user