forked from upstream-mirrors/OpenTracks
Add testSendLargeTrackToGoogle test case to test send a big track(which has more than 100 points) to Google.
This commit is contained in:
+13
@@ -184,6 +184,19 @@ public class SendToGoogleTest extends ActivityInstrumentationTestCase2<TrackList
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends a large track to Google.
|
||||||
|
*
|
||||||
|
* @throws GoogleAuthException
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
public void testSendLargeTrackToGoogle() throws IOException, GoogleAuthException {
|
||||||
|
EndToEndTestUtils.deleteAllTracks();
|
||||||
|
EndToEndTestUtils.createSimpleTrack(200, false);
|
||||||
|
instrumentation.waitForIdleSync();
|
||||||
|
checkSendTrackToGoogle();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
EndToEndTestUtils.activityType = EndToEndTestUtils.DEFAULTACTIVITYTYPE;
|
EndToEndTestUtils.activityType = EndToEndTestUtils.DEFAULTACTIVITYTYPE;
|
||||||
|
|||||||
Reference in New Issue
Block a user