We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Write tests for Worker implementations
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Write a BlurWorker test cleanupWorker_doWork_resultSuccess.
cleanupWorker_doWork_resultSuccess
Describe the problem
Example test code results in error and does not match final code in main branch.
main
... assertThat(result, `is`(ListenableWorker.Result.success())) ...
// main branch ... assertTrue(result is ListenableWorker.Result.Success) ...
Versions Android Studio version: 2022.3.1. Patch 2 API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.
The text was updated successfully, but these errors were encountered:
It's part of Hamcrest, it should come bundled with JUnit.
I don't know why they used that instead of assertTrue, though.
Sorry, something went wrong.
No branches or pull requests
Write tests for Worker implementations
Specify the language of the codelab if it is not English:
In which task and step of the codelab can this issue be found?
Write a BlurWorker test
cleanupWorker_doWork_resultSuccess
.Describe the problem
Example test code results in error and does not match final code in
main
branch.Versions
Android Studio version: 2022.3.1. Patch 2
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.
The text was updated successfully, but these errors were encountered: