@@ -104,7 +104,7 @@ public void shouldValidateMockWhenCreatingInOrderObject() {
104104
105105 @ SuppressWarnings ({"CheckReturnValue" , "MockitoUsage" })
106106 @ Test
107- public void shouldGiveExplanationOnStaticMockingWithoutInlineMockMaker () {
107+ public void shouldGiveExplanationOnStaticMockingMockMaker () {
108108 Assume .assumeThat (Plugins .getMockMaker (), not (instanceOf (InlineMockMaker .class )));
109109
110110 assertThatThrownBy (
@@ -114,14 +114,13 @@ public void shouldGiveExplanationOnStaticMockingWithoutInlineMockMaker() {
114114 .isInstanceOf (MockitoException .class )
115115 .hasMessageContainingAll (
116116 "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." );
120119 }
121120
122121 @ SuppressWarnings ({"CheckReturnValue" , "MockitoUsage" })
123122 @ Test
124- public void shouldGiveExplanationOnConstructionMockingWithoutInlineMockMaker () {
123+ public void shouldGiveExplanationOnConstructionMockingMockMaker () {
125124 Assume .assumeThat (Plugins .getMockMaker (), not (instanceOf (InlineMockMaker .class )));
126125
127126 assertThatThrownBy (
@@ -131,9 +130,8 @@ public void shouldGiveExplanationOnConstructionMockingWithoutInlineMockMaker() {
131130 .isInstanceOf (MockitoException .class )
132131 .hasMessageContainingAll (
133132 "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." );
137135 }
138136
139137 @ SuppressWarnings ({"CheckReturnValue" , "MockitoUsage" })
0 commit comments