Migrate Hamcrest assertions to AssertJ

MSAL

Migrate Hamcrest assertThat(..) to AssertJ Assertions.

org.openrewrite.java.testing.hamcrest.MigrateHamcrestToAssertJ
mod run . --recipe=org.openrewrite.java.testing.hamcrest.MigrateHamcrestToAssertJ

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add Gradle or Maven dependency org.assertj:assertj-core:3.x
  2. Use consistent Hamcrest matcher imports
  3. Migrate anyOf and allOf Hamcrest matchers to AssertJ
  4. Migrate Hamcrest hasProperty to AssertJ
  5. Migrate Hamcrest everyItem to AssertJ
  6. Migrate Hamcrest hasItem(Matcher) to AssertJ
  7. Migrate Hamcrest is(Object) to AssertJ
  8. Migrate Hamcrest assertThat(String, boolean) to AssertJ
  9. Migrate from Hamcrest Matcher to AssertJ
  10. Migrate from Hamcrest Matcher to AssertJ
  11. Migrate from Hamcrest Matcher to AssertJ
  12. Migrate from Hamcrest Matcher to AssertJ
  13. Migrate from Hamcrest Matcher to AssertJ
  14. Migrate from Hamcrest Matcher to AssertJ
  15. Migrate from Hamcrest Matcher to AssertJ
  16. Migrate from Hamcrest Matcher to AssertJ
  17. Migrate from Hamcrest Matcher to AssertJ
  18. Migrate from Hamcrest Matcher to AssertJ
  19. Migrate from Hamcrest Matcher to AssertJ
  20. Migrate from Hamcrest Matcher to AssertJ
  21. Migrate from Hamcrest Matcher to AssertJ
  22. Migrate from Hamcrest Matcher to AssertJ
  23. Migrate from Hamcrest Matcher to AssertJ
  24. Migrate from Hamcrest Matcher to AssertJ
  25. Migrate from Hamcrest Matcher to AssertJ
  26. Migrate from Hamcrest Matcher to AssertJ
  27. Migrate from Hamcrest Matcher to AssertJ
  28. Migrate from Hamcrest Matcher to AssertJ
  29. Migrate from Hamcrest Matcher to AssertJ
  30. Migrate from Hamcrest Matcher to AssertJ
  31. Migrate from Hamcrest Matcher to AssertJ
  32. Migrate from Hamcrest Matcher to AssertJ
  33. Migrate from Hamcrest Matcher to AssertJ
  34. Migrate from Hamcrest Matcher to AssertJ
  35. Migrate from Hamcrest Matcher to AssertJ
  36. Migrate from Hamcrest Matcher to AssertJ
  37. Migrate from Hamcrest Matcher to AssertJ
  38. Migrate from Hamcrest Matcher to AssertJ
  39. Migrate from Hamcrest Matcher to AssertJ
  40. Migrate from Hamcrest Matcher to AssertJ
  41. Migrate from Hamcrest Matcher to AssertJ
  42. Migrate from Hamcrest Matcher to AssertJ
  43. Migrate from Hamcrest Matcher to AssertJ
  44. Migrate from Hamcrest Matcher to AssertJ
  45. Migrate from Hamcrest Matcher to AssertJ
  46. Migrate from Hamcrest Matcher to AssertJ
  47. Migrate from Hamcrest Matcher to AssertJ
  48. Migrate from Hamcrest Matcher to AssertJ
  49. Migrate from Hamcrest Matcher to AssertJ
  50. Migrate from Hamcrest Matcher to AssertJ
  51. Migrate from Hamcrest Matcher to AssertJ
  52. Migrate from Hamcrest Matcher to AssertJ
  53. Migrate from Hamcrest Matcher to AssertJ
  54. Migrate from Hamcrest Matcher to AssertJ
  55. Migrate from Hamcrest Matcher to AssertJ
  56. Migrate from Hamcrest Matcher to AssertJ
  57. Migrate from Hamcrest Matcher to AssertJ
  58. Migrate from Hamcrest Matcher to AssertJ
  59. Migrate from Hamcrest Matcher to AssertJ
  60. Migrate from Hamcrest Matcher to AssertJ
  61. Migrate from Hamcrest Matcher to AssertJ
  62. Migrate from Hamcrest Matcher to AssertJ
  63. Migrate from Hamcrest Matcher to AssertJ
  64. Migrate from Hamcrest Matcher to AssertJ
  65. Migrate from Hamcrest Matcher to AssertJ
  66. Migrate Hamcrest not(Matcher) to AssertJ
  67. Migrate Hamcrest not(Matcher) to AssertJ
  68. Migrate Hamcrest not(Matcher) to AssertJ
  69. Migrate Hamcrest not(Matcher) to AssertJ
  70. Migrate Hamcrest not(Matcher) to AssertJ
  71. Migrate Hamcrest not(Matcher) to AssertJ
  72. Migrate Hamcrest not(Matcher) to AssertJ
  73. Migrate Hamcrest not(Matcher) to AssertJ
  74. Migrate Hamcrest not(Matcher) to AssertJ
  75. Migrate Hamcrest not(Matcher) to AssertJ
  76. Migrate Hamcrest not(Matcher) to AssertJ
  77. Migrate Hamcrest not(Matcher) to AssertJ
  78. Migrate Hamcrest not(Matcher) to AssertJ
  79. Migrate Hamcrest not(Matcher) to AssertJ
  80. Migrate Hamcrest not(Matcher) to AssertJ
  81. Migrate Hamcrest not(Matcher) to AssertJ
  82. Migrate Hamcrest not(Matcher) to AssertJ
  83. Migrate Hamcrest not(Matcher) to AssertJ
  84. Migrate Hamcrest not(Matcher) to AssertJ
  85. Migrate Hamcrest not(Matcher) to AssertJ
  86. Migrate Hamcrest not(Matcher) to AssertJ
  87. Migrate Hamcrest not(Matcher) to AssertJ
  88. Migrate Hamcrest not(Matcher) to AssertJ
  89. Migrate Hamcrest not(Matcher) to AssertJ
  90. Migrate Hamcrest not(Matcher) to AssertJ
  91. Migrate Hamcrest not(Matcher) to AssertJ
  92. Migrate Hamcrest not(Matcher) to AssertJ