Skip to content

Commit 41e6b42

Browse files
Extract documentation examples from tests
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.ExamplesExtractor?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
1 parent 403dd48 commit 41e6b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4068,8 +4068,8 @@ examples:
40684068
@Test
40694069
void test() {
40704070
try (MockedConstruction<A> aMockedConstruction = mockConstruction(A.class, (mock, context) -> {
4071-
when(mock.method(any())).thenReturn("XYZ");
4072-
})) {
4071+
when(mock.method(any())).thenReturn("XYZ");
4072+
})) {
40734073
A instance = new A();
40744074
assertEquals("XYZ", instance.method("test"));
40754075
}

0 commit comments

Comments
 (0)