-
Notifications
You must be signed in to change notification settings - Fork 72
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
Migrate Hamcrest to JUnit 5 #343
base: main
Are you sure you want to change the base?
Commits on May 22, 2023
-
WIP: Add recipe for migration from Hamcrest
Work in progress implementation of a recipe which migrates Hamcrest test matchers to JUnit5 test assertions. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for 4b2e427 - Browse repository at this point
Copy the full SHA 4b2e427View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8ffbae - Browse repository at this point
Copy the full SHA e8ffbaeView commit details
Commits on May 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0bb2ffa - Browse repository at this point
Copy the full SHA 0bb2ffaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0947005 - Browse repository at this point
Copy the full SHA 0947005View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11d9fd2 - Browse repository at this point
Copy the full SHA 11d9fd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4a929 - Browse repository at this point
Copy the full SHA cc4a929View commit details
Commits on May 24, 2023
-
Add proto implementation for assertEquals
Added a prototype-y implementation of translation from hamcrest's equalTo to JUnit5's assertEquals. Should be easy to add more of the simple hamcrest matchers to this implementation. \TODO the import is not being added Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for bc1d5c8 - Browse repository at this point
Copy the full SHA bc1d5c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e17fc29 - Browse repository at this point
Copy the full SHA e17fc29View commit details
Commits on Jun 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 76724ca - Browse repository at this point
Copy the full SHA 76724caView commit details -
Another iteration of the prototype. Adapted it to be based on the up-to-date main. Added a proposal of how similar simple matchers could be translated to junit assertion methods. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for e360972 - Browse repository at this point
Copy the full SHA e360972View commit details
Commits on Jun 15, 2023
-
Add more simple matcher-to-method translations
Added translations for matchers closeTo, containsString, empty, emptyArray, emptyIterable, emptyCollectionOf, emptyIterableOf, endsWith. Tests need to be added for each matcher. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for 66473e8 - Browse repository at this point
Copy the full SHA 66473e8View commit details
Commits on Jun 22, 2023
-
Add more simple matcher-to-method translations
Added all the simple matcher-to-method translations. Tests need to be added for each matcher. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for cc581eb - Browse repository at this point
Copy the full SHA cc581ebView commit details
Commits on Jun 27, 2023
-
Added a bunch of tests, to verify the correctness of each matcher-to-assertion case. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for 0eb3887 - Browse repository at this point
Copy the full SHA 0eb3887View commit details
Commits on Jun 29, 2023
-
Added all the necessary unit tests and polished out the implementation. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for 7d11579 - Browse repository at this point
Copy the full SHA 7d11579View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1730fbf - Browse repository at this point
Copy the full SHA 1730fbfView commit details
Commits on Jun 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3525302 - Browse repository at this point
Copy the full SHA 3525302View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9357f7a - Browse repository at this point
Copy the full SHA 9357f7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e23d71 - Browse repository at this point
Copy the full SHA 9e23d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for d75e50f - Browse repository at this point
Copy the full SHA d75e50fView commit details
Commits on Aug 2, 2023
-
Refactored and split HamcrestMatcherToJUnit5 recipe
Refactored HamcrestMatcherToJUnit5 recipe, so now the whole translation is stored in one place, not scatter amongst three methods. Given the existence of RemoveIsMatcher Recipe, this recipe relies that it will never encounter is() matcher. In similar fashion as RemoveIsMatcher, RemoveNotMatcher was added, which does exactly the same as RemoveIsMatcher, but it also stores the logical context for the nested matcher (so that it knows it was negated) in execution context. Matchers instanceOf and isA were difficult to handle within the HamcrestMatcherToJUnit5 recipe, therefore these cases were moved to a newly added HamcrestInstanceOfToJUnit5 recipe. Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for 21d4728 - Browse repository at this point
Copy the full SHA 21d4728View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5395d63 - Browse repository at this point
Copy the full SHA 5395d63View commit details -
Forgot, added now Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Configuration menu - View commit details
-
Copy full SHA for ff0e775 - Browse repository at this point
Copy the full SHA ff0e775View commit details
Commits on Nov 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 483fcb4 - Browse repository at this point
Copy the full SHA 483fcb4View commit details
Commits on Feb 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 26a8646 - Browse repository at this point
Copy the full SHA 26a8646View commit details
Commits on Jun 15, 2024
-
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 93448e3 - Browse repository at this point
Copy the full SHA 93448e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for be54077 - Browse repository at this point
Copy the full SHA be54077View commit details -
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for be57cfe - Browse repository at this point
Copy the full SHA be57cfeView commit details