-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mock mix pl tests #482
Mock mix pl tests #482
Commits on Jan 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4dad3d6 - Browse repository at this point
Copy the full SHA 4dad3d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bcb9c7 - Browse repository at this point
Copy the full SHA 1bcb9c7View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7c40fb8 - Browse repository at this point
Copy the full SHA 7c40fb8View commit details -
Add DownloaderFactory to return a specific downloader based on 2 vari…
…ables. If the system property 'downloader' is set that use that specific downloader. This is used from gradle by appending `-Ddownloader=ABCD to the command. ABCD is one of DownloaderType. The other variable is the static property `DEFAULT_DOWNLOADER` in DownloaderFactory, which can be easily changed as needed inside the IDE according to development needs`. Normal workflow would be to first use the recording downloader and afterwards only use mocks, if the requests are always staying the same.
Configuration menu - View commit details
-
Copy full SHA for e6e8e39 - Browse repository at this point
Copy the full SHA e6e8e39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 285c26e - Browse repository at this point
Copy the full SHA 285c26eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8aa989 - Browse repository at this point
Copy the full SHA f8aa989View commit details -
Configuration menu - View commit details
-
Copy full SHA for f447a7a - Browse repository at this point
Copy the full SHA f447a7aView commit details -
Add method to allow resetting youtube client version and key
This is needed so that a request is made for each test class when running multiple at once. This way RecordingDownloader records all necessary requests. This works as long as tests are run sequentially and not in parallel.
Configuration menu - View commit details
-
Copy full SHA for 35e2997 - Browse repository at this point
Copy the full SHA 35e2997View commit details -
Configuration menu - View commit details
-
Copy full SHA for 255c726 - Browse repository at this point
Copy the full SHA 255c726View commit details -
Configuration menu - View commit details
-
Copy full SHA for f91916c - Browse repository at this point
Copy the full SHA f91916cView commit details -
Prefix mock file from RecordingDownloader with "generated_mock_"
Only read those files in MockDownloader
Configuration menu - View commit details
-
Copy full SHA for 1ea6c6c - Browse repository at this point
Copy the full SHA 1ea6c6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e82cb1e - Browse repository at this point
Copy the full SHA e82cb1eView commit details
Commits on Jan 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 63c237d - Browse repository at this point
Copy the full SHA 63c237dView commit details
Commits on Jan 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3455f0f - Browse repository at this point
Copy the full SHA 3455f0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4af50c6 - Browse repository at this point
Copy the full SHA 4af50c6View commit details
Commits on Jan 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6ca7123 - Browse repository at this point
Copy the full SHA 6ca7123View commit details
Commits on Jan 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4f81d9d - Browse repository at this point
Copy the full SHA 4f81d9dView commit details