Initial work on separate download library

This commit is contained in:
Torsten Grote
2022-01-04 16:37:51 -03:00
parent 1573952fbb
commit 3d479b29e5
17 changed files with 628 additions and 120 deletions

View File

@@ -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());