Skip to content

Commit

Permalink
Fix unrelated test failure due to non-whitespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Feb 4, 2024
1 parent ab53509 commit c96deb2
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,11 @@ void parameterizedTestWithEmptyConstructor() {
rewriteRun(
//language=java
java(
"""
"""
import java.util.Arrays;
import java.util.Collection;
import org.junit.runners.Parameterized;
class SampleTestClass {
@Parameterized.Parameter(value = 0)
public int num1;
Expand All @@ -543,35 +543,35 @@ class SampleTestClass {
public SampleTestClass() {
}
@Parameterized.Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][]{
{1, 2, 3},
{4, 5, 6},
{4, 5, 6}
});
}
}
""",
"""
import java.util.Arrays;
import java.util.Collection;
class SampleTestClass {
public int num1;
public int num2;
public int num3;
public SampleTestClass() {
}
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][]{
{1, 2, 3},
{4, 5, 6},
{4, 5, 6}
});
}
public void initSampleTestClass(int num1, int num2, int num3) {
this.num1 = num1;
this.num2 = num2;
Expand Down

0 comments on commit c96deb2

Please sign in to comment.