@@ -104,7 +104,7 @@ public void shouldValidateMockWhenCreatingInOrderObject() {
104
104
105
105
@ SuppressWarnings ({"CheckReturnValue" , "MockitoUsage" })
106
106
@ Test
107
- public void shouldGiveExplanationOnStaticMockingWithoutInlineMockMaker () {
107
+ public void shouldGiveExplanationOnStaticMockingMockMaker () {
108
108
Assume .assumeThat (Plugins .getMockMaker (), not (instanceOf (InlineMockMaker .class )));
109
109
110
110
assertThatThrownBy (
@@ -114,14 +114,13 @@ public void shouldGiveExplanationOnStaticMockingWithoutInlineMockMaker() {
114
114
.isInstanceOf (MockitoException .class )
115
115
.hasMessageContainingAll (
116
116
"The used MockMaker SubclassByteBuddyMockMaker does not support the creation of static mocks" ,
117
- "Mockito's inline mock maker supports static mocks based on the Instrumentation API." ,
118
- "You can simply enable this mock mode, by placing the 'mockito-inline' artifact where you are currently using 'mockito-core'." ,
119
- "Note that Mockito's inline mock maker is not supported on Android." );
117
+ "Ensure your MockMaker implementation supports this feature." ,
118
+ "Note that static mocks maker is not supported on Android." );
120
119
}
121
120
122
121
@ SuppressWarnings ({"CheckReturnValue" , "MockitoUsage" })
123
122
@ Test
124
- public void shouldGiveExplanationOnConstructionMockingWithoutInlineMockMaker () {
123
+ public void shouldGiveExplanationOnConstructionMockingMockMaker () {
125
124
Assume .assumeThat (Plugins .getMockMaker (), not (instanceOf (InlineMockMaker .class )));
126
125
127
126
assertThatThrownBy (
@@ -131,9 +130,8 @@ public void shouldGiveExplanationOnConstructionMockingWithoutInlineMockMaker() {
131
130
.isInstanceOf (MockitoException .class )
132
131
.hasMessageContainingAll (
133
132
"The used MockMaker SubclassByteBuddyMockMaker does not support the creation of construction mocks" ,
134
- "Mockito's inline mock maker supports construction mocks based on the Instrumentation API." ,
135
- "You can simply enable this mock mode, by placing the 'mockito-inline' artifact where you are currently using 'mockito-core'." ,
136
- "Note that Mockito's inline mock maker is not supported on Android." );
133
+ "Ensure your MockMaker implementation supports this feature." ,
134
+ "Note that construction mocks maker is not supported on Android." );
137
135
}
138
136
139
137
@ SuppressWarnings ({"CheckReturnValue" , "MockitoUsage" })
0 commit comments