-
Notifications
You must be signed in to change notification settings - Fork 34
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
Metamorph tests verify that no unexpected interactions occurred (first batch). #341
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this because it a) it shows the unintended behaviour and b) it's more concise.
Thanks! Going forward, would you prefer a) this PR to encompass all test changes or b) individual PRs per "batch"? |
Go with what's more convenient for you. |
…ccurred in order. * Added debug output for assertion errors. * Silenced `MockitoHint`s in `LookupTest` (due to showing standard streams). * Added `startEntity`/`endEntity` events where they were previously unverified. * Didn't enable check for unverified interactions yet; `shouldHandleUnmatchedLiteralsAndEntitiesInElseNestedSource` doesn't pass. * Removed redundant (?) `any()` literal verifications in `shouldMatchCharacterWithQuestionMarkWildcard` and `shouldMatchCharactersInCharacterClass`.
…ccurred at all. * Changed `shouldHandleUnmatchedLiteralsAndEntitiesInElseNestedSource` to match actual behaviour (see #338).
…ccurred. * Added `startRecord`/`endRecord` events where they were previously unverified.
…actions occurred.
bc2e29f
to
7172a41
Compare
So this is the first batch. I'll create new PRs for the remaining Metamorph tests as time permits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
besides the one typo +1
metamorph/src/test/java/org/metafacture/metamorph/collectors/TuplesTest.java
Show resolved
Hide resolved
…ractions occurred.
7172a41
to
4b76491
Compare
Note: In case of an unexpected interaction (Mockito assertion error), the newly introduced test helper ( |
Upgrade Gradle wrapper to version 8.6.
Reverting Java 11 changes (3d8d0e5).
Creating configurations with reserved names has been deprecated and will fail with an error in Gradle 9.0. See: https://docs.gradle.org/8.6/userguide/building_java_projects.html#sec:implicit_sourceset_configurations
Access to plugin conventions has been deprecated and is scheduled to be removed in Gradle 9.0. See: https://docs.gradle.org/8.6/userguide/upgrading_version_8.html#deprecated_access_to_conventions
Resolves #339.