Skip to content

Commit f3e3b76

Browse files
committed
Fixed tests.
1 parent 40588d8 commit f3e3b76

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

src/test/kotlin/org/openrewrite/java/testing/assertj/JUnitAssertArrayEqualsToAssertThatTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class JUnitAssertArrayEqualsToAssertThatTest : JavaRecipeTest {
325325
assertThat(notification()).withFailMessage(() -> "These should be close").containsExactly(expected);
326326
}
327327
private String[] notification() {
328-
return new String[] {"Fred", "Alice", "Mary"};
328+
return new String[] {"Fred", "Alice", "Mary"};
329329
}
330330
}
331331
""",

src/test/kotlin/org/openrewrite/java/testing/cleanup/TestsShouldIncludeAssertionsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class TestsShouldIncludeAssertionsTest : JavaRecipeTest {
197197
class AaTest {
198198
@Mock
199199
MyMathService myMathService;
200-
200+
201201
@Test
202202
public void methodTest() {
203203
assertDoesNotThrow(() -> {

src/test/kotlin/org/openrewrite/java/testing/junit5/AssertToAssertionsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class AssertToAssertionsTest : JavaRecipeTest {
9696
public void test() {
9797
assertFalse(A.class.isAssignableFrom(t.getClass()), t.getName());
9898
}
99-
99+
100100
class T {
101101
String getName() {
102102
return "World";

src/test/kotlin/org/openrewrite/java/testing/junit5/ParameterizedRunnerToParameterizedTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class ParameterizedRunnerToParameterizedTest : JavaRecipeTest {
405405
@BeforeClass
406406
public static void setup() {
407407
}
408-
408+
409409
public static abstract class T1 extends NestedTests {
410410
final String path;
411411
public T1(String path) {
@@ -416,13 +416,13 @@ class ParameterizedRunnerToParameterizedTest : JavaRecipeTest {
416416
Assert.assertNotNull(path);
417417
}
418418
}
419-
419+
420420
static List<Object[]> valuesDataProvider() {
421421
List<Object[]> params = new ArrayList<>();
422422
params.add(new Object[] { "1", "2" });
423423
return params;
424424
}
425-
425+
426426
public static class I1 extends T1 {
427427
public static Collection<Object[]> data1() {
428428
return valuesDataProvider();
@@ -439,7 +439,7 @@ class ParameterizedRunnerToParameterizedTest : JavaRecipeTest {
439439
Assert.assertNotNull(path);
440440
}
441441
}
442-
442+
443443
public static class I2 extends NestedTests {
444444
public static Collection<Object[]> data2() {
445445
return valuesDataProvider();

src/test/kotlin/org/openrewrite/java/testing/junit5/TemporaryFolderToTempDirTest.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
5454
public class A {
5555
@TempDir
5656
public File tmpFolder;
57-
57+
5858
@After
5959
public void tearDown() {
6060
tmpFolder.delete();
@@ -167,7 +167,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
167167
168168
@TempDir
169169
File tempDir;
170-
170+
171171
void foo() {
172172
File root = tempDir;
173173
}
@@ -261,16 +261,16 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
261261
262262
@TempDir
263263
File tempDir1;
264-
264+
265265
@Test
266266
public void someTest() {
267267
File subDir = newFolder(tempDir1, "sub");
268268
File subDirs = newFolder(tempDir1, "foo", "bar", "baz");
269-
269+
270270
String last = "z";
271271
File subDirs2 = newFolder(tempDir1, "v", "w", getSubFolderName(), "y", last);
272272
}
273-
273+
274274
String getSubFolderName() {
275275
return "x";
276276
}
@@ -304,7 +304,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
304304
String s1 = "foo";
305305
String s2 = "bar";
306306
String s3 = "baz";
307-
307+
308308
@Test
309309
public void someTest() {
310310
File subDir = tempDir1.newFolder("sub");
@@ -326,7 +326,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
326326
String s1 = "foo";
327327
String s2 = "bar";
328328
String s3 = "baz";
329-
329+
330330
@Test
331331
public void someTest() {
332332
File subDir = newFolder(tempDir1, "sub");
@@ -357,7 +357,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
357357
public class T {
358358
@Rule
359359
TemporaryFolder tempFolder = new TemporaryFolder();
360-
360+
361361
@Test
362362
public void newNamedFileIsCreatedUnderRootFolder() throws IOException {
363363
final String fileName = "SampleFile.txt";
@@ -376,7 +376,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
376376
public class T {
377377
@TempDir
378378
File tempFolder;
379-
379+
380380
@Test
381381
public void newNamedFileIsCreatedUnderRootFolder() throws IOException {
382382
final String fileName = "SampleFile.txt";
@@ -425,7 +425,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
425425
static File tempFolder;
426426
@TempDir
427427
File tempFolder2;
428-
428+
429429
@Test
430430
public void newNamedFileIsCreatedUnderRootFolder() throws IOException {
431431
final String fileName = "SampleFile.txt";
@@ -461,7 +461,7 @@ class TemporaryFolderToTempDirTest : JavaRecipeTest {
461461
public class T {
462462
@TempDir
463463
public static final File temporaryFolder;
464-
464+
465465
public static void init() {
466466
File aDir = temporaryFolder;
467467
}

src/test/kotlin/org/openrewrite/java/testing/junit5/TestRuleToTestInfoTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ class TestRuleToTestInfoTest : JavaRecipeTest {
4747
import org.junit.jupiter.api.TestInfo;
4848
4949
public class SomeTest {
50-
50+
5151
public String name;
5252
protected String randomName() {
5353
return name;
5454
}
55-
55+
5656
private static class SomeInnerClass {
5757
}
5858
@@ -97,7 +97,7 @@ class TestRuleToTestInfoTest : JavaRecipeTest {
9797
9898
public class SomeTest {
9999
protected int count;
100-
100+
101101
public String name;
102102
protected String randomName() {
103103
return name;
@@ -111,7 +111,7 @@ class TestRuleToTestInfoTest : JavaRecipeTest {
111111
}
112112
count++;
113113
}
114-
114+
115115
private static class SomeInnerClass {
116116
}
117117
}

src/test/kotlin/org/openrewrite/java/testing/mockito/JunitMockitoUpgradeIntegrationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ class JunitMockitoUpgradeIntegrationTest : JavaRecipeTest {
257257
after = """
258258
import org.junit.jupiter.api.extension.ExtendWith;
259259
import org.mockito.junit.jupiter.MockitoExtension;
260-
260+
261261
@ExtendWith(MockitoExtension.class)
262-
public class ExampleTest { }
262+
public class ExampleTest {}
263263
"""
264264
)
265265
}

0 commit comments

Comments
 (0)