@@ -85,8 +85,8 @@ class TestClass {
8585 @Test
8686 void test() {
8787 try (MockedConstruction<A> aMockedConstruction = mockConstruction(A.class, (mock, context) -> {
88- when(mock.method(any())).thenReturn("XYZ");
89- })) {
88+ when(mock.method(any())).thenReturn("XYZ");
89+ })) {
9090 A instance = new A();
9191 assertEquals("XYZ", instance.method("test"));
9292 }
@@ -201,8 +201,8 @@ class TestClass {
201201 @Test
202202 void test() {
203203 try (MockedConstruction<A> aMockedConstruction = mockConstruction(A.class, (mock, context) -> {
204- when(mock.method(any())).thenReturn("XYZ");
205- })) {
204+ when(mock.method(any())).thenReturn("XYZ");
205+ })) {
206206 A instance1 = new A();
207207 A instance2 = new A();
208208 assertNotNull(instance1);
@@ -309,8 +309,8 @@ class TestClass {
309309 @Test
310310 void test() {
311311 try (MockedConstruction<A> aMockedConstruction = Mockito.mockConstruction(A.class, (mock, context) -> {
312- when(mock.method(any())).thenReturn("XYZ");
313- })) {
312+ when(mock.method(any())).thenReturn("XYZ");
313+ })) {
314314 A instance = new A();
315315 assertEquals("XYZ", instance.method("test"));
316316 }
@@ -388,9 +388,9 @@ class TestClass {
388388 @Test
389389 void test() {
390390 try (MockedConstruction<ItemInflator> itemInflatorMockedConstruction = Mockito.mockConstruction(ItemInflator.class, (mock, context) -> {
391- when(mock.inflateNodesWithItemStore(anyList())).thenReturn(productList);
392- when(mock.inflateWithIRO(anyList())).thenReturn(productList);
393- })) {
391+ when(mock.inflateNodesWithItemStore(anyList())).thenReturn(productList);
392+ when(mock.inflateWithIRO(anyList())).thenReturn(productList);
393+ })) {
394394 ItemInflator inflator = new ItemInflator();
395395 assertNotNull(inflator.inflateNodesWithItemStore(List.of()));
396396 assertNotNull(inflator.inflateWithIRO(List.of()));
0 commit comments