File tree Expand file tree Collapse file tree 5 files changed +2
-258
lines changed
java/org/openrewrite/java/testing/mockito
resources/META-INF/rewrite
test/java/org/openrewrite/java/testing Expand file tree Collapse file tree 5 files changed +2
-258
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1462,7 +1462,7 @@ examples:
14621462 private Dependency dependency2;
14631463
14641464 @InjectMocks
1465- Service service2;
1465+ Service service2 = new Service() ;
14661466
14671467 @Before
14681468 public void setUp() {
@@ -3479,24 +3479,6 @@ examples:
34793479 language: java
34803480 ---
34813481type : specs.openrewrite.org/v1beta/example
3482- recipeName : org.openrewrite.java.testing.mockito.NoInitializationForInjectMock
3483- examples :
3484- - description : ' '
3485- sources :
3486- - before : |
3487- import org.mockito.InjectMocks;
3488-
3489- class MyTest {
3490- @InjectMocks
3491- MyObject myObject = new MyObject("someField");
3492- }
3493- after: |
3494- class MyTest {
3495- MyObject myObject = new MyObject("someField");
3496- }
3497- language: java
3498- ---
3499- type : specs.openrewrite.org/v1beta/example
35003482recipeName : org.openrewrite.java.testing.mockito.PowerMockitoMockStaticToMockito
35013483examples :
35023484- description : ' '
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ recipeList:
165165 - org.openrewrite.java.ChangeType :
166166 oldFullyQualifiedTypeName : org.mockito.runners.MockitoJUnitRunner
167167 newFullyQualifiedTypeName : org.mockito.junit.MockitoJUnitRunner
168- - org.openrewrite.java.testing.mockito.NoInitializationForInjectMock
169168 - org.openrewrite.java.testing.mockito.CleanupMockitoImports
170169 - org.openrewrite.java.testing.mockito.MockUtilsToStatic
171170 - org.openrewrite.java.testing.junit5.MockitoJUnitToMockitoExtension
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public class ExampleTest {
122122 private Dependency dependency2;
123123
124124 @InjectMocks
125- Service service2;
125+ Service service2 = new Service() ;
126126
127127 @Before
128128 public void setUp() {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments