Initial work on separate download library

This commit is contained in:
Torsten Grote committed 2022-02-16 09:43:17 -03:00
1 parent 1573952fbb
commit 3d479b29e5
17 files changed
+628 -120

No files matched your search

@@ -75,6 +75,8 @@ import static org.junit.Assert.assertTrue;
@RunWith(RobolectricTestRunner.class)
public class LocalHTTPDTest {
private static final String HEADER_FIELD_ETAG = "ETag";
private static ClassLoader classLoader;
private static LocalHTTPD localHttpd;
private static Thread serverStartThread;
@@ -217,7 +219,7 @@ public class LocalHTTPDTest {
assertEquals(indexFile.length(), connection.getContentLength());
assertNotEquals(0, connection.getContentLength());
String etag = connection.getHeaderField(HttpDownloader.HEADER_FIELD_ETAG);
String etag = connection.getHeaderField(HEADER_FIELD_ETAG);
assertFalse(TextUtils.isEmpty(etag));
assertEquals(200, connection.getResponseCode());