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

Update test dependencies #3090

Merged

Commits on Jun 29, 2022

  1. Update test dependencies

    This updates JUnit, TestContainers, Lombok, and Mockito together as it
    wasn't possible to only update TestContainers alone since it also
    depends on JUnit, see PR JanusGraph#2972.
    The same applies to Mockito.
    
    These changes were necessary to update Mockito to v4:
    
    Import of `org.mockito.Matchers` needed to be changed to
    `org.mockito.ArgumentMatchers`. `Matchers` was already only an alias
    for `ArgumentMatchers` before as described in the release notes:
    https://github.com/mockito/mockito/releases/tag/v4.0.0
    
    `any()` is the replacement for `anyObject()`:
    mockito/mockito#1931
    
    Calling `property()` on a mocked `StandardVertex` resulted in a
    `NullPointer` exception, but we can also simply use a `DetachedProperty`
    as all accesses to that property on the vertex are also already mocked.
    
    Signed-off-by: Florian Hockmann <fh@florian-hockmann.de>
    FlorianHockmann committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    1e7af5d View commit details
    Browse the repository at this point in the history