Skip to content

Commit da9d1b4

Browse files
committed
Followup after the formatting merge
1 parent efa7b6f commit da9d1b4

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

src/test/java/org/openrewrite/java/testing/junit5/JUnitParamsRunnerToParameterizedTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ private static Object[] youngAdultPersonParams() {
175175
public void personIsNamedAdult(int age, boolean valid) {
176176
}
177177
178-
179178
private static Object[] namedPeopleParams() {
180179
return new Object[]{new Object[]{13, false}, new Object[]{17, false}};
181180
}

src/test/java/org/openrewrite/java/testing/mockito/MockConstructionToTryWithResourcesTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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()));

src/test/java/org/openrewrite/java/testing/mockito/MockitoJUnitRunnerToExtensionTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ public class ExternalAPIServiceTest {
168168
import org.mockito.junit.jupiter.MockitoSettings;
169169
import org.mockito.quality.Strictness;
170170
171-
172171
@ExtendWith(MockitoExtension.class)
173172
@MockitoSettings(strictness = Strictness.WARN)
174173
public class ExternalAPIServiceTest {

0 commit comments

Comments
 (0)