Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate assertions in all unit tests in PrepareBoostTaskTest f…
…rom jUnit to AssertJ. (#45718) Summary: #45596 Migrated all the assertions to use `assertThat()` function from AssertJ. Also updated the `prepareBoostTask_withMissingConfiguration_fails` test to use `assertThatThrownBy` to check if the tested task throws a given exception. ## Changelog: Migrate tests to assertj in these files: - `packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareBoostTaskTest.kt` [INTERNAL] [CHANGED] - Migrated PrepareBoostTaskTest from junit.Assert to assertj.core.api.Assertions. For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #45718 Test Plan: All tests pass when `./gradlew -p packages/gradle-plugin test` command is ran. <img width="454" alt="image" src="https://github.com/user-attachments/assets/9e954f7b-2208-48a9-ae15-ab642252e6da"> Reviewed By: GijsWeterings Differential Revision: D60284566 Pulled By: cortinico fbshipit-source-id: 11af0a0ca574f935e6aab3a7855b5daaeab1a718
- Loading branch information