diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-09-02 15:13:00 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-09-02 15:13:00 +0200 |
commit | 1f594ad311b8f72fb78f14d137dfb53f59b03f85 (patch) | |
tree | 86390d3f87c2c8da8614e122f7d584c4775c264e /src/instrumentationTest/de/test/antennapod/gpodnet | |
parent | 730ba3cc26d65a2f4c6c8f2489ea98beab10364b (diff) | |
download | AntennaPod-1f594ad311b8f72fb78f14d137dfb53f59b03f85.zip |
Upload changes instead of whole subscription list
Diffstat (limited to 'src/instrumentationTest/de/test/antennapod/gpodnet')
-rw-r--r-- | src/instrumentationTest/de/test/antennapod/gpodnet/GPodnetServiceTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/instrumentationTest/de/test/antennapod/gpodnet/GPodnetServiceTest.java b/src/instrumentationTest/de/test/antennapod/gpodnet/GPodnetServiceTest.java index bcf0d5d43..a96fc7aab 100644 --- a/src/instrumentationTest/de/test/antennapod/gpodnet/GPodnetServiceTest.java +++ b/src/instrumentationTest/de/test/antennapod/gpodnet/GPodnetServiceTest.java @@ -1,12 +1,14 @@ package instrumentationTest.de.test.antennapod.gpodnet; import android.test.AndroidTestCase; +import android.util.Log; import de.danoeh.antennapod.gpoddernet.GpodnetService; import de.danoeh.antennapod.gpoddernet.GpodnetServiceException; import de.danoeh.antennapod.gpoddernet.model.GpodnetDevice; import de.danoeh.antennapod.gpoddernet.model.GpodnetTag; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; /** @@ -49,6 +51,16 @@ public class GPodnetServiceTest extends AndroidTestCase { service.uploadSubscriptions(USER, "radio", l); } + public void testUploadChanges() throws GpodnetServiceException { + authenticate(); + String[] URLS = {"http://bitsundso.de/feed", "http://gamesundso.de/feed", "http://cre.fm/feed/mp3/", "http://freakshow.fm/feed/m4a/"}; + List<String> subscriptions = Arrays.asList(URLS[0], URLS[1]); + List<String> removed = Arrays.asList(URLS[0]); + List<String> added = Arrays.asList(URLS[2], URLS[3]); + service.uploadSubscriptions(USER, "radio", subscriptions); + service.uploadChanges(USER, "radio", added, removed); + } + public void testGetSubscriptionChanges() throws GpodnetServiceException { authenticate(); service.getSubscriptionChanges(USER, "radio", 1362322610L); |