You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This month's Dependabot's updates included mockito 4.5.1 -> 4.6.0
With this update, Asset Lineage OMAS tests are failing in both maven and gradle.
gradle output is
AssetContextHandlerTest > buildAssetContext_dataFile() STANDARD_OUT
[MockitoHint] org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandlerTest (see javadoc for MockitoHint):
[MockitoHint] 1. Unused... -> at org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandlerTest.buildAssetContext_dataFile(AssetContextHandlerTest.java:163)
[MockitoHint] ...args ok? -> at org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler.addConnectionToAssetContext(AssetContextHandler.java:299)
AssetContextHandlerTest > buildAssetContext_dataFile() FAILED
org.mockito.exceptions.misusing.PotentialStubbingProblem:
Strict stubbing argument mismatch. Please check:
- this invocation of 'addContextForRelationships' method:
handlerHelper.addContextForRelationships(
"user",
Mock for EntityDetail, hashCode: 2120115571,
"ConnectionEndpoint",
[]
);
-> at org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler.addConnectionToAssetContext(AssetContextHandler.java:299)
- has following stubbing(s) with different arguments:
1. handlerHelper.addContextForRelationships(
null,
null,
null,
null
);
-> at org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandlerTest.buildAssetContext_dataFile(AssetContextHandlerTest.java:163)
Typically, stubbing argument mismatch indicates user mistake when writing tests.
Mockito fails early so that you can debug potential problem easily.
However, there are legit scenarios when this exception generates false negative signal:
- stubbing the same method multiple times using 'given().will()' or 'when().then()' API
Please use 'will().given()' or 'doReturn().when()' API for stubbing.
- stubbed method is intentionally invoked with different arguments by code under test
Please use default or 'silent' JUnit Rule (equivalent of Strictness.LENIENT).
For more information see javadoc for PotentialStubbingProblem class.
at app//org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler.addConnectionToAssetContext(AssetContextHandler.java:299)
at app//org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler.buildDataFileContext(AssetContextHandler.java:315)
at app//org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler.buildAssetContext(AssetContextHandler.java:144)
at app//org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandler.buildAssetContext(AssetContextHandler.java:124)
at app//org.odpi.openmetadata.accessservices.assetlineage.handlers.AssetContextHandlerTest.buildAssetContext_dataFile(AssetContextHandlerTest.java:165)
This may indicate a problem with the test which should be fixed, and mockito upgraded in pom.xml & build.gradle to 4.6.0 or above.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.
This month's Dependabot's updates included mockito 4.5.1 -> 4.6.0
With this update, Asset Lineage OMAS tests are failing in both maven and gradle.
gradle output is
This may indicate a problem with the test which should be fixed, and mockito upgraded in pom.xml & build.gradle to 4.6.0 or above.
The text was updated successfully, but these errors were encountered: