File tree Expand file tree Collapse file tree
components/src/test/java/org/folio/rest/workflow/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import static org .folio .spring .test .mock .MockMvcConstant .INT_VALUE ;
44import static org .folio .spring .test .mock .MockMvcConstant .VALUE ;
55import static org .junit .jupiter .api .Assertions .assertEquals ;
6+ import static org .mockito .Mockito .lenient ;
67import static org .mockito .Mockito .never ;
8+ import static org .mockito .Mockito .spy ;
79import static org .mockito .Mockito .verify ;
810import static org .springframework .test .util .ReflectionTestUtils .getField ;
911import static org .springframework .test .util .ReflectionTestUtils .setField ;
@@ -62,12 +64,12 @@ class WorkflowTest {
6264
6365 @ BeforeEach
6466 void beforeEach () {
65- workflow = Mockito . spy (Workflow .class );
67+ workflow = spy (Workflow .class );
6668 nodes = new ArrayList <>();
6769 nodes .add (node );
6870 initialContext = new HashMap <>();
6971
70- Mockito . lenient ().doReturn (NOW ).when (workflow ).now ();
72+ lenient ().doReturn (NOW ).when (workflow ).now ();
7173 }
7274
7375 @ Test
You can’t perform that action at this time.
0 commit comments