Skip to content

Commit

Permalink
refactor: Remove public visibility of JUnit 5 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Feb 5, 2024
1 parent 1541401 commit 9c4d117
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import static org.openrewrite.java.Assertions.java;

public class InvocationMatcherTest implements RewriteTest {
class InvocationMatcherTest implements RewriteTest {

static JavaIsoVisitor<ExecutionContext> matcherVisitor(Predicate<Cursor> match) {
return new JavaIsoVisitor<>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

public class ExternalFlowModelsTest {
class ExternalFlowModelsTest {
@Test
void listFlowModelsOptimized() {
final var externalFlowModels = ExternalFlowModels.instance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static org.openrewrite.test.RewriteTest.toRecipe;

@SuppressWarnings({"ResultOfMethodCallIgnored", "UnnecessaryCallToStringValueOf", "StringOperationCanBeSimplified"})
public class ExternalModelMethodMatcherTest implements RewriteTest {
class ExternalModelMethodMatcherTest implements RewriteTest {
static Supplier<TreeVisitor<?, ExecutionContext>> fromModel(
String namespace,
String type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

public class ExternalSinkModelsTest {
class ExternalSinkModelsTest {

@Test
void listSinkModelsOptimized() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import static org.openrewrite.java.Assertions.java;

@LoathingOfOthers("This is basically a copy-paste of UsesAllMethodsTest.java in rewrite-java-test")
public class UsesAllInvocationsTest implements RewriteTest {
class UsesAllInvocationsTest implements RewriteTest {

@DocumentExample
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import static org.openrewrite.java.Assertions.java;
import static org.openrewrite.test.RewriteTest.toRecipe;

public class ParameterTest implements RewriteTest {
class ParameterTest implements RewriteTest {

static Supplier<TreeVisitor<?, ExecutionContext>> visitVariable(
BiFunction<J.VariableDeclarations.NamedVariable, Cursor, J.VariableDeclarations.NamedVariable> visitor
Expand Down

0 comments on commit 9c4d117

Please sign in to comment.