Skip to content

Commit

Permalink
refactor: Remove test prefix from JUnit 5 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and app committed Feb 5, 2024
1 parent 9c4d117 commit 702ac62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void defaults(RecipeSpec spec) {
}

@Test
void testVariableVisit() {
void variableVisit() {
rewriteRun(
spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> {
LocalVariableDecl p = LocalVariableDecl.viewOf(cursor).on(TraitErrors::doThrow);
Expand All @@ -77,7 +77,7 @@ void testVariableVisit() {

@Test
@SuppressWarnings("ClassInitializerMayBeStatic")
void testVariableInInitBlock() {
void variableInInitBlock() {
rewriteRun(
spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> {
LocalVariableDecl p = LocalVariableDecl.viewOf(cursor).on(TraitErrors::doThrow);
Expand All @@ -94,7 +94,7 @@ void testVariableInInitBlock() {
}

@Test
void testVariableInStaticInitBlock() {
void variableInStaticInitBlock() {
rewriteRun(
spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> {
LocalVariableDecl p = LocalVariableDecl.viewOf(cursor).on(TraitErrors::doThrow);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public J.VariableDeclarations.NamedVariable visitVariable(
}

@Test
void testVariableVisit() {
void variableVisit() {
rewriteRun(
spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> {
Parameter p = Parameter.viewOf(cursor).on(TraitErrors::doThrow);
Expand All @@ -73,7 +73,7 @@ void testVariableVisit() {
}

@Test
void testVariableVisitVarargs() {
void variableVisitVarargs() {
rewriteRun(
spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> {
Parameter p = Parameter.viewOf(cursor).on(TraitErrors::doThrow);
Expand Down

0 comments on commit 702ac62

Please sign in to comment.