Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
timtebeek and github-actions[bot] authored Jun 15, 2024
1 parent be54077 commit be57cfe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.java.testing.hamcrest;

import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.InMemoryExecutionContext;
import org.openrewrite.java.JavaParser;
import org.openrewrite.test.RecipeSpec;
Expand All @@ -36,7 +37,8 @@ public void defaults(RecipeSpec spec) {
void equalToObject() {
//language=java
rewriteRun(
java("""
java(
"""
class Biscuit {
String name;
Biscuit(String name) {
Expand Down Expand Up @@ -76,6 +78,7 @@ void testEquals() {
));
}

@DocumentExample
@Test
void equalToString() {
//language=java
Expand Down

0 comments on commit be57cfe

Please sign in to comment.