Closed rohanKanojia closed 2 months ago
JKube Kit
Related to https://github.com/eclipse/jkube/issues/2316
SmallRyeUtilsTest seems to be using mocks here :
https://github.com/eclipse-jkube/jkube/blob/c2c9a0cdd076fbeb25087a6598b448b5271d6293/jkube-kit/jkube-kit-smallrye/src/test/java/org/eclipse/jkube/smallrye/SmallRyeUtilsTest.java#L33
This can easily be refactored to use real object using lombok builders:
javaProject = JavaProject.builder().build();
Usage of org.mockito.Mockito.mock and org.mockito.Mockito.when is removed from SmallRyeUtilsTest
org.mockito.Mockito.mock
org.mockito.Mockito.when
Usages of Mockito.mock and Mockito.when are removed from SmallRyeUtilsTest
Mockito.mock
Mockito.when
@rohanKanojia Hi, can I work on this issue?
Component
JKube Kit
Task description
Related to https://github.com/eclipse/jkube/issues/2316
SmallRyeUtilsTest seems to be using mocks here :
https://github.com/eclipse-jkube/jkube/blob/c2c9a0cdd076fbeb25087a6598b448b5271d6293/jkube-kit/jkube-kit-smallrye/src/test/java/org/eclipse/jkube/smallrye/SmallRyeUtilsTest.java#L33
This can easily be refactored to use real object using lombok builders:
Usage of
org.mockito.Mockito.mock
andorg.mockito.Mockito.when
is removed from SmallRyeUtilsTestExpected Behavior
Usages of
Mockito.mock
andMockito.when
are removed from SmallRyeUtilsTestAcceptance Criteria