Add additional downloader implementations

RecordingDownloader relies on the real downloader and saves the request/response pair into a json file.
MockDownloader uses json files from above and mocks responses for specific requests.
This commit is contained in:
XiangRongLin
2020-12-15 15:14:07 +01:00
parent 1bcb9c76a7
commit 7c40fb8bf7
4 changed files with 138 additions and 0 deletions

View File

@@ -9,4 +9,6 @@ dependencies {
testImplementation 'junit:junit:4.13.1'
testImplementation "com.squareup.okhttp3:okhttp:3.12.11"
testImplementation 'com.google.code.gson:gson:2.8.6'
testImplementation 'commons-io:commons-io:2.8.0'
}