OpenLibertyUtilsTest : Replace Mockito.mock
by creating actual object
#3407
Labels
Milestone
Mockito.mock
by creating actual object
#3407
Component
JKube Kit
Task description
Component
JKube Kit
Task description
Component
JKube Kit
Task description
Related to #2316
OpenLibertyUtilsTest seems to be using mock here :
jkube/jkube-kit/jkube-kit-openliberty/src/test/java/org/eclipse/jkube/openliberty/OpenLibertyUtilsTest.java
Line 39 in dad4cc6
This can easily be refactored to use real object using lombok builders:
Similarly these
when(
statements can also be replaced with builder calls like this:jkube/jkube-kit/jkube-kit-openliberty/src/test/java/org/eclipse/jkube/openliberty/OpenLibertyUtilsTest.java
Line 40 in dad4cc6
Usage of
org.mockito.Mockito.mock
andorg.mockito.Mockito.when
is removed from OpenLibertyUtilsTestExpected Behavior
Usages of
Mockito.mock
andMockito.when
are removed from OpenLibertyUtilsTestAcceptance Criteria
The text was updated successfully, but these errors were encountered: