Skip to content
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 should verify that no unexpected interactions occurred #339

Closed
blackwinter opened this issue Oct 29, 2020 · 3 comments · Fixed by #341 or #413
Closed

Metamorph tests should verify that no unexpected interactions occurred #339

blackwinter opened this issue Oct 29, 2020 · 3 comments · Fixed by #341 or #413
Assignees

Comments

@blackwinter
Copy link
Member

blackwinter commented Oct 29, 2020

When verifying Metamorph streams, unexpected events may go unnoticed without Mockito.verifyNoMoreInteractions() (and InOrder.verifyNoMoreInteractions()).

The author's "warning" doesn't apply here, IMHO, since we actually do want to check the resulting data structure (i.e., event stream) as a whole.

Originally posted by @blackwinter in #338 (comment)

@blackwinter blackwinter changed the title Tests should verify that no unexpected interactions occurred Metamorph tests should verify that no unexpected interactions occurred Oct 29, 2020
@blackwinter
Copy link
Member Author

blackwinter commented Nov 2, 2020

Would something along the lines of PR #341 be acceptable?

@blackwinter
Copy link
Member Author

Not all Metamorph tests fixed yet.

@blackwinter blackwinter reopened this Nov 2, 2020
@blackwinter blackwinter self-assigned this Nov 3, 2020
@blackwinter
Copy link
Member Author

blackwinter commented Sep 23, 2021

Progress: ✔️

  • Metamorph tests verify that no unexpected interactions occurred (first batch). #341:
    • TestMetamorphBasics.java
    • TestMetamorphMacros.java
    • collectors/TuplesTest.java
    • functions/UniqueTest.java
    • maps/FileMapTest.java
    • maps/JavaMapTest.java
  • Metamorph tests verify that no unexpected interactions occurred (second and final batch). #413:
    • MetamorphTest.java
    • SplitterTest.java
    • collectors/AllTest.java
    • collectors/AnyTest.java
    • collectors/ChooseTest.java
    • collectors/CombineTest.java
    • collectors/ConcatTest.java
    • collectors/EntityTest.java
    • collectors/EqualsFilterTest.java
    • collectors/GroupTest.java
    • collectors/NoneTest.java
    • collectors/RangeTest.java
    • collectors/SquareTest.java
    • collectors/TestCollectorBasics.java
    • collectors/TestCollectorIf.java
    • functions/DateFormatTest.java
    • functions/LookupTest.java
    • functions/RegexpTest.java
    • functions/ScriptTest.java
    • functions/SplitTest.java
    • functions/SwitchNameValueTest.java
    • functions/TestFunctionBasics.java
    • functions/TestVariousFunctions.java
  • Not applicable (no stream tests):
    • functions/ISBNTest.java
    • functions/NormalizeUTF8Test.java
    • functions/StringOperationsTest.java
    • xml/DomLoaderTest.java

blackwinter added a commit that referenced this issue Dec 13, 2024
To be more in line with Flux commands; see #509.
blackwinter added a commit that referenced this issue Dec 13, 2024
blackwinter added a commit that referenced this issue Dec 13, 2024
blackwinter added a commit that referenced this issue Dec 13, 2024
Add links to  playground for several fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment