Best Mockito code snippet using org.mockito.internal.stubbing.DefaultLenientStubber.doThrow
Source:TestGroup100Case0.java
...97 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyIterable();98 // The following exception was thrown during execution in test generation99 try {100 java.lang.Iterable<org.mockito.Mockito> mockitoIterable1 = org.mockito.Mockito.spy(mockitoIterable0);101 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");102 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {103 // Expected exception.104 }105 org.junit.Assert.assertNotNull(mockitoIterable0);106 }107 @Test108 public void test012() throws Throwable {109 if (debug)110 System.out.format("%n%s%n", "TestGroup100Case0.test012");111 java.lang.Object[] objArray3 = new java.lang.Object[] { '4', 10.0f, 1.0f };112 // The following exception was thrown during execution in test generation113 try {114 org.mockito.InOrder inOrder4 = org.mockito.Mockito.inOrder(objArray3);115 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument(s) passed is not a mock!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");116 } catch (org.mockito.exceptions.misusing.NotAMockException e) {117 // Expected exception.118 }119 org.junit.Assert.assertNotNull(objArray3);120 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[4, 10.0, 1.0]");121 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[4, 10.0, 1.0]");122 }123 @Test124 public void test013() throws Throwable {125 if (debug)126 System.out.format("%n%s%n", "TestGroup100Case0.test013");127 int int0 = java.lang.Thread.NORM_PRIORITY;128 org.junit.Assert.assertTrue("'" + int0 + "' != '" + 5 + "'", int0 == 5);129 }130 @Test131 public void test014() throws Throwable {132 if (debug)133 System.out.format("%n%s%n", "TestGroup100Case0.test014");134 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.Mockito.only();135 org.junit.Assert.assertNotNull(verificationMode0);136 }137 @Test138 public void test015() throws Throwable {139 if (debug)140 System.out.format("%n%s%n", "TestGroup100Case0.test015");141 short short1 = org.mockito.ArgumentMatchers.eq((short) 100);142 org.junit.Assert.assertTrue("'" + short1 + "' != '" + (short) 0 + "'", short1 == (short) 0);143 }144 @Test145 public void test016() throws Throwable {146 if (debug)147 System.out.format("%n%s%n", "TestGroup100Case0.test016");148 org.mockito.stubbing.BaseStubber baseStubber0 = org.mockito.ArgumentMatchers.any();149 org.junit.Assert.assertNull(baseStubber0);150 }151 @Test152 public void test017() throws Throwable {153 if (debug)154 System.out.format("%n%s%n", "TestGroup100Case0.test017");155 boolean boolean1 = org.mockito.ArgumentMatchers.eq(false);156 org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);157 }158 @Test159 public void test018() throws Throwable {160 if (debug)161 System.out.format("%n%s%n", "TestGroup100Case0.test018");162 int int0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.nextVariableIndex();163 org.junit.Assert.assertTrue("'" + int0 + "' != '" + 0 + "'", int0 == 0);164 }165 @Test166 public void test019() throws Throwable {167 if (debug)168 System.out.format("%n%s%n", "TestGroup100Case0.test019");169 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) '#');170 org.junit.Assert.assertNotNull(mockingDetails1);171 }172 @Test173 public void test020() throws Throwable {174 if (debug)175 System.out.format("%n%s%n", "TestGroup100Case0.test020");176 org.mockito.ArgumentMatcher<java.lang.Character> charArgumentMatcher0 = null;177 char char1 = org.mockito.ArgumentMatchers.charThat(charArgumentMatcher0);178 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');179 }180 @Test181 public void test021() throws Throwable {182 if (debug)183 System.out.format("%n%s%n", "TestGroup100Case0.test021");184 java.lang.Object[] objArray1 = new java.lang.Object[] { 100.0f };185 // The following exception was thrown during execution in test generation186 try {187 org.mockito.Mockito.verifyZeroInteractions(objArray1);188 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");189 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {190 // Expected exception.191 }192 org.junit.Assert.assertNotNull(objArray1);193 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray1), "[100.0]");194 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray1), "[100.0]");195 }196 @Test197 public void test022() throws Throwable {198 if (debug)199 System.out.format("%n%s%n", "TestGroup100Case0.test022");200 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("method1");201 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");202 }203 @Test204 public void test023() throws Throwable {205 if (debug)206 System.out.format("%n%s%n", "TestGroup100Case0.test023");207 org.mockito.Mockito mockito0 = new org.mockito.Mockito();208 // The following exception was thrown during execution in test generation209 try {210 org.mockito.ArgumentMatchers argumentMatchers1 = org.mockito.Mockito.verify((org.mockito.ArgumentMatchers) mockito0);211 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Mockito and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");212 } catch (org.mockito.exceptions.misusing.NotAMockException e) {213 // Expected exception.214 }215 }216 @Test217 public void test024() throws Throwable {218 if (debug)219 System.out.format("%n%s%n", "TestGroup100Case0.test024");220 org.mockito.ArgumentMatcher<java.lang.Long> longArgumentMatcher0 = null;221 long long1 = org.mockito.ArgumentMatchers.longThat(longArgumentMatcher0);222 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);223 }224 @Test225 public void test025() throws Throwable {226 if (debug)227 System.out.format("%n%s%n", "TestGroup100Case0.test025");228 java.lang.ThreadGroup threadGroup0 = null;229 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "Succeeded to forking invoke provider !");230 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap3 = internalThread2.threadLocalMap();231 org.junit.Assert.assertNull(internalThreadLocalMap3);232 }233 @Test234 public void test026() throws Throwable {235 if (debug)236 System.out.format("%n%s%n", "TestGroup100Case0.test026");237 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("Succeeded to forking invoke provider !");238 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");239 }240 @Test241 public void test027() throws Throwable {242 if (debug)243 System.out.format("%n%s%n", "TestGroup100Case0.test027");244 char char1 = org.mockito.ArgumentMatchers.eq('4');245 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');246 }247 @Test248 public void test028() throws Throwable {249 if (debug)250 System.out.format("%n%s%n", "TestGroup100Case0.test028");251 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.ArgumentMatchers.any();252 org.junit.Assert.assertNull(objAnswer0);253 }254 @Test255 public void test029() throws Throwable {256 if (debug)257 System.out.format("%n%s%n", "TestGroup100Case0.test029");258 java.lang.Iterable<org.mockito.MockingDetails> mockingDetailsIterable0 = org.mockito.ArgumentMatchers.anyIterable();259 org.junit.Assert.assertNotNull(mockingDetailsIterable0);260 }261 @Test262 public void test030() throws Throwable {263 if (debug)264 System.out.format("%n%s%n", "TestGroup100Case0.test030");265 org.mockito.MockitoFramework mockitoFramework0 = org.mockito.ArgumentMatchers.any();266 org.junit.Assert.assertNull(mockitoFramework0);267 }268 @Test269 public void test031() throws Throwable {270 if (debug)271 System.out.format("%n%s%n", "TestGroup100Case0.test031");272 // The following exception was thrown during execution in test generation273 try {274 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast((int) (short) -1);275 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: Negative value is not allowed here");276 } catch (org.mockito.exceptions.base.MockitoException e) {277 // Expected exception.278 }279 }280 @Test281 public void test032() throws Throwable {282 if (debug)283 System.out.format("%n%s%n", "TestGroup100Case0.test032");284 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) -1);285 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);286 }287 @Test288 public void test033() throws Throwable {289 if (debug)290 System.out.format("%n%s%n", "TestGroup100Case0.test033");291 char char0 = org.mockito.ArgumentMatchers.anyChar();292 org.junit.Assert.assertTrue("'" + char0 + "' != '" + '\000' + "'", char0 == '\000');293 }294 @Test295 public void test034() throws Throwable {296 if (debug)297 System.out.format("%n%s%n", "TestGroup100Case0.test034");298 // The following exception was thrown during execution in test generation299 try {300 org.mockito.Mockito.validateMockitoUsage();301 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");302 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {303 // Expected exception.304 }305 }306 @Test307 public void test035() throws Throwable {308 if (debug)309 System.out.format("%n%s%n", "TestGroup100Case0.test035");310 org.mockito.ArgumentMatcher<java.lang.Double> doubleArgumentMatcher0 = null;311 double double1 = org.mockito.ArgumentMatchers.doubleThat(doubleArgumentMatcher0);312 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);313 }314 @Test315 public void test036() throws Throwable {316 if (debug)317 System.out.format("%n%s%n", "TestGroup100Case0.test036");318 java.lang.String str0 = org.mockito.ArgumentMatchers.anyString();319 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "" + "'", str0, "");320 }321 @Test322 public void test037() throws Throwable {323 if (debug)324 System.out.format("%n%s%n", "TestGroup100Case0.test037");325 org.mockito.MockitoFramework mockitoFramework0 = org.mockito.ArgumentMatchers.isNotNull();326 org.junit.Assert.assertNull(mockitoFramework0);327 }328 @Test329 public void test038() throws Throwable {330 if (debug)331 System.out.format("%n%s%n", "TestGroup100Case0.test038");332 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet0 = org.mockito.ArgumentMatchers.notNull();333 org.junit.Assert.assertNull(strComparableSet0);334 }335 @Test336 public void test039() throws Throwable {337 if (debug)338 System.out.format("%n%s%n", "TestGroup100Case0.test039");339 java.util.Collection<java.lang.Throwable[]> throwableArrayCollection0 = org.mockito.ArgumentMatchers.anyCollection();340 org.junit.Assert.assertNotNull(throwableArrayCollection0);341 }342 @Test343 public void test040() throws Throwable {344 if (debug)345 System.out.format("%n%s%n", "TestGroup100Case0.test040");346 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();347 boolean boolean3 = internalThreadLocalMap0.setIndexedVariable(5, (java.lang.Object) (byte) 0);348 boolean boolean6 = internalThreadLocalMap0.setIndexedVariable((int) '#', (java.lang.Object) 1L);349 org.junit.Assert.assertNotNull(internalThreadLocalMap0);350// flaky: org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);351 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);352 }353 @Test354 public void test041() throws Throwable {355 if (debug)356 System.out.format("%n%s%n", "TestGroup100Case0.test041");357 double double0 = org.mockito.ArgumentMatchers.anyDouble();358 org.junit.Assert.assertTrue("'" + double0 + "' != '" + 0.0d + "'", double0 == 0.0d);359 }360 @Test361 public void test042() throws Throwable {362 if (debug)363 System.out.format("%n%s%n", "TestGroup100Case0.test042");364 java.lang.ThreadGroup threadGroup0 = null;365 java.lang.ThreadGroup threadGroup1 = null;366 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "Succeeded to forking invoke provider !");367 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "value", 1L);368 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap7 = internalThread3.threadLocalMap();369 org.junit.Assert.assertNull(internalThreadLocalMap7);370 }371 @Test372 public void test043() throws Throwable {373 if (debug)374 System.out.format("%n%s%n", "TestGroup100Case0.test043");375 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.remove();376 }377 @Test378 public void test044() throws Throwable {379 if (debug)380 System.out.format("%n%s%n", "TestGroup100Case0.test044");381 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times((int) 'a');382 org.junit.Assert.assertNotNull(verificationMode1);383 }384 @Test385 public void test045() throws Throwable {386 if (debug)387 System.out.format("%n%s%n", "TestGroup100Case0.test045");388 int int0 = java.lang.Thread.MIN_PRIORITY;389 org.junit.Assert.assertTrue("'" + int0 + "' != '" + 1 + "'", int0 == 1);390 }391 @Test392 public void test046() throws Throwable {393 if (debug)394 System.out.format("%n%s%n", "TestGroup100Case0.test046");395 java.lang.reflect.AnnotatedElement annotatedElement0 = org.mockito.ArgumentMatchers.anyObject();396 org.junit.Assert.assertNull(annotatedElement0);397 }398 @Test399 public void test047() throws Throwable {400 if (debug)401 System.out.format("%n%s%n", "TestGroup100Case0.test047");402 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.Mockito.atMostOnce();403 org.junit.Assert.assertNotNull(verificationMode0);404 }405 @Test406 public void test048() throws Throwable {407 if (debug)408 System.out.format("%n%s%n", "TestGroup100Case0.test048");409 short short0 = org.mockito.ArgumentMatchers.anyShort();410 org.junit.Assert.assertTrue("'" + short0 + "' != '" + (short) 0 + "'", short0 == (short) 0);411 }412 @Test413 public void test049() throws Throwable {414 if (debug)415 System.out.format("%n%s%n", "TestGroup100Case0.test049");416 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) 0);417 org.junit.Assert.assertNotNull(mockingDetails1);418 }419 @Test420 public void test050() throws Throwable {421 if (debug)422 System.out.format("%n%s%n", "TestGroup100Case0.test050");423 byte byte0 = org.mockito.ArgumentMatchers.anyByte();424 org.junit.Assert.assertTrue("'" + byte0 + "' != '" + (byte) 0 + "'", byte0 == (byte) 0);425 }426 @Test427 public void test051() throws Throwable {428 if (debug)429 System.out.format("%n%s%n", "TestGroup100Case0.test051");430 char char1 = org.mockito.ArgumentMatchers.eq('#');431 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');432 }433 @Test434 public void test052() throws Throwable {435 if (debug)436 System.out.format("%n%s%n", "TestGroup100Case0.test052");437 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) 1);438 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);439 }440 @Test441 public void test053() throws Throwable {442 if (debug)443 System.out.format("%n%s%n", "TestGroup100Case0.test053");444 java.util.regex.Pattern pattern0 = null;445 java.lang.String str1 = org.mockito.ArgumentMatchers.matches(pattern0);446 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");447 }448 @Test449 public void test054() throws Throwable {450 if (debug)451 System.out.format("%n%s%n", "TestGroup100Case0.test054");452 java.lang.Comparable<java.lang.String> strComparable1 = org.mockito.ArgumentMatchers.eq((java.lang.Comparable<java.lang.String>) "Succeeded to forking invoke provider !");453 org.junit.Assert.assertNull(strComparable1);454 }455 @Test456 public void test055() throws Throwable {457 if (debug)458 System.out.format("%n%s%n", "TestGroup100Case0.test055");459 org.mockito.ArgumentMatcher<java.lang.Float> floatArgumentMatcher0 = null;460 float float1 = org.mockito.ArgumentMatchers.floatThat(floatArgumentMatcher0);461 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);462 }463 @Test464 public void test056() throws Throwable {465 if (debug)466 System.out.format("%n%s%n", "TestGroup100Case0.test056");467 // The following exception was thrown during execution in test generation468 try {469 org.mockito.stubbing.Stubber stubber0 = org.mockito.Mockito.doCallRealMethod();470 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");471 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {472 // Expected exception.473 }474 }475 @Test476 public void test057() throws Throwable {477 if (debug)478 System.out.format("%n%s%n", "TestGroup100Case0.test057");479 int int1 = org.mockito.ArgumentMatchers.eq((int) (short) 1);480 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);481 }482 @Test483 public void test058() throws Throwable {484 if (debug)485 System.out.format("%n%s%n", "TestGroup100Case0.test058");486 java.util.List<org.apache.dubbo.common.threadlocal.InternalThreadLocalMap> internalThreadLocalMapList0 = org.mockito.ArgumentMatchers.anyList();487 org.junit.Assert.assertNotNull(internalThreadLocalMapList0);488 }489 @Test490 public void test059() throws Throwable {491 if (debug)492 System.out.format("%n%s%n", "TestGroup100Case0.test059");493 org.mockito.Mockito.clearAllCaches();494 }495 @Test496 public void test060() throws Throwable {497 if (debug)498 System.out.format("%n%s%n", "TestGroup100Case0.test060");499 java.util.Map<java.lang.String[], java.lang.Comparable<java.lang.String>> strArrayMap0 = org.mockito.ArgumentMatchers.anyMap();500 org.junit.Assert.assertNotNull(strArrayMap0);501 }502 @Test503 public void test061() throws Throwable {504 if (debug)505 System.out.format("%n%s%n", "TestGroup100Case0.test061");506 org.mockito.stubbing.BaseStubber baseStubber0 = org.mockito.ArgumentMatchers.isNull();507 org.junit.Assert.assertNull(baseStubber0);508 }509 @Test510 public void test062() throws Throwable {511 if (debug)512 System.out.format("%n%s%n", "TestGroup100Case0.test062");513 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls((int) (short) 100);514 org.junit.Assert.assertNotNull(verificationMode1);515 }516 @Test517 public void test063() throws Throwable {518 if (debug)519 System.out.format("%n%s%n", "TestGroup100Case0.test063");520 boolean boolean0 = org.mockito.ArgumentMatchers.anyBoolean();521 org.junit.Assert.assertTrue("'" + boolean0 + "' != '" + false + "'", boolean0 == false);522 }523 @Test524 public void test064() throws Throwable {525 if (debug)526 System.out.format("%n%s%n", "TestGroup100Case0.test064");527 short short1 = org.mockito.ArgumentMatchers.eq((short) 1);528 org.junit.Assert.assertTrue("'" + short1 + "' != '" + (short) 0 + "'", short1 == (short) 0);529 }530 @Test531 public void test065() throws Throwable {532 if (debug)533 System.out.format("%n%s%n", "TestGroup100Case0.test065");534 org.mockito.ArgumentMatcher<java.lang.Boolean> booleanArgumentMatcher0 = null;535 boolean boolean1 = org.mockito.ArgumentMatchers.booleanThat(booleanArgumentMatcher0);536 org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);537 }538 @Test539 public void test066() throws Throwable {540 if (debug)541 System.out.format("%n%s%n", "TestGroup100Case0.test066");542 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.getIfSet();543 org.mockito.verification.VerificationMode verificationMode3 = org.mockito.Mockito.atLeast((int) (byte) 1);544 // The following exception was thrown during execution in test generation545 try {546 boolean boolean4 = internalThreadLocalMap0.setIndexedVariable((int) '\000', (java.lang.Object) verificationMode3);547 org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");548 } catch (java.lang.NullPointerException e) {549 // Expected exception.550 }551 org.junit.Assert.assertNull(internalThreadLocalMap0);552 org.junit.Assert.assertNotNull(verificationMode3);553 }554 @Test555 public void test067() throws Throwable {556 if (debug)557 System.out.format("%n%s%n", "TestGroup100Case0.test067");558 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("Succeeded to forking invoke provider !");559 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");560 }561 @Test562 public void test068() throws Throwable {563 if (debug)564 System.out.format("%n%s%n", "TestGroup100Case0.test068");565 org.mockito.verification.VerificationAfterDelay verificationAfterDelay0 = org.mockito.ArgumentMatchers.any();566 org.junit.Assert.assertNull(verificationAfterDelay0);567 }568 @Test569 public void test069() throws Throwable {570 if (debug)571 System.out.format("%n%s%n", "TestGroup100Case0.test069");572 org.apache.dubbo.common.threadlocal.InternalThread internalThread0 = org.mockito.ArgumentMatchers.isNotNull();573 org.junit.Assert.assertNull(internalThread0);574 }575 @Test576 public void test070() throws Throwable {577 if (debug)578 System.out.format("%n%s%n", "TestGroup100Case0.test070");579 java.util.Collection<java.lang.Comparable<java.lang.String>> strComparableCollection0 = org.mockito.ArgumentMatchers.anyVararg();580 org.junit.Assert.assertNull(strComparableCollection0);581 }582 @Test583 public void test071() throws Throwable {584 if (debug)585 System.out.format("%n%s%n", "TestGroup100Case0.test071");586 java.lang.String[] strArray1 = new java.lang.String[] {};587 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);588 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);589 // The following exception was thrown during execution in test generation590 try {591 org.mockito.InOrder inOrder4 = org.mockito.Mockito.inOrder((java.lang.Object[]) strArray1);592 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");593 } catch (org.mockito.exceptions.base.MockitoException e) {594 // Expected exception.595 }596 org.junit.Assert.assertNotNull(strArray1);597 org.junit.Assert.assertNull(str2);598 org.junit.Assert.assertNotNull(objArray3);599 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");600 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");601 }602 @Test603 public void test072() throws Throwable {604 if (debug)605 System.out.format("%n%s%n", "TestGroup100Case0.test072");606 java.lang.String[] strArray1 = new java.lang.String[] {};607 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);608 // The following exception was thrown during execution in test generation609 try {610 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray1);611 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");612 } catch (org.mockito.exceptions.base.MockitoException e) {613 // Expected exception.614 }615 org.junit.Assert.assertNotNull(strArray1);616 org.junit.Assert.assertNull(str2);617 }618 @Test619 public void test073() throws Throwable {620 if (debug)621 System.out.format("%n%s%n", "TestGroup100Case0.test073");622 java.util.Set<java.lang.String[]> strArraySet0 = org.mockito.ArgumentMatchers.anySet();623 org.junit.Assert.assertNotNull(strArraySet0);624 }625 @Test626 public void test074() throws Throwable {627 if (debug)628 System.out.format("%n%s%n", "TestGroup100Case0.test074");629 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("");630 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");631 }632 @Test633 public void test075() throws Throwable {634 if (debug)635 System.out.format("%n%s%n", "TestGroup100Case0.test075");636 int int0 = java.lang.Thread.MAX_PRIORITY;637 org.junit.Assert.assertTrue("'" + int0 + "' != '" + 10 + "'", int0 == 10);638 }639 @Test640 public void test076() throws Throwable {641 if (debug)642 System.out.format("%n%s%n", "TestGroup100Case0.test076");643 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) 100);644 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);645 }646 @Test647 public void test077() throws Throwable {648 if (debug)649 System.out.format("%n%s%n", "TestGroup100Case0.test077");650 org.apache.dubbo.common.threadlocal.InternalThread internalThread0 = org.mockito.ArgumentMatchers.any();651 org.junit.Assert.assertNull(internalThread0);652 }653 @Test654 public void test078() throws Throwable {655 if (debug)656 System.out.format("%n%s%n", "TestGroup100Case0.test078");657 char char1 = org.mockito.ArgumentMatchers.eq('\000');658 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');659 }660 @Test661 public void test079() throws Throwable {662 if (debug)663 System.out.format("%n%s%n", "TestGroup100Case0.test079");664 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times((int) (byte) 100);665 org.junit.Assert.assertNotNull(verificationMode1);666 }667 @Test668 public void test080() throws Throwable {669 if (debug)670 System.out.format("%n%s%n", "TestGroup100Case0.test080");671 java.lang.Class<?> wildcardClass0 = org.mockito.ArgumentMatchers.isNull();672 org.junit.Assert.assertNull(wildcardClass0);673 }674 @Test675 public void test081() throws Throwable {676 if (debug)677 System.out.format("%n%s%n", "TestGroup100Case0.test081");678 java.lang.ThreadGroup threadGroup0 = null;679 java.lang.ThreadGroup threadGroup1 = null;680 java.lang.ThreadGroup threadGroup2 = null;681 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, "Succeeded to forking invoke provider !");682 org.apache.dubbo.common.threadlocal.InternalThread internalThread7 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread4, "value", 1L);683 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap8 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();684 internalThread7.setThreadLocalMap(internalThreadLocalMap8);685 org.apache.dubbo.common.threadlocal.InternalThread internalThread12 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread7, "Too many thread-local indexed variables", (long) '4');686 org.junit.Assert.assertNotNull(internalThreadLocalMap8);687 }688 @Test689 public void test082() throws Throwable {690 if (debug)691 System.out.format("%n%s%n", "TestGroup100Case0.test082");692 short short1 = org.mockito.ArgumentMatchers.eq((short) -1);693 org.junit.Assert.assertTrue("'" + short1 + "' != '" + (short) 0 + "'", short1 == (short) 0);694 }695 @Test696 public void test083() throws Throwable {697 if (debug)698 System.out.format("%n%s%n", "TestGroup100Case0.test083");699 java.lang.Object obj0 = null;700 // The following exception was thrown during execution in test generation701 try {702 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doReturn(obj0);703 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");704 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {705 // Expected exception.706 }707 }708 @Test709 public void test084() throws Throwable {710 if (debug)711 System.out.format("%n%s%n", "TestGroup100Case0.test084");712 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("value");713 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");714 }715 @Test716 public void test085() throws Throwable {717 if (debug)718 System.out.format("%n%s%n", "TestGroup100Case0.test085");719 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();720 boolean boolean3 = internalThreadLocalMap0.setIndexedVariable(5, (java.lang.Object) (byte) 0);721 org.mockito.verification.VerificationMode verificationMode5 = org.mockito.Mockito.atLeastOnce();722 boolean boolean6 = internalThreadLocalMap0.setIndexedVariable((int) (short) 0, (java.lang.Object) verificationMode5);723 java.lang.Object obj8 = internalThreadLocalMap0.removeIndexedVariable(0);724 org.junit.Assert.assertNotNull(internalThreadLocalMap0);725// flaky: org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);726 org.junit.Assert.assertNotNull(verificationMode5);727// flaky: org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);728 org.junit.Assert.assertNotNull(obj8);729 org.junit.Assert.assertEquals(obj8.toString(), "Wanted invocations count: at least 1");730 org.junit.Assert.assertEquals(java.lang.String.valueOf(obj8), "Wanted invocations count: at least 1");731 org.junit.Assert.assertEquals(java.util.Objects.toString(obj8), "Wanted invocations count: at least 1");732 }733 @Test734 public void test086() throws Throwable {735 if (debug)736 System.out.format("%n%s%n", "TestGroup100Case0.test086");737 org.mockito.verification.VerificationWithTimeout verificationWithTimeout0 = org.mockito.ArgumentMatchers.any();738 org.junit.Assert.assertNull(verificationWithTimeout0);739 }740 @Test741 public void test087() throws Throwable {742 if (debug)743 System.out.format("%n%s%n", "TestGroup100Case0.test087");744 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 100);745 java.lang.String[] strArray2 = new java.lang.String[] {};746 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout1, strArray2);747 // The following exception was thrown during execution in test generation748 try {749 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray2);750 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");751 } catch (org.mockito.exceptions.base.MockitoException e) {752 // Expected exception.753 }754 org.junit.Assert.assertNotNull(verificationWithTimeout1);755 org.junit.Assert.assertNotNull(strArray2);756 org.junit.Assert.assertNull(verificationWithTimeout3);757 }758 @Test759 public void test088() throws Throwable {760 if (debug)761 System.out.format("%n%s%n", "TestGroup100Case0.test088");762 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();763 // The following exception was thrown during execution in test generation764 try {765 org.mockito.stubbing.OngoingStubbing<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderOngoingStubbing1 = org.mockito.Mockito.when(mockitoSessionBuilder0);766 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");767 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {768 // Expected exception.769 }770 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);771 }772 @Test773 public void test089() throws Throwable {774 if (debug)775 System.out.format("%n%s%n", "TestGroup100Case0.test089");776 org.mockito.ArgumentMatcher<java.lang.Integer> intArgumentMatcher0 = null;777 int int1 = org.mockito.ArgumentMatchers.intThat(intArgumentMatcher0);778 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);779 }780 @Test781 public void test090() throws Throwable {782 if (debug)783 System.out.format("%n%s%n", "TestGroup100Case0.test090");784 java.util.Set<java.lang.CharSequence> charSequenceSet0 = org.mockito.ArgumentMatchers.anySet();785 org.junit.Assert.assertNotNull(charSequenceSet0);786 }787 @Test788 public void test091() throws Throwable {789 if (debug)790 System.out.format("%n%s%n", "TestGroup100Case0.test091");791 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("Succeeded to forking invoke provider !");792 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");793 }794 @Test795 public void test092() throws Throwable {796 if (debug)797 System.out.format("%n%s%n", "TestGroup100Case0.test092");798 java.lang.String[] strArray1 = new java.lang.String[] {};799 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);800 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);801 java.lang.String[] strArray4 = org.mockito.ArgumentMatchers.same(strArray1);802 // The following exception was thrown during execution in test generation803 try {804 java.lang.Object[] objArray5 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray4);805 org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");806 } catch (java.lang.NullPointerException e) {807 // Expected exception.808 }809 org.junit.Assert.assertNotNull(strArray1);810 org.junit.Assert.assertNull(str2);811 org.junit.Assert.assertNotNull(objArray3);812 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");813 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");814 org.junit.Assert.assertNull(strArray4);815 }816 @Test817 public void test093() throws Throwable {818 if (debug)819 System.out.format("%n%s%n", "TestGroup100Case0.test093");820 java.lang.String[] strArray2 = new java.lang.String[] {};821 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);822 // The following exception was thrown during execution in test generation823 try {824 org.mockito.stubbing.Stubber stubber4 = org.mockito.Mockito.doReturn((java.lang.Object) '\000', (java.lang.Object[]) strArray2);825 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");826 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {827 // Expected exception.828 }829 org.junit.Assert.assertNotNull(strArray2);830 org.junit.Assert.assertNull(str3);831 }832 @Test833 public void test094() throws Throwable {834 if (debug)835 System.out.format("%n%s%n", "TestGroup100Case0.test094");836 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast((int) (short) 1);837 org.mockito.stubbing.Stubber stubber2 = org.mockito.Mockito.doReturn((java.lang.Object) (short) 1);838 org.junit.Assert.assertNotNull(verificationMode1);839 org.junit.Assert.assertNotNull(stubber2);840 }841 @Test842 public void test095() throws Throwable {843 if (debug)844 System.out.format("%n%s%n", "TestGroup100Case0.test095");845 org.apache.dubbo.common.threadlocal.InternalThread internalThread0 = new org.apache.dubbo.common.threadlocal.InternalThread();846 // The following exception was thrown during execution in test generation847 try {848 java.lang.Thread thread1 = org.mockito.Mockito.verify((java.lang.Thread) internalThread0);849 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type InternalThread and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");850 } catch (org.mockito.exceptions.misusing.NotAMockException e) {851 // Expected exception.852 }853 }854 @Test855 public void test096() throws Throwable {856 if (debug)857 System.out.format("%n%s%n", "TestGroup100Case0.test096");858 java.lang.String str1 = org.mockito.ArgumentMatchers.contains("");859 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");860 }861 @Test862 public void test097() throws Throwable {863 if (debug)864 System.out.format("%n%s%n", "TestGroup100Case0.test097");865 java.lang.String[] strArray1 = new java.lang.String[] {};866 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);867 org.mockito.verification.VerificationMode verificationMode4 = org.mockito.Mockito.atLeast((int) (short) 1);868 // The following exception was thrown during execution in test generation869 try {870 java.io.Serializable serializable5 = org.mockito.Mockito.verify((java.io.Serializable) str2, verificationMode4);871 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NullInsteadOfMockException; message: ?Argument passed to verify() should be a mock but is null!?Examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();? not: verify(mock.someMethod());?Also, if you use @Mock annotation don't miss openMocks()");872 } catch (org.mockito.exceptions.misusing.NullInsteadOfMockException e) {873 // Expected exception.874 }875 org.junit.Assert.assertNotNull(strArray1);876 org.junit.Assert.assertNull(str2);877 org.junit.Assert.assertNotNull(verificationMode4);878 }879 @Test880 public void test098() throws Throwable {881 if (debug)882 System.out.format("%n%s%n", "TestGroup100Case0.test098");883 java.lang.String str1 = org.mockito.ArgumentMatchers.contains("set attachment failed!");884 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");885 }886 @Test887 public void test099() throws Throwable {888 if (debug)889 System.out.format("%n%s%n", "TestGroup100Case0.test099");890 java.util.List<java.lang.reflect.GenericDeclaration> genericDeclarationList0 = org.mockito.ArgumentMatchers.anyList();891 java.util.List<java.lang.reflect.GenericDeclaration> genericDeclarationList1 = org.mockito.ArgumentMatchers.same(genericDeclarationList0);892 org.junit.Assert.assertNotNull(genericDeclarationList0);893 org.junit.Assert.assertNull(genericDeclarationList1);894 }895 @Test896 public void test100() throws Throwable {897 if (debug)898 System.out.format("%n%s%n", "TestGroup100Case0.test100");899 double double1 = org.mockito.ArgumentMatchers.eq(1.0d);900 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);901 }902 @Test903 public void test101() throws Throwable {904 if (debug)905 System.out.format("%n%s%n", "TestGroup100Case0.test101");906 org.mockito.MockSettings mockSettings0 = org.mockito.Mockito.withSettings();907 java.lang.Class<?> wildcardClass1 = mockSettings0.getClass();908 // The following exception was thrown during execution in test generation909 try {910 java.lang.Class<?> wildcardClass2 = org.mockito.Mockito.verify(wildcardClass1);911 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Class and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");912 } catch (org.mockito.exceptions.misusing.NotAMockException e) {913 // Expected exception.914 }915 org.junit.Assert.assertNotNull(mockSettings0);916 org.junit.Assert.assertNotNull(wildcardClass1);917 }918 @Test919 public void test102() throws Throwable {920 if (debug)921 System.out.format("%n%s%n", "TestGroup100Case0.test102");922 // The following exception was thrown during execution in test generation923 try {924 org.mockito.stubbing.Stubber stubber0 = org.mockito.Mockito.doNothing();925 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");926 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {927 // Expected exception.928 }929 }930 @Test931 public void test103() throws Throwable {932 if (debug)933 System.out.format("%n%s%n", "TestGroup100Case0.test103");934 org.mockito.MockSettings mockSettings0 = org.mockito.Mockito.withSettings();935 java.lang.Class<?> wildcardClass1 = mockSettings0.getClass();936 org.mockito.MockSettings mockSettings2 = org.mockito.Mockito.withSettings();937 java.lang.Class<?> wildcardClass3 = mockSettings2.getClass();938 org.mockito.MockSettings mockSettings4 = org.mockito.Mockito.withSettings();939 java.lang.Class<?> wildcardClass5 = mockSettings4.getClass();940 org.mockito.MockSettings mockSettings6 = org.mockito.Mockito.withSettings();941 java.lang.Class<?> wildcardClass7 = mockSettings6.getClass();942 org.mockito.MockSettings mockSettings8 = org.mockito.Mockito.withSettings();943 java.lang.Class<?> wildcardClass9 = mockSettings8.getClass();944 org.mockito.MockSettings mockSettings10 = org.mockito.Mockito.withSettings();945 java.lang.Class<?> wildcardClass11 = mockSettings10.getClass();946 java.lang.Class[] classArray13 = new java.lang.Class[6];947 @SuppressWarnings("unchecked")948 java.lang.Class<?>[] wildcardClassArray14 = (java.lang.Class<?>[]) classArray13;949 wildcardClassArray14[0] = wildcardClass1;950 wildcardClassArray14[1] = wildcardClass3;951 wildcardClassArray14[2] = wildcardClass5;952 wildcardClassArray14[3] = wildcardClass7;953 wildcardClassArray14[4] = wildcardClass9;954 wildcardClassArray14[5] = wildcardClass11;955 // The following exception was thrown during execution in test generation956 try {957 org.mockito.Mockito.clearInvocations(wildcardClassArray14);958 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.UnfinishedStubbingException; message: ?Unfinished stubbing detected here:?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??E.g. thenReturn() may be missing.?Examples of correct stubbing:? when(mock.isOk()).thenReturn(true);? when(mock.isOk()).thenThrow(exception);? doThrow(exception).when(mock).someVoidMethod();?Hints:? 1. missing thenReturn()? 2. you are trying to stub a final method, which is not supported? 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed?");959 } catch (org.mockito.exceptions.misusing.UnfinishedStubbingException e) {960 // Expected exception.961 }962 org.junit.Assert.assertNotNull(mockSettings0);963 org.junit.Assert.assertNotNull(wildcardClass1);964 org.junit.Assert.assertNotNull(mockSettings2);965 org.junit.Assert.assertNotNull(wildcardClass3);966 org.junit.Assert.assertNotNull(mockSettings4);967 org.junit.Assert.assertNotNull(wildcardClass5);968 org.junit.Assert.assertNotNull(mockSettings6);969 org.junit.Assert.assertNotNull(wildcardClass7);970 org.junit.Assert.assertNotNull(mockSettings8);971 org.junit.Assert.assertNotNull(wildcardClass9);972 org.junit.Assert.assertNotNull(mockSettings10);973 org.junit.Assert.assertNotNull(wildcardClass11);974 org.junit.Assert.assertNotNull(classArray13);975 org.junit.Assert.assertNotNull(wildcardClassArray14);976 }977 @Test978 public void test104() throws Throwable {979 if (debug)980 System.out.format("%n%s%n", "TestGroup100Case0.test104");981 org.mockito.ArgumentMatcher<java.lang.Byte> byteArgumentMatcher0 = null;982 byte byte1 = org.mockito.ArgumentMatchers.byteThat(byteArgumentMatcher0);983 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);984 }985 @Test986 public void test105() throws Throwable {987 if (debug)988 System.out.format("%n%s%n", "TestGroup100Case0.test105");989 java.lang.String[] strArray1 = new java.lang.String[] {};990 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);991 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);992 java.lang.String[] strArray4 = org.mockito.ArgumentMatchers.same(strArray1);993 // The following exception was thrown during execution in test generation994 try {995 org.mockito.InOrder inOrder5 = org.mockito.Mockito.inOrder((java.lang.Object[]) strArray1);996 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");997 } catch (org.mockito.exceptions.base.MockitoException e) {998 // Expected exception.999 }1000 org.junit.Assert.assertNotNull(strArray1);1001 org.junit.Assert.assertNull(str2);1002 org.junit.Assert.assertNotNull(objArray3);1003 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");1004 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");1005 org.junit.Assert.assertNull(strArray4);1006 }1007 @Test1008 public void test106() throws Throwable {1009 if (debug)1010 System.out.format("%n%s%n", "TestGroup100Case0.test106");1011 java.lang.ThreadGroup threadGroup0 = null;1012 java.lang.ThreadGroup threadGroup1 = null;1013 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "Succeeded to forking invoke provider !");1014 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "value", 1L);1015 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap7 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1016 internalThread3.setThreadLocalMap(internalThreadLocalMap7);1017 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap9 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1018 boolean boolean12 = internalThreadLocalMap9.setIndexedVariable(5, (java.lang.Object) (byte) 0);1019 org.mockito.verification.VerificationMode verificationMode14 = org.mockito.Mockito.atLeastOnce();1020 boolean boolean15 = internalThreadLocalMap9.setIndexedVariable((int) (short) 0, (java.lang.Object) verificationMode14);1021 java.lang.Object obj17 = internalThreadLocalMap9.indexedVariable((int) ' ');1022 internalThread3.setThreadLocalMap(internalThreadLocalMap9);1023 org.junit.Assert.assertNotNull(internalThreadLocalMap7);1024 org.junit.Assert.assertNotNull(internalThreadLocalMap9);1025 org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);1026 org.junit.Assert.assertNotNull(verificationMode14);1027 org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);1028 org.junit.Assert.assertNotNull(obj17);1029 }1030 @Test1031 public void test107() throws Throwable {1032 if (debug)1033 System.out.format("%n%s%n", "TestGroup100Case0.test107");1034 org.mockito.MockSettings mockSettings0 = org.mockito.Mockito.withSettings();1035 java.lang.Class<?> wildcardClass1 = mockSettings0.getClass();1036 // The following exception was thrown during execution in test generation1037 try {1038 java.lang.reflect.AnnotatedElement annotatedElement2 = org.mockito.Mockito.spy((java.lang.reflect.AnnotatedElement) wildcardClass1);1039 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Cannot mock/spy class java.lang.Class?Mockito cannot mock/spy because :? - final class");1040 } catch (org.mockito.exceptions.base.MockitoException e) {1041 // Expected exception.1042 }1043 org.junit.Assert.assertNotNull(mockSettings0);1044 org.junit.Assert.assertNotNull(wildcardClass1);1045 }1046 @Test1047 public void test108() throws Throwable {1048 if (debug)1049 System.out.format("%n%s%n", "TestGroup100Case0.test108");1050 java.lang.Class<?> wildcardClass0 = org.mockito.ArgumentMatchers.notNull();1051 org.junit.Assert.assertNull(wildcardClass0);1052 }1053 @Test1054 public void test109() throws Throwable {1055 if (debug)1056 System.out.format("%n%s%n", "TestGroup100Case0.test109");1057 org.mockito.stubbing.LenientStubber lenientStubber0 = org.mockito.Mockito.lenient();1058 org.mockito.verification.VerificationMode verificationMode2 = org.mockito.Mockito.atLeast((int) (short) 1);1059 // The following exception was thrown during execution in test generation1060 try {1061 org.mockito.stubbing.LenientStubber lenientStubber3 = org.mockito.Mockito.verify(lenientStubber0, verificationMode2);1062 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type DefaultLenientStubber and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");1063 } catch (org.mockito.exceptions.misusing.NotAMockException e) {1064 // Expected exception.1065 }1066 org.junit.Assert.assertNotNull(lenientStubber0);1067 org.junit.Assert.assertNotNull(verificationMode2);1068 }1069 @Test1070 public void test110() throws Throwable {1071 if (debug)1072 System.out.format("%n%s%n", "TestGroup100Case0.test110");1073 java.lang.Comparable<java.lang.String> strComparable0 = org.mockito.ArgumentMatchers.anyVararg();1074 org.junit.Assert.assertNull(strComparable0);1075 }1076 @Test1077 public void test111() throws Throwable {1078 if (debug)1079 System.out.format("%n%s%n", "TestGroup100Case0.test111");1080 // The following exception was thrown during execution in test generation1081 try {1082 java.lang.CharSequence charSequence1 = org.mockito.Mockito.spy((java.lang.CharSequence) "Too many thread-local indexed variables");1083 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Cannot mock/spy class java.lang.String?Mockito cannot mock/spy because :? - final class");1084 } catch (org.mockito.exceptions.base.MockitoException e) {1085 // Expected exception.1086 }1087 }1088 @Test1089 public void test112() throws Throwable {1090 if (debug)1091 System.out.format("%n%s%n", "TestGroup100Case0.test112");1092 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("");1093 java.lang.ThreadGroup threadGroup2 = null;1094 java.lang.ThreadGroup threadGroup3 = null;1095 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup3, "Succeeded to forking invoke provider !");1096 org.apache.dubbo.common.threadlocal.InternalThread internalThread8 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, (java.lang.Runnable) internalThread5, "value", 1L);1097 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap9 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1098 internalThread5.setThreadLocalMap(internalThreadLocalMap9);1099 org.mockito.verification.VerificationAfterDelay verificationAfterDelay12 = org.mockito.Mockito.after((long) ' ');1100 java.lang.Object[] objArray13 = new java.lang.Object[] { verificationMode1, internalThreadLocalMap9, ' ' };1101 // The following exception was thrown during execution in test generation1102 try {1103 org.mockito.Mockito.verifyZeroInteractions(objArray13);1104 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1105 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1106 // Expected exception.1107 }1108 org.junit.Assert.assertNotNull(verificationMode1);1109 org.junit.Assert.assertNotNull(internalThreadLocalMap9);1110 org.junit.Assert.assertNotNull(verificationAfterDelay12);1111 org.junit.Assert.assertNotNull(objArray13);1112 }1113 @Test1114 public void test113() throws Throwable {1115 if (debug)1116 System.out.format("%n%s%n", "TestGroup100Case0.test113");1117 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.CALLS_REAL_METHODS;1118 java.lang.String[] strArray2 = new java.lang.String[] {};1119 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);1120 java.lang.Object[] objArray4 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray2);1121 java.lang.String[] strArray5 = org.mockito.ArgumentMatchers.same(strArray2);1122 // The following exception was thrown during execution in test generation1123 try {1124 org.mockito.stubbing.Stubber stubber6 = org.mockito.Mockito.doReturn((java.lang.Object) objAnswer0, (java.lang.Object[]) strArray5);1125 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1126 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1127 // Expected exception.1128 }1129 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.CALLS_REAL_METHODS + "'", objAnswer0.equals(org.mockito.Answers.CALLS_REAL_METHODS));1130 org.junit.Assert.assertNotNull(strArray2);1131 org.junit.Assert.assertNull(str3);1132 org.junit.Assert.assertNotNull(objArray4);1133 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray4), "[]");1134 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray4), "[]");1135 org.junit.Assert.assertNull(strArray5);1136 }1137 @Test1138 public void test114() throws Throwable {1139 if (debug)1140 System.out.format("%n%s%n", "TestGroup100Case0.test114");1141 java.lang.Object obj0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.UNSET;1142 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doReturn(obj0);1143 org.junit.Assert.assertNotNull(obj0);1144 org.junit.Assert.assertNotNull(stubber1);1145 }1146 @Test1147 public void test115() throws Throwable {1148 if (debug)1149 System.out.format("%n%s%n", "TestGroup100Case0.test115");1150 int int0 = org.mockito.ArgumentMatchers.anyInt();1151 org.junit.Assert.assertTrue("'" + int0 + "' != '" + 0 + "'", int0 == 0);1152 }1153 @Test1154 public void test116() throws Throwable {1155 if (debug)1156 System.out.format("%n%s%n", "TestGroup100Case0.test116");1157 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyObject();1158 org.junit.Assert.assertNull(mockitoIterable0);1159 }1160 @Test1161 public void test117() throws Throwable {1162 if (debug)1163 System.out.format("%n%s%n", "TestGroup100Case0.test117");1164 java.lang.ThreadGroup threadGroup0 = null;1165 java.lang.ThreadGroup threadGroup1 = null;1166 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "Succeeded to forking invoke provider !");1167 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "value", 1L);1168 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap7 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1169 internalThread6.setThreadLocalMap(internalThreadLocalMap7);1170 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap9 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1171 boolean boolean12 = internalThreadLocalMap9.setIndexedVariable(5, (java.lang.Object) (byte) 0);1172 org.mockito.verification.VerificationMode verificationMode14 = org.mockito.Mockito.atLeastOnce();1173 boolean boolean15 = internalThreadLocalMap9.setIndexedVariable((int) (short) 0, (java.lang.Object) verificationMode14);1174 java.lang.Object obj17 = internalThreadLocalMap9.removeIndexedVariable(0);1175 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap19 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.getIfSet();1176 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet20 = org.mockito.ArgumentMatchers.anySet();1177 java.lang.Object[] objArray21 = new java.lang.Object[] { internalThreadLocalMap7, obj17, 0L, internalThreadLocalMap19, strComparableSet20 };1178 // The following exception was thrown during execution in test generation1179 try {1180 java.lang.Object[] objArray22 = org.mockito.Mockito.ignoreStubs(objArray21);1181 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: Argument should be a mock, but is: class org.apache.dubbo.common.threadlocal.InternalThreadLocalMap");1182 } catch (org.mockito.exceptions.misusing.NotAMockException e) {1183 // Expected exception.1184 }1185 org.junit.Assert.assertNotNull(internalThreadLocalMap7);1186 org.junit.Assert.assertNotNull(internalThreadLocalMap9);1187 org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);1188 org.junit.Assert.assertNotNull(verificationMode14);1189 org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);1190 org.junit.Assert.assertNotNull(obj17);1191 org.junit.Assert.assertEquals(obj17.toString(), "Wanted invocations count: at least 1");1192 org.junit.Assert.assertEquals(java.lang.String.valueOf(obj17), "Wanted invocations count: at least 1");1193 org.junit.Assert.assertEquals(java.util.Objects.toString(obj17), "Wanted invocations count: at least 1");1194 org.junit.Assert.assertNotNull(internalThreadLocalMap19);1195 org.junit.Assert.assertNotNull(strComparableSet20);1196 org.junit.Assert.assertNotNull(objArray21);1197 }1198 @Test1199 public void test118() throws Throwable {1200 if (debug)1201 System.out.format("%n%s%n", "TestGroup100Case0.test118");1202 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap0 = org.mockito.ArgumentMatchers.anyMap();1203 // The following exception was thrown during execution in test generation1204 try {1205 org.mockito.stubbing.OngoingStubbing<java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings>> comparableSetMapOngoingStubbing1 = org.mockito.Mockito.when(strComparableSetMap0);1206 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1207 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1208 // Expected exception.1209 }1210 org.junit.Assert.assertNotNull(strComparableSetMap0);1211 }1212 @Test1213 public void test119() throws Throwable {1214 if (debug)1215 System.out.format("%n%s%n", "TestGroup100Case0.test119");1216 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();1217 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.ArgumentMatchers.same(mockitoSessionBuilder0);1218 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);1219 org.junit.Assert.assertNull(mockitoSessionBuilder1);1220 }1221 @Test1222 public void test120() throws Throwable {1223 if (debug)1224 System.out.format("%n%s%n", "TestGroup100Case0.test120");1225 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1226 java.util.List<java.lang.Object[]> objArrayList2 = org.mockito.ArgumentMatchers.anyList();1227 boolean boolean3 = internalThreadLocalMap0.setIndexedVariable((int) '\000', (java.lang.Object) objArrayList2);1228 org.junit.Assert.assertNotNull(internalThreadLocalMap0);1229 org.junit.Assert.assertNotNull(objArrayList2);1230 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);1231 }1232 @Test1233 public void test121() throws Throwable {1234 if (debug)1235 System.out.format("%n%s%n", "TestGroup100Case0.test121");1236 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet0 = null;1237 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet1 = org.mockito.ArgumentMatchers.eq(strComparableSet0);1238 org.junit.Assert.assertNull(strComparableSet1);1239 }1240 @Test1241 public void test122() throws Throwable {1242 if (debug)1243 System.out.format("%n%s%n", "TestGroup100Case0.test122");1244 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.getIfSet();1245 int int1 = internalThreadLocalMap0.size();1246 org.junit.Assert.assertNotNull(internalThreadLocalMap0);1247 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 1 + "'", int1 == 1);1248 }1249 @Test1250 public void test123() throws Throwable {1251 if (debug)1252 System.out.format("%n%s%n", "TestGroup100Case0.test123");1253 java.util.List<java.lang.reflect.AnnotatedElement> annotatedElementList0 = org.mockito.ArgumentMatchers.anyList();1254 org.junit.Assert.assertNotNull(annotatedElementList0);1255 }1256 @Test1257 public void test124() throws Throwable {1258 if (debug)1259 System.out.format("%n%s%n", "TestGroup100Case0.test124");1260 java.lang.reflect.Type type0 = org.mockito.ArgumentMatchers.isNotNull();1261 org.junit.Assert.assertNull(type0);1262 }1263 @Test1264 public void test125() throws Throwable {1265 if (debug)1266 System.out.format("%n%s%n", "TestGroup100Case0.test125");1267 java.util.Set<java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings>> comparableSetMapSet0 = org.mockito.ArgumentMatchers.anySet();1268 org.junit.Assert.assertNotNull(comparableSetMapSet0);1269 }1270 @Test1271 public void test126() throws Throwable {1272 if (debug)1273 System.out.format("%n%s%n", "TestGroup100Case0.test126");1274 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap0 = org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.get();1275 boolean boolean3 = internalThreadLocalMap0.setIndexedVariable(5, (java.lang.Object) (byte) 0);1276 org.mockito.verification.VerificationMode verificationMode5 = org.mockito.Mockito.atLeastOnce();1277 boolean boolean6 = internalThreadLocalMap0.setIndexedVariable((int) (short) 0, (java.lang.Object) verificationMode5);1278 // The following exception was thrown during execution in test generation1279 try {1280 java.lang.Object obj8 = internalThreadLocalMap0.removeIndexedVariable((int) (byte) -1);1281 org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -1");1282 } catch (java.lang.ArrayIndexOutOfBoundsException e) {1283 // Expected exception.1284 }1285 org.junit.Assert.assertNotNull(internalThreadLocalMap0);1286 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);1287 org.junit.Assert.assertNotNull(verificationMode5);1288 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);1289 }1290 @Test1291 public void test127() throws Throwable {1292 if (debug)1293 System.out.format("%n%s%n", "TestGroup100Case0.test127");1294 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();1295 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();1296 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();1297 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder3 = org.mockito.ArgumentMatchers.same(mockitoSessionBuilder2);1298 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder4 = org.mockito.Mockito.mockitoSession();1299 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder5 = org.mockito.Mockito.mockitoSession();1300 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray6 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0, mockitoSessionBuilder1, mockitoSessionBuilder2, mockitoSessionBuilder4, mockitoSessionBuilder5 };1301 // The following exception was thrown during execution in test generation1302 try {1303 org.mockito.Mockito.clearInvocations(mockitoSessionBuilderArray6);1304 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1305 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1306 // Expected exception.1307 }1308 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);1309 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);1310 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);1311 org.junit.Assert.assertNull(mockitoSessionBuilder3);1312 org.junit.Assert.assertNotNull(mockitoSessionBuilder4);1313 org.junit.Assert.assertNotNull(mockitoSessionBuilder5);1314 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray6);1315 }1316 @Test1317 public void test128() throws Throwable {1318 if (debug)1319 System.out.format("%n%s%n", "TestGroup100Case0.test128");1320 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("");1321 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");1322 }1323 @Test1324 public void test129() throws Throwable {1325 if (debug)1326 System.out.format("%n%s%n", "TestGroup100Case0.test129");1327 long long0 = org.mockito.ArgumentMatchers.anyLong();1328 org.junit.Assert.assertTrue("'" + long0 + "' != '" + 0L + "'", long0 == 0L);1329 }1330 @Test1331 public void test130() throws Throwable {1332 if (debug)1333 System.out.format("%n%s%n", "TestGroup100Case0.test130");1334 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap.destroy();1335 }1336 @Test1337 public void test131() throws Throwable {1338 if (debug)1339 System.out.format("%n%s%n", "TestGroup100Case0.test131");1340 org.mockito.MockSettings mockSettings0 = org.mockito.Mockito.withSettings();1341 java.lang.Class<?> wildcardClass1 = mockSettings0.getClass();1342 java.lang.reflect.GenericDeclaration genericDeclaration2 = org.mockito.ArgumentMatchers.same((java.lang.reflect.GenericDeclaration) wildcardClass1);1343 org.junit.Assert.assertNotNull(mockSettings0);1344 org.junit.Assert.assertNotNull(wildcardClass1);1345 org.junit.Assert.assertNull(genericDeclaration2);1346 }1347 @Test1348 public void test132() throws Throwable {1349 if (debug)1350 System.out.format("%n%s%n", "TestGroup100Case0.test132");1351 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("Failed to forking invoke provider");1352 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");1353 }1354 @Test1355 public void test133() throws Throwable {1356 if (debug)1357 System.out.format("%n%s%n", "TestGroup100Case0.test133");1358 org.mockito.MockSettings mockSettings0 = org.mockito.ArgumentMatchers.isNotNull();1359 org.junit.Assert.assertNull(mockSettings0);1360 }1361 @Test1362 public void test134() throws Throwable {1363 if (debug)1364 System.out.format("%n%s%n", "TestGroup100Case0.test134");1365 float float1 = org.mockito.ArgumentMatchers.eq(0.0f);1366 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);1367 }1368 @Test1369 public void test135() throws Throwable {1370 if (debug)1371 System.out.format("%n%s%n", "TestGroup100Case0.test135");1372 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) 100);1373 org.junit.Assert.assertNotNull(verificationAfterDelay1);1374 }1375 @Test1376 public void test136() throws Throwable {1377 if (debug)1378 System.out.format("%n%s%n", "TestGroup100Case0.test136");1379 java.lang.String[] strArray2 = new java.lang.String[] {};1380 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);1381 java.lang.Object[] objArray4 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray2);1382 java.lang.String[] strArray5 = org.mockito.ArgumentMatchers.same(strArray2);1383 // The following exception was thrown during execution in test generation1384 try {1385 org.mockito.stubbing.Stubber stubber6 = org.mockito.Mockito.doReturn((java.lang.Object) 0.0f, (java.lang.Object[]) strArray5);1386 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1387 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1388 // Expected exception.1389 }1390 org.junit.Assert.assertNotNull(strArray2);1391 org.junit.Assert.assertNull(str3);1392 org.junit.Assert.assertNotNull(objArray4);1393 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray4), "[]");1394 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray4), "[]");1395 org.junit.Assert.assertNull(strArray5);1396 }1397 @Test1398 public void test137() throws Throwable {1399 if (debug)1400 System.out.format("%n%s%n", "TestGroup100Case0.test137");1401 int int1 = org.mockito.ArgumentMatchers.eq(100);1402 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);1403 }1404 @Test1405 public void test138() throws Throwable {1406 if (debug)1407 System.out.format("%n%s%n", "TestGroup100Case0.test138");1408 org.apache.dubbo.common.threadlocal.InternalThread internalThread0 = org.mockito.ArgumentMatchers.isNull();1409 org.junit.Assert.assertNull(internalThread0);1410 }1411 @Test1412 public void test139() throws Throwable {1413 if (debug)1414 System.out.format("%n%s%n", "TestGroup100Case0.test139");1415 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("Failed to forking invoke provider");1416 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");1417 }1418 @Test1419 public void test140() throws Throwable {1420 if (debug)1421 System.out.format("%n%s%n", "TestGroup100Case0.test140");1422 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.ArgumentMatchers.anyObject();1423 org.junit.Assert.assertNull(mockitoSessionBuilder0);1424 }1425 @Test1426 public void test141() throws Throwable {1427 if (debug)1428 System.out.format("%n%s%n", "TestGroup100Case0.test141");1429 java.lang.String[] strArray1 = new java.lang.String[] {};1430 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);1431 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);1432 java.lang.String[] strArray4 = org.mockito.ArgumentMatchers.same(strArray1);1433 // The following exception was thrown during execution in test generation1434 try {1435 org.mockito.Mockito.reset((java.lang.Object[]) strArray1);1436 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1437 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1438 // Expected exception.1439 }1440 org.junit.Assert.assertNotNull(strArray1);1441 org.junit.Assert.assertNull(str2);1442 org.junit.Assert.assertNotNull(objArray3);1443 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");1444 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");1445 org.junit.Assert.assertNull(strArray4);1446 }1447 @Test1448 public void test142() throws Throwable {1449 if (debug)1450 System.out.format("%n%s%n", "TestGroup100Case0.test142");1451 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 100);1452 java.lang.String[] strArray2 = new java.lang.String[] {};1453 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout1, strArray2);1454 // The following exception was thrown during execution in test generation1455 try {1456 org.mockito.Mockito.verifyZeroInteractions((java.lang.Object[]) strArray2);1457 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");1458 } catch (org.mockito.exceptions.base.MockitoException e) {1459 // Expected exception.1460 }1461 org.junit.Assert.assertNotNull(verificationWithTimeout1);1462 org.junit.Assert.assertNotNull(strArray2);1463 org.junit.Assert.assertNull(verificationWithTimeout3);1464 }1465 @Test1466 public void test143() throws Throwable {1467 if (debug)1468 System.out.format("%n%s%n", "TestGroup100Case0.test143");1469 // The following exception was thrown during execution in test generation1470 try {1471 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls(0);1472 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: Negative and zero values are not allowed here");1473 } catch (org.mockito.exceptions.base.MockitoException e) {1474 // Expected exception.1475 }1476 }1477 @Test1478 public void test144() throws Throwable {1479 if (debug)1480 System.out.format("%n%s%n", "TestGroup100Case0.test144");1481 java.util.Set<java.lang.Object> objSet0 = org.mockito.ArgumentMatchers.anySet();1482 org.junit.Assert.assertNotNull(objSet0);1483 }1484 @Test1485 public void test145() throws Throwable {1486 if (debug)1487 System.out.format("%n%s%n", "TestGroup100Case0.test145");1488 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.ArgumentMatchers.isNotNull();1489 org.junit.Assert.assertNull(verificationMode0);1490 }1491 @Test1492 public void test146() throws Throwable {1493 if (debug)1494 System.out.format("%n%s%n", "TestGroup100Case0.test146");1495 long long1 = org.mockito.ArgumentMatchers.eq((long) (short) -1);1496 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);1497 }1498 @Test1499 public void test147() throws Throwable {1500 if (debug)1501 System.out.format("%n%s%n", "TestGroup100Case0.test147");1502 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap0 = org.mockito.ArgumentMatchers.anyMap();1503 org.mockito.verification.VerificationMode verificationMode2 = org.mockito.Mockito.atMost((int) (byte) 10);1504 // The following exception was thrown during execution in test generation1505 try {1506 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap3 = org.mockito.Mockito.verify(strComparableSetMap0, verificationMode2);1507 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type HashMap and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");1508 } catch (org.mockito.exceptions.misusing.NotAMockException e) {1509 // Expected exception.1510 }1511 org.junit.Assert.assertNotNull(strComparableSetMap0);1512 org.junit.Assert.assertNotNull(verificationMode2);1513 }1514 @Test1515 public void test148() throws Throwable {1516 if (debug)1517 System.out.format("%n%s%n", "TestGroup100Case0.test148");1518 double double1 = org.mockito.ArgumentMatchers.eq((double) (byte) 1);1519 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);1520 }1521 @Test1522 public void test149() throws Throwable {1523 if (debug)1524 System.out.format("%n%s%n", "TestGroup100Case0.test149");1525 java.lang.Iterable<java.util.Collection<java.lang.Comparable<java.lang.String>>> strComparableCollectionIterable0 = org.mockito.ArgumentMatchers.anyIterable();1526 org.junit.Assert.assertNotNull(strComparableCollectionIterable0);1527 }1528 @Test1529 public void test150() throws Throwable {1530 if (debug)1531 System.out.format("%n%s%n", "TestGroup100Case0.test150");1532 org.mockito.MockSettings mockSettings0 = org.mockito.Mockito.withSettings();1533 java.lang.Class<?> wildcardClass1 = mockSettings0.getClass();1534 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.Mockito.timeout((long) (short) 100);1535 java.lang.String[] strArray4 = new java.lang.String[] {};1536 org.mockito.verification.VerificationWithTimeout verificationWithTimeout5 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout3, strArray4);1537 java.lang.reflect.AnnotatedElement annotatedElement6 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass1, strArray4);1538 // The following exception was thrown during execution in test generation1539 try {1540 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray4);1541 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");1542 } catch (org.mockito.exceptions.base.MockitoException e) {1543 // Expected exception.1544 }1545 org.junit.Assert.assertNotNull(mockSettings0);1546 org.junit.Assert.assertNotNull(wildcardClass1);1547 org.junit.Assert.assertNotNull(verificationWithTimeout3);1548 org.junit.Assert.assertNotNull(strArray4);1549 org.junit.Assert.assertNull(verificationWithTimeout5);1550 org.junit.Assert.assertNull(annotatedElement6);1551 }1552 @Test1553 public void test151() throws Throwable {1554 if (debug)1555 System.out.format("%n%s%n", "TestGroup100Case0.test151");1556 java.lang.reflect.GenericDeclaration genericDeclaration0 = org.mockito.ArgumentMatchers.isNotNull();1557 org.junit.Assert.assertNull(genericDeclaration0);1558 }1559 @Test1560 public void test152() throws Throwable {1561 if (debug)1562 System.out.format("%n%s%n", "TestGroup100Case0.test152");1563 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast(0);1564 java.lang.String[] strArray3 = new java.lang.String[] {};1565 java.lang.String str4 = org.mockito.ArgumentMatchers.refEq("method1", strArray3);1566 java.lang.Object[] objArray5 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray3);1567 java.lang.String[] strArray6 = org.mockito.ArgumentMatchers.same(strArray3);1568 org.mockito.verification.VerificationMode verificationMode7 = org.mockito.ArgumentMatchers.refEq(verificationMode1, strArray6);1569 org.junit.Assert.assertNotNull(verificationMode1);1570 org.junit.Assert.assertNotNull(strArray3);1571 org.junit.Assert.assertNull(str4);1572 org.junit.Assert.assertNotNull(objArray5);1573 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray5), "[]");1574 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray5), "[]");1575 org.junit.Assert.assertNull(strArray6);1576 org.junit.Assert.assertNull(verificationMode7);1577 }1578 @Test1579 public void test153() throws Throwable {1580 if (debug)1581 System.out.format("%n%s%n", "TestGroup100Case0.test153");1582 org.mockito.MockitoFramework mockitoFramework0 = org.mockito.Mockito.framework();1583 org.mockito.MockitoFramework mockitoFramework1 = org.mockito.ArgumentMatchers.eq(mockitoFramework0);1584 org.mockito.MockitoFramework mockitoFramework2 = org.mockito.Mockito.framework();1585 org.mockito.MockitoFramework mockitoFramework3 = org.mockito.Mockito.framework();1586 org.mockito.MockitoFramework mockitoFramework4 = org.mockito.Mockito.framework();1587 org.mockito.MockitoFramework mockitoFramework5 = org.mockito.ArgumentMatchers.eq(mockitoFramework4);1588 org.mockito.MockitoFramework mockitoFramework6 = org.mockito.Mockito.framework();1589 org.mockito.MockitoFramework[] mockitoFrameworkArray7 = new org.mockito.MockitoFramework[] { mockitoFramework0, mockitoFramework2, mockitoFramework3, mockitoFramework4, mockitoFramework6 };1590 // The following exception was thrown during execution in test generation1591 try {1592 org.mockito.Mockito.reset(mockitoFrameworkArray7);1593 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1594 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1595 // Expected exception.1596 }1597 org.junit.Assert.assertNotNull(mockitoFramework0);1598 org.junit.Assert.assertNull(mockitoFramework1);1599 org.junit.Assert.assertNotNull(mockitoFramework2);1600 org.junit.Assert.assertNotNull(mockitoFramework3);1601 org.junit.Assert.assertNotNull(mockitoFramework4);1602 org.junit.Assert.assertNull(mockitoFramework5);1603 org.junit.Assert.assertNotNull(mockitoFramework6);1604 org.junit.Assert.assertNotNull(mockitoFrameworkArray7);1605 }1606 @Test1607 public void test154() throws Throwable {1608 if (debug)1609 System.out.format("%n%s%n", "TestGroup100Case0.test154");1610 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls(100);1611 org.junit.Assert.assertNotNull(verificationMode1);1612 }1613 @Test1614 public void test155() throws Throwable {1615 if (debug)1616 System.out.format("%n%s%n", "TestGroup100Case0.test155");1617 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) ' ');1618 org.mockito.verification.VerificationMode verificationMode3 = org.mockito.Mockito.times((int) '4');1619 // The following exception was thrown during execution in test generation1620 try {1621 org.mockito.verification.VerificationAfterDelay verificationAfterDelay4 = org.mockito.Mockito.verify(verificationAfterDelay1, verificationMode3);1622 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type After and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");1623 } catch (org.mockito.exceptions.misusing.NotAMockException e) {1624 // Expected exception.1625 }1626 org.junit.Assert.assertNotNull(verificationAfterDelay1);1627 org.junit.Assert.assertNotNull(verificationMode3);1628 }1629 @Test1630 public void test156() throws Throwable {1631 if (debug)1632 System.out.format("%n%s%n", "TestGroup100Case0.test156");1633 java.io.Serializable serializable0 = org.mockito.ArgumentMatchers.any();1634 org.junit.Assert.assertNull(serializable0);1635 }1636 @Test1637 public void test157() throws Throwable {1638 if (debug)1639 System.out.format("%n%s%n", "TestGroup100Case0.test157");1640 java.util.List<org.mockito.stubbing.Stubber> stubberList0 = org.mockito.ArgumentMatchers.anyList();1641 org.junit.Assert.assertNotNull(stubberList0);1642 }1643 @Test1644 public void test158() throws Throwable {1645 if (debug)1646 System.out.format("%n%s%n", "TestGroup100Case0.test158");1647 float float1 = org.mockito.ArgumentMatchers.eq((float) 100);1648 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);1649 }1650 @Test1651 public void test159() throws Throwable {1652 if (debug)1653 System.out.format("%n%s%n", "TestGroup100Case0.test159");1654 java.lang.CharSequence charSequence0 = org.mockito.ArgumentMatchers.isNull();1655 org.junit.Assert.assertNull(charSequence0);1656 }1657 @Test1658 public void test160() throws Throwable {1659 if (debug)1660 System.out.format("%n%s%n", "TestGroup100Case0.test160");1661 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 100);1662 java.lang.String[] strArray2 = new java.lang.String[] {};1663 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout1, strArray2);1664 // The following exception was thrown during execution in test generation1665 try {1666 org.mockito.InOrder inOrder4 = org.mockito.Mockito.inOrder((java.lang.Object[]) strArray2);1667 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");1668 } catch (org.mockito.exceptions.base.MockitoException e) {1669 // Expected exception.1670 }1671 org.junit.Assert.assertNotNull(verificationWithTimeout1);1672 org.junit.Assert.assertNotNull(strArray2);1673 org.junit.Assert.assertNull(verificationWithTimeout3);1674 }1675 @Test1676 public void test161() throws Throwable {1677 if (debug)1678 System.out.format("%n%s%n", "TestGroup100Case0.test161");1679 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("");1680 }1681 @Test1682 public void test162() throws Throwable {1683 if (debug)1684 System.out.format("%n%s%n", "TestGroup100Case0.test162");1685 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (byte) 10);1686 org.junit.Assert.assertNotNull(verificationWithTimeout1);1687 }1688 @Test1689 public void test163() throws Throwable {1690 if (debug)1691 System.out.format("%n%s%n", "TestGroup100Case0.test163");1692 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();1693 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();1694 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();1695 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);1696 java.lang.String[] strArray5 = new java.lang.String[] {};1697 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);1698 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);1699 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder0, strArray5);1700 // The following exception was thrown during execution in test generation1701 try {1702 org.mockito.Mockito.clearInvocations((java.lang.Object[]) strArray5);1703 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1704 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1705 // Expected exception.1706 }1707 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);1708 org.junit.Assert.assertNotNull(mockSettings1);1709 org.junit.Assert.assertNotNull(wildcardClass2);1710 org.junit.Assert.assertNotNull(verificationWithTimeout4);1711 org.junit.Assert.assertNotNull(strArray5);1712 org.junit.Assert.assertNull(verificationWithTimeout6);1713 org.junit.Assert.assertNull(annotatedElement7);1714 org.junit.Assert.assertNull(mockitoSessionBuilder8);1715 }1716 @Test1717 public void test164() throws Throwable {1718 if (debug)1719 System.out.format("%n%s%n", "TestGroup100Case0.test164");1720 short short1 = org.mockito.ArgumentMatchers.eq((short) (byte) 0);1721 org.junit.Assert.assertTrue("'" + short1 + "' != '" + (short) 0 + "'", short1 == (short) 0);1722 }1723 @Test1724 public void test165() throws Throwable {1725 if (debug)1726 System.out.format("%n%s%n", "TestGroup100Case0.test165");1727 java.lang.String[] strArray1 = new java.lang.String[] {};1728 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);1729 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);1730 java.lang.String[] strArray4 = org.mockito.ArgumentMatchers.same(strArray1);1731 // The following exception was thrown during execution in test generation1732 try {1733 org.mockito.Mockito.verifyNoInteractions((java.lang.Object[]) strArray1);1734 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");1735 } catch (org.mockito.exceptions.base.MockitoException e) {1736 // Expected exception.1737 }1738 org.junit.Assert.assertNotNull(strArray1);1739 org.junit.Assert.assertNull(str2);1740 org.junit.Assert.assertNotNull(objArray3);1741 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");1742 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");1743 org.junit.Assert.assertNull(strArray4);1744 }1745 @Test1746 public void test166() throws Throwable {1747 if (debug)1748 System.out.format("%n%s%n", "TestGroup100Case0.test166");1749 java.lang.String[] strArray2 = new java.lang.String[] {};1750 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);1751 java.lang.Object[] objArray4 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray2);1752 java.lang.String[] strArray5 = org.mockito.ArgumentMatchers.same(strArray2);1753 // The following exception was thrown during execution in test generation1754 try {1755 org.mockito.stubbing.Stubber stubber6 = org.mockito.Mockito.doReturn((java.lang.Object) "Too many thread-local indexed variables", (java.lang.Object[]) strArray2);1756 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1757 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1758 // Expected exception.1759 }1760 org.junit.Assert.assertNotNull(strArray2);1761 org.junit.Assert.assertNull(str3);1762 org.junit.Assert.assertNotNull(objArray4);1763 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray4), "[]");1764 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray4), "[]");1765 org.junit.Assert.assertNull(strArray5);1766 }1767 @Test1768 public void test167() throws Throwable {1769 if (debug)1770 System.out.format("%n%s%n", "TestGroup100Case0.test167");1771 double double1 = org.mockito.ArgumentMatchers.eq((double) '4');1772 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);1773 }1774 @Test1775 public void test168() throws Throwable {1776 if (debug)1777 System.out.format("%n%s%n", "TestGroup100Case0.test168");1778 org.mockito.Mockito mockito0 = new org.mockito.Mockito();1779 // The following exception was thrown during execution in test generation1780 try {1781 org.mockito.Mockito mockito1 = org.mockito.Mockito.verify(mockito0);1782 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Mockito and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");1783 } catch (org.mockito.exceptions.misusing.NotAMockException e) {1784 // Expected exception.1785 }1786 }1787 @Test1788 public void test169() throws Throwable {1789 if (debug)1790 System.out.format("%n%s%n", "TestGroup100Case0.test169");1791 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet0 = org.mockito.ArgumentMatchers.anyVararg();1792 org.junit.Assert.assertNull(strComparableSet0);1793 }1794 @Test1795 public void test170() throws Throwable {1796 if (debug)1797 System.out.format("%n%s%n", "TestGroup100Case0.test170");1798 java.lang.ThreadGroup threadGroup0 = null;1799 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");1800 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);1801 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3);1802 org.mockito.MockSettings mockSettings5 = org.mockito.Mockito.withSettings();1803 java.lang.Class<?> wildcardClass6 = mockSettings5.getClass();1804 org.mockito.verification.VerificationWithTimeout verificationWithTimeout8 = org.mockito.Mockito.timeout((long) (short) 100);1805 java.lang.String[] strArray9 = new java.lang.String[] {};1806 org.mockito.verification.VerificationWithTimeout verificationWithTimeout10 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout8, strArray9);1807 java.lang.reflect.AnnotatedElement annotatedElement11 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass6, strArray9);1808 // The following exception was thrown during execution in test generation1809 try {1810 org.mockito.stubbing.Stubber stubber12 = org.mockito.Mockito.doReturn((java.lang.Object) internalThread4, (java.lang.Object[]) strArray9);1811 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1812 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1813 // Expected exception.1814 }1815 org.junit.Assert.assertNotNull(mockSettings5);1816 org.junit.Assert.assertNotNull(wildcardClass6);1817 org.junit.Assert.assertNotNull(verificationWithTimeout8);1818 org.junit.Assert.assertNotNull(strArray9);1819 org.junit.Assert.assertNull(verificationWithTimeout10);1820 org.junit.Assert.assertNull(annotatedElement11);1821 }1822 @Test1823 public void test171() throws Throwable {1824 if (debug)1825 System.out.format("%n%s%n", "TestGroup100Case0.test171");1826 java.lang.String[] strArray1 = new java.lang.String[] {};1827 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);1828 // The following exception was thrown during execution in test generation1829 try {1830 org.mockito.Mockito.verifyZeroInteractions((java.lang.Object[]) strArray1);1831 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");1832 } catch (org.mockito.exceptions.base.MockitoException e) {1833 // Expected exception.1834 }1835 org.junit.Assert.assertNotNull(strArray1);1836 org.junit.Assert.assertNull(str2);1837 }1838 @Test1839 public void test172() throws Throwable {1840 if (debug)1841 System.out.format("%n%s%n", "TestGroup100Case0.test172");1842 java.lang.String[][] strArray0 = null;1843 // The following exception was thrown during execution in test generation1844 try {1845 org.mockito.Mockito.clearInvocations(strArray0);1846 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1847 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1848 // Expected exception.1849 }1850 }1851 @Test1852 public void test173() throws Throwable {1853 if (debug)1854 System.out.format("%n%s%n", "TestGroup100Case0.test173");1855 org.mockito.ArgumentMatchers argumentMatchers0 = org.mockito.ArgumentMatchers.isNotNull();1856 org.junit.Assert.assertNull(argumentMatchers0);1857 }1858 @Test1859 public void test174() throws Throwable {1860 if (debug)1861 System.out.format("%n%s%n", "TestGroup100Case0.test174");1862 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_MOCKS;1863 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) objAnswer0);1864 // The following exception was thrown during execution in test generation1865 try {1866 org.mockito.stubbing.Stubber stubber2 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);1867 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1868 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1869 // Expected exception.1870 }1871 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_MOCKS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_MOCKS));1872 org.junit.Assert.assertNotNull(mockingDetails1);1873 }1874 @Test1875 public void test175() throws Throwable {1876 if (debug)1877 System.out.format("%n%s%n", "TestGroup100Case0.test175");1878 org.mockito.stubbing.LenientStubber lenientStubber0 = org.mockito.ArgumentMatchers.anyVararg();1879 org.junit.Assert.assertNull(lenientStubber0);1880 }1881 @Test1882 public void test176() throws Throwable {1883 if (debug)1884 System.out.format("%n%s%n", "TestGroup100Case0.test176");1885 java.lang.String[] strArray1 = new java.lang.String[] {};1886 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);1887 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);1888 // The following exception was thrown during execution in test generation1889 try {1890 org.mockito.Mockito.verifyNoInteractions(objArray3);1891 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");1892 } catch (org.mockito.exceptions.base.MockitoException e) {1893 // Expected exception.1894 }1895 org.junit.Assert.assertNotNull(strArray1);1896 org.junit.Assert.assertNull(str2);1897 org.junit.Assert.assertNotNull(objArray3);1898 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");1899 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");1900 }1901 @Test1902 public void test177() throws Throwable {1903 if (debug)1904 System.out.format("%n%s%n", "TestGroup100Case0.test177");1905 int int1 = org.mockito.ArgumentMatchers.eq(0);1906 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);1907 }1908 @Test1909 public void test178() throws Throwable {1910 if (debug)1911 System.out.format("%n%s%n", "TestGroup100Case0.test178");1912 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("attach");1913 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");1914 }1915 @Test1916 public void test179() throws Throwable {1917 if (debug)1918 System.out.format("%n%s%n", "TestGroup100Case0.test179");1919 java.lang.Throwable throwable0 = null;1920 java.lang.Throwable[] throwableArray1 = new java.lang.Throwable[] { throwable0 };1921 // The following exception was thrown during execution in test generation1922 try {1923 org.mockito.stubbing.Stubber stubber2 = org.mockito.Mockito.doThrow(throwableArray1);1924 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1925 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1926 // Expected exception.1927 }1928 org.junit.Assert.assertNotNull(throwableArray1);1929 }1930 @Test1931 public void test180() throws Throwable {1932 if (debug)1933 System.out.format("%n%s%n", "TestGroup100Case0.test180");1934 java.util.Map<org.mockito.verification.VerificationWithTimeout, java.lang.Object[]> verificationWithTimeoutMap0 = org.mockito.ArgumentMatchers.anyMap();1935 org.junit.Assert.assertNotNull(verificationWithTimeoutMap0);1936 }1937 @Test1938 public void test181() throws Throwable {1939 if (debug)1940 System.out.format("%n%s%n", "TestGroup100Case0.test181");1941 java.lang.String[] strArray2 = new java.lang.String[] {};1942 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);1943 // The following exception was thrown during execution in test generation1944 try {1945 org.mockito.stubbing.Stubber stubber4 = org.mockito.Mockito.doReturn((java.lang.Object) 1.0f, (java.lang.Object[]) strArray2);1946 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");1947 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {1948 // Expected exception.1949 }1950 org.junit.Assert.assertNotNull(strArray2);1951 org.junit.Assert.assertNull(str3);1952 }1953 @Test1954 public void test182() throws Throwable {1955 if (debug)1956 System.out.format("%n%s%n", "TestGroup100Case0.test182");1957 java.lang.Object obj0 = org.mockito.ArgumentMatchers.anyVararg();1958 org.junit.Assert.assertNull(obj0);1959 }1960 @Test1961 public void test183() throws Throwable {1962 if (debug)1963 System.out.format("%n%s%n", "TestGroup100Case0.test183");1964 float float0 = org.mockito.ArgumentMatchers.anyFloat();1965 org.junit.Assert.assertTrue("'" + float0 + "' != '" + 0.0f + "'", float0 == 0.0f);1966 }1967 @Test1968 public void test184() throws Throwable {1969 if (debug)1970 System.out.format("%n%s%n", "TestGroup100Case0.test184");1971 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 100);1972 java.lang.String[] strArray2 = new java.lang.String[] {};1973 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout1, strArray2);1974 org.mockito.verification.VerificationWithTimeout verificationWithTimeout5 = org.mockito.Mockito.timeout((long) (short) 100);1975 // The following exception was thrown during execution in test generation1976 try {1977 java.lang.String[] strArray6 = org.mockito.Mockito.verify(strArray2, (org.mockito.verification.VerificationMode) verificationWithTimeout5);1978 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type String[] and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");1979 } catch (org.mockito.exceptions.misusing.NotAMockException e) {1980 // Expected exception.1981 }1982 org.junit.Assert.assertNotNull(verificationWithTimeout1);1983 org.junit.Assert.assertNotNull(strArray2);1984 org.junit.Assert.assertNull(verificationWithTimeout3);1985 org.junit.Assert.assertNotNull(verificationWithTimeout5);1986 }1987 @Test1988 public void test185() throws Throwable {1989 if (debug)1990 System.out.format("%n%s%n", "TestGroup100Case0.test185");1991 java.lang.ThreadGroup threadGroup0 = null;1992 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "Too many thread-local indexed variables");1993 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap3 = internalThread2.threadLocalMap();1994 org.junit.Assert.assertNull(internalThreadLocalMap3);1995 }1996 @Test1997 public void test186() throws Throwable {1998 if (debug)1999 System.out.format("%n%s%n", "TestGroup100Case0.test186");2000 java.lang.String[] strArray1 = new java.lang.String[] {};2001 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);2002 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);2003 // The following exception was thrown during execution in test generation2004 try {2005 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray1);2006 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");2007 } catch (org.mockito.exceptions.base.MockitoException e) {2008 // Expected exception.2009 }2010 org.junit.Assert.assertNotNull(strArray1);2011 org.junit.Assert.assertNull(str2);2012 org.junit.Assert.assertNotNull(objArray3);2013 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");2014 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");2015 }2016 @Test2017 public void test187() throws Throwable {2018 if (debug)2019 System.out.format("%n%s%n", "TestGroup100Case0.test187");2020 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();2021 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();2022 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();2023 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);2024 java.lang.String[] strArray5 = new java.lang.String[] {};2025 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);2026 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);2027 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder0, strArray5);2028 // The following exception was thrown during execution in test generation2029 try {2030 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray5);2031 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");2032 } catch (org.mockito.exceptions.base.MockitoException e) {2033 // Expected exception.2034 }2035 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);2036 org.junit.Assert.assertNotNull(mockSettings1);2037 org.junit.Assert.assertNotNull(wildcardClass2);2038 org.junit.Assert.assertNotNull(verificationWithTimeout4);2039 org.junit.Assert.assertNotNull(strArray5);2040 org.junit.Assert.assertNull(verificationWithTimeout6);2041 org.junit.Assert.assertNull(annotatedElement7);2042 org.junit.Assert.assertNull(mockitoSessionBuilder8);2043 }2044 @Test2045 public void test188() throws Throwable {2046 if (debug)2047 System.out.format("%n%s%n", "TestGroup100Case0.test188");2048 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast((int) (short) 100);2049 org.junit.Assert.assertNotNull(verificationMode1);2050 }2051 @Test2052 public void test189() throws Throwable {2053 if (debug)2054 System.out.format("%n%s%n", "TestGroup100Case0.test189");2055 float float1 = org.mockito.ArgumentMatchers.eq((float) 100L);2056 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);2057 }2058 @Test2059 public void test190() throws Throwable {2060 if (debug)2061 System.out.format("%n%s%n", "TestGroup100Case0.test190");2062 char char1 = org.mockito.ArgumentMatchers.eq('a');2063 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');2064 }2065 @Test2066 public void test191() throws Throwable {2067 if (debug)2068 System.out.format("%n%s%n", "TestGroup100Case0.test191");2069 org.mockito.verification.VerificationWithTimeout verificationWithTimeout0 = org.mockito.ArgumentMatchers.notNull();2070 org.junit.Assert.assertNull(verificationWithTimeout0);2071 }2072 @Test2073 public void test192() throws Throwable {2074 if (debug)2075 System.out.format("%n%s%n", "TestGroup100Case0.test192");2076 java.lang.String[] strArray1 = new java.lang.String[] {};2077 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);2078 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);2079 // The following exception was thrown during execution in test generation2080 try {2081 org.mockito.Mockito.verifyZeroInteractions((java.lang.Object[]) strArray1);2082 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");2083 } catch (org.mockito.exceptions.base.MockitoException e) {2084 // Expected exception.2085 }2086 org.junit.Assert.assertNotNull(strArray1);2087 org.junit.Assert.assertNull(str2);2088 org.junit.Assert.assertNotNull(objArray3);2089 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");2090 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");2091 }2092 @Test2093 public void test193() throws Throwable {2094 if (debug)2095 System.out.format("%n%s%n", "TestGroup100Case0.test193");2096 java.lang.ThreadGroup threadGroup0 = null;2097 java.lang.ThreadGroup threadGroup1 = null;2098 java.lang.ThreadGroup threadGroup2 = null;2099 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, "Succeeded to forking invoke provider !");2100 org.apache.dubbo.common.threadlocal.InternalThread internalThread7 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread4, "value", 1L);2101 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap8 = internalThread7.threadLocalMap();2102 org.apache.dubbo.common.threadlocal.InternalThread internalThread11 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread7, "Too many thread-local indexed variables", (-1L));2103 // The following exception was thrown during execution in test generation2104 try {2105 org.mockito.stubbing.Stubber stubber12 = org.mockito.Mockito.doReturn((java.lang.Object) "Too many thread-local indexed variables");2106 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2107 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2108 // Expected exception.2109 }2110 org.junit.Assert.assertNull(internalThreadLocalMap8);2111 }2112 @Test2113 public void test194() throws Throwable {2114 if (debug)2115 System.out.format("%n%s%n", "TestGroup100Case0.test194");2116 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times(100);2117 org.junit.Assert.assertNotNull(verificationMode1);2118 }2119 @Test2120 public void test195() throws Throwable {2121 if (debug)2122 System.out.format("%n%s%n", "TestGroup100Case0.test195");2123 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap2 = org.mockito.ArgumentMatchers.anyMap();2124 java.util.Map<org.mockito.verification.VerificationWithTimeout, java.lang.Object[]> verificationWithTimeoutMap3 = org.mockito.ArgumentMatchers.anyMap();2125 java.util.Set<java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings>> comparableSetMapSet5 = org.mockito.ArgumentMatchers.anySet();2126 java.lang.Object[] objArray6 = new java.lang.Object[] { "Succeeded to forking invoke provider !", 10, strComparableSetMap2, verificationWithTimeoutMap3, "Failed to forking invoke provider", comparableSetMapSet5 };2127 // The following exception was thrown during execution in test generation2128 try {2129 org.mockito.InOrder inOrder7 = org.mockito.Mockito.inOrder(objArray6);2130 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument(s) passed is not a mock!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");2131 } catch (org.mockito.exceptions.misusing.NotAMockException e) {2132 // Expected exception.2133 }2134 org.junit.Assert.assertNotNull(strComparableSetMap2);2135 org.junit.Assert.assertNotNull(verificationWithTimeoutMap3);2136 org.junit.Assert.assertNotNull(comparableSetMapSet5);2137 org.junit.Assert.assertNotNull(objArray6);2138 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray6), "[Succeeded to forking invoke provider !, 10, {}, {}, Failed to forking invoke provider, []]");2139 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray6), "[Succeeded to forking invoke provider !, 10, {}, {}, Failed to forking invoke provider, []]");2140 }2141 @Test2142 public void test196() throws Throwable {2143 if (debug)2144 System.out.format("%n%s%n", "TestGroup100Case0.test196");2145 java.lang.String str1 = org.mockito.ArgumentMatchers.contains("Succeeded to forking invoke provider !");2146 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2147 }2148 @Test2149 public void test197() throws Throwable {2150 if (debug)2151 System.out.format("%n%s%n", "TestGroup100Case0.test197");2152 org.mockito.ArgumentMatcher<java.lang.Short> shortArgumentMatcher0 = null;2153 short short1 = org.mockito.ArgumentMatchers.shortThat(shortArgumentMatcher0);2154 org.junit.Assert.assertTrue("'" + short1 + "' != '" + (short) 0 + "'", short1 == (short) 0);2155 }2156 @Test2157 public void test198() throws Throwable {2158 if (debug)2159 System.out.format("%n%s%n", "TestGroup100Case0.test198");2160 java.util.Collection<java.lang.reflect.GenericDeclaration> genericDeclarationCollection0 = org.mockito.ArgumentMatchers.anyCollection();2161 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) genericDeclarationCollection0);2162 org.junit.Assert.assertNotNull(genericDeclarationCollection0);2163 org.junit.Assert.assertNotNull(mockingDetails1);2164 }2165 @Test2166 public void test199() throws Throwable {2167 if (debug)2168 System.out.format("%n%s%n", "TestGroup100Case0.test199");2169 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("value");2170 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2171 }2172 @Test2173 public void test200() throws Throwable {2174 if (debug)2175 System.out.format("%n%s%n", "TestGroup100Case0.test200");2176 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");2177 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1);2178 // The following exception was thrown during execution in test generation2179 try {2180 org.mockito.stubbing.OngoingStubbing<java.lang.Object> objOngoingStubbing3 = org.mockito.Mockito.when((java.lang.Object) internalThread2);2181 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2182 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2183 // Expected exception.2184 }2185 }2186 @Test2187 public void test201() throws Throwable {2188 if (debug)2189 System.out.format("%n%s%n", "TestGroup100Case0.test201");2190 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout(0L);2191 org.junit.Assert.assertNotNull(verificationWithTimeout1);2192 }2193 @Test2194 public void test202() throws Throwable {2195 if (debug)2196 System.out.format("%n%s%n", "TestGroup100Case0.test202");2197 java.util.Map<org.mockito.ArgumentMatchers, java.lang.Iterable<org.mockito.Mockito>> argumentMatchersMap0 = org.mockito.ArgumentMatchers.anyMap();2198 org.junit.Assert.assertNotNull(argumentMatchersMap0);2199 }2200 @Test2201 public void test203() throws Throwable {2202 if (debug)2203 System.out.format("%n%s%n", "TestGroup100Case0.test203");2204 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("clear attachment failed!");2205 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2206 }2207 @Test2208 public void test204() throws Throwable {2209 if (debug)2210 System.out.format("%n%s%n", "TestGroup100Case0.test204");2211 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.ArgumentMatchers.isNull();2212 org.junit.Assert.assertNull(verificationMode0);2213 }2214 @Test2215 public void test205() throws Throwable {2216 if (debug)2217 System.out.format("%n%s%n", "TestGroup100Case0.test205");2218 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost(10);2219 org.junit.Assert.assertNotNull(verificationMode1);2220 }2221 @Test2222 public void test206() throws Throwable {2223 if (debug)2224 System.out.format("%n%s%n", "TestGroup100Case0.test206");2225 java.lang.reflect.GenericDeclaration genericDeclaration0 = org.mockito.ArgumentMatchers.isNull();2226 org.junit.Assert.assertNull(genericDeclaration0);2227 }2228 @Test2229 public void test207() throws Throwable {2230 if (debug)2231 System.out.format("%n%s%n", "TestGroup100Case0.test207");2232 org.mockito.Mockito mockito0 = org.mockito.ArgumentMatchers.any();2233 org.junit.Assert.assertNull(mockito0);2234 }2235 @Test2236 public void test208() throws Throwable {2237 if (debug)2238 System.out.format("%n%s%n", "TestGroup100Case0.test208");2239 java.lang.ThreadGroup threadGroup0 = null;2240 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "attach");2241 }2242 @Test2243 public void test209() throws Throwable {2244 if (debug)2245 System.out.format("%n%s%n", "TestGroup100Case0.test209");2246 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("Too many thread-local indexed variables");2247 org.junit.Assert.assertNotNull(verificationMode1);2248 }2249 @Test2250 public void test210() throws Throwable {2251 if (debug)2252 System.out.format("%n%s%n", "TestGroup100Case0.test210");2253 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("method1");2254 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();2255 org.mockito.MockSettings mockSettings3 = org.mockito.Mockito.withSettings();2256 java.lang.Class<?> wildcardClass4 = mockSettings3.getClass();2257 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.Mockito.timeout((long) (short) 100);2258 java.lang.String[] strArray7 = new java.lang.String[] {};2259 org.mockito.verification.VerificationWithTimeout verificationWithTimeout8 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout6, strArray7);2260 java.lang.reflect.AnnotatedElement annotatedElement9 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass4, strArray7);2261 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder10 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder2, strArray7);2262 // The following exception was thrown during execution in test generation2263 try {2264 org.mockito.stubbing.Stubber stubber11 = org.mockito.Mockito.doReturn((java.lang.Object) "method1", (java.lang.Object[]) strArray7);2265 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2266 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2267 // Expected exception.2268 }2269 org.junit.Assert.assertNotNull(verificationMode1);2270 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);2271 org.junit.Assert.assertNotNull(mockSettings3);2272 org.junit.Assert.assertNotNull(wildcardClass4);2273 org.junit.Assert.assertNotNull(verificationWithTimeout6);2274 org.junit.Assert.assertNotNull(strArray7);2275 org.junit.Assert.assertNull(verificationWithTimeout8);2276 org.junit.Assert.assertNull(annotatedElement9);2277 org.junit.Assert.assertNull(mockitoSessionBuilder10);2278 }2279 @Test2280 public void test211() throws Throwable {2281 if (debug)2282 System.out.format("%n%s%n", "TestGroup100Case0.test211");2283 java.util.List<java.lang.Comparable<java.lang.String>> strComparableList0 = org.mockito.ArgumentMatchers.anyList();2284 java.util.List<java.lang.Comparable<java.lang.String>> strComparableList1 = org.mockito.ArgumentMatchers.anyList();2285 java.util.List<java.lang.Comparable<java.lang.String>> strComparableList2 = org.mockito.ArgumentMatchers.anyList();2286 java.util.List<java.lang.Comparable<java.lang.String>> strComparableList3 = org.mockito.ArgumentMatchers.anyList();2287 java.util.Collection[] collectionArray5 = new java.util.Collection[4];2288 @SuppressWarnings("unchecked")2289 java.util.Collection<java.lang.Comparable<java.lang.String>>[] strComparableCollectionArray6 = (java.util.Collection<java.lang.Comparable<java.lang.String>>[]) collectionArray5;2290 strComparableCollectionArray6[0] = strComparableList0;2291 strComparableCollectionArray6[1] = strComparableList1;2292 strComparableCollectionArray6[2] = strComparableList2;2293 strComparableCollectionArray6[3] = strComparableList3;2294 // The following exception was thrown during execution in test generation2295 try {2296 org.mockito.Mockito.reset(strComparableCollectionArray6);2297 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2298 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2299 // Expected exception.2300 }2301 org.junit.Assert.assertNotNull(strComparableList0);2302 org.junit.Assert.assertNotNull(strComparableList1);2303 org.junit.Assert.assertNotNull(strComparableList2);2304 org.junit.Assert.assertNotNull(strComparableList3);2305 org.junit.Assert.assertNotNull(collectionArray5);2306 org.junit.Assert.assertNotNull(strComparableCollectionArray6);2307 }2308 @Test2309 public void test212() throws Throwable {2310 if (debug)2311 System.out.format("%n%s%n", "TestGroup100Case0.test212");2312 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("Too many thread-local indexed variables");2313 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2314 }2315 @Test2316 public void test213() throws Throwable {2317 if (debug)2318 System.out.format("%n%s%n", "TestGroup100Case0.test213");2319 java.util.Map<java.lang.Iterable<org.mockito.Mockito>, java.lang.Object[]> mockitoIterableMap0 = org.mockito.ArgumentMatchers.anyMap();2320 org.junit.Assert.assertNotNull(mockitoIterableMap0);2321 }2322 @Test2323 public void test214() throws Throwable {2324 if (debug)2325 System.out.format("%n%s%n", "TestGroup100Case0.test214");2326 boolean boolean1 = org.mockito.ArgumentMatchers.eq(true);2327 org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);2328 }2329 @Test2330 public void test215() throws Throwable {2331 if (debug)2332 System.out.format("%n%s%n", "TestGroup100Case0.test215");2333 java.util.List<java.lang.Object> objList0 = org.mockito.ArgumentMatchers.anyList();2334 org.junit.Assert.assertNotNull(objList0);2335 }2336 @Test2337 public void test216() throws Throwable {2338 if (debug)2339 System.out.format("%n%s%n", "TestGroup100Case0.test216");2340 long long1 = org.mockito.ArgumentMatchers.eq((long) 10);2341 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);2342 }2343 @Test2344 public void test217() throws Throwable {2345 if (debug)2346 System.out.format("%n%s%n", "TestGroup100Case0.test217");2347 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) 0);2348 org.mockito.MockingDetails[] mockingDetailsArray2 = new org.mockito.MockingDetails[] { mockingDetails1 };2349 // The following exception was thrown during execution in test generation2350 try {2351 org.mockito.Mockito.clearInvocations(mockingDetailsArray2);2352 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2353 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2354 // Expected exception.2355 }2356 org.junit.Assert.assertNotNull(mockingDetails1);2357 org.junit.Assert.assertNotNull(mockingDetailsArray2);2358 }2359 @Test2360 public void test218() throws Throwable {2361 if (debug)2362 System.out.format("%n%s%n", "TestGroup100Case0.test218");2363 java.util.Collection<java.lang.Object[]> objArrayCollection0 = org.mockito.ArgumentMatchers.anyCollection();2364 org.junit.Assert.assertNotNull(objArrayCollection0);2365 }2366 @Test2367 public void test219() throws Throwable {2368 if (debug)2369 System.out.format("%n%s%n", "TestGroup100Case0.test219");2370 java.util.List<java.lang.Runnable> runnableList0 = org.mockito.ArgumentMatchers.anyList();2371 org.junit.Assert.assertNotNull(runnableList0);2372 }2373 @Test2374 public void test220() throws Throwable {2375 if (debug)2376 System.out.format("%n%s%n", "TestGroup100Case0.test220");2377 org.mockito.Mockito mockito0 = new org.mockito.Mockito();2378 java.lang.String[] strArray2 = new java.lang.String[] {};2379 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);2380 java.lang.Object[] objArray4 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray2);2381 java.lang.String[] strArray5 = org.mockito.ArgumentMatchers.same(strArray2);2382 // The following exception was thrown during execution in test generation2383 try {2384 org.mockito.stubbing.Stubber stubber6 = org.mockito.Mockito.doReturn((java.lang.Object) mockito0, (java.lang.Object[]) strArray2);2385 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2386 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2387 // Expected exception.2388 }2389 org.junit.Assert.assertNotNull(strArray2);2390 org.junit.Assert.assertNull(str3);2391 org.junit.Assert.assertNotNull(objArray4);2392 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray4), "[]");2393 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray4), "[]");2394 org.junit.Assert.assertNull(strArray5);2395 }2396 @Test2397 public void test221() throws Throwable {2398 if (debug)2399 System.out.format("%n%s%n", "TestGroup100Case0.test221");2400 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();2401 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();2402 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();2403 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);2404 java.lang.String[] strArray5 = new java.lang.String[] {};2405 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);2406 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);2407 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder0, strArray5);2408 java.lang.Object[] objArray9 = new java.lang.Object[] { mockitoSessionBuilder8 };2409 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder10 = org.mockito.Mockito.mockitoSession();2410 org.mockito.MockSettings mockSettings11 = org.mockito.Mockito.withSettings();2411 java.lang.Class<?> wildcardClass12 = mockSettings11.getClass();2412 org.mockito.verification.VerificationWithTimeout verificationWithTimeout14 = org.mockito.Mockito.timeout((long) (short) 100);2413 java.lang.String[] strArray15 = new java.lang.String[] {};2414 org.mockito.verification.VerificationWithTimeout verificationWithTimeout16 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout14, strArray15);2415 java.lang.reflect.AnnotatedElement annotatedElement17 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass12, strArray15);2416 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder18 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder10, strArray15);2417 java.lang.Object[] objArray19 = new java.lang.Object[] { mockitoSessionBuilder18 };2418 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder20 = org.mockito.Mockito.mockitoSession();2419 org.mockito.MockSettings mockSettings21 = org.mockito.Mockito.withSettings();2420 java.lang.Class<?> wildcardClass22 = mockSettings21.getClass();2421 org.mockito.verification.VerificationWithTimeout verificationWithTimeout24 = org.mockito.Mockito.timeout((long) (short) 100);2422 java.lang.String[] strArray25 = new java.lang.String[] {};2423 org.mockito.verification.VerificationWithTimeout verificationWithTimeout26 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout24, strArray25);2424 java.lang.reflect.AnnotatedElement annotatedElement27 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass22, strArray25);2425 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder28 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder20, strArray25);2426 java.lang.Object[] objArray29 = new java.lang.Object[] { mockitoSessionBuilder28 };2427 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder30 = org.mockito.Mockito.mockitoSession();2428 org.mockito.MockSettings mockSettings31 = org.mockito.Mockito.withSettings();2429 java.lang.Class<?> wildcardClass32 = mockSettings31.getClass();2430 org.mockito.verification.VerificationWithTimeout verificationWithTimeout34 = org.mockito.Mockito.timeout((long) (short) 100);2431 java.lang.String[] strArray35 = new java.lang.String[] {};2432 org.mockito.verification.VerificationWithTimeout verificationWithTimeout36 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout34, strArray35);2433 java.lang.reflect.AnnotatedElement annotatedElement37 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass32, strArray35);2434 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder38 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder30, strArray35);2435 java.lang.Object[] objArray39 = new java.lang.Object[] { mockitoSessionBuilder38 };2436 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder40 = org.mockito.Mockito.mockitoSession();2437 org.mockito.MockSettings mockSettings41 = org.mockito.Mockito.withSettings();2438 java.lang.Class<?> wildcardClass42 = mockSettings41.getClass();2439 org.mockito.verification.VerificationWithTimeout verificationWithTimeout44 = org.mockito.Mockito.timeout((long) (short) 100);2440 java.lang.String[] strArray45 = new java.lang.String[] {};2441 org.mockito.verification.VerificationWithTimeout verificationWithTimeout46 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout44, strArray45);2442 java.lang.reflect.AnnotatedElement annotatedElement47 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass42, strArray45);2443 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder48 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder40, strArray45);2444 java.lang.Object[] objArray49 = new java.lang.Object[] { mockitoSessionBuilder48 };2445 java.lang.Object[][] objArray50 = new java.lang.Object[][] { objArray9, objArray19, objArray29, objArray39, objArray49 };2446 // The following exception was thrown during execution in test generation2447 try {2448 org.mockito.Mockito.reset(objArray50);2449 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2450 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2451 // Expected exception.2452 }2453 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);2454 org.junit.Assert.assertNotNull(mockSettings1);2455 org.junit.Assert.assertNotNull(wildcardClass2);2456 org.junit.Assert.assertNotNull(verificationWithTimeout4);2457 org.junit.Assert.assertNotNull(strArray5);2458 org.junit.Assert.assertNull(verificationWithTimeout6);2459 org.junit.Assert.assertNull(annotatedElement7);2460 org.junit.Assert.assertNull(mockitoSessionBuilder8);2461 org.junit.Assert.assertNotNull(objArray9);2462 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray9), "[null]");2463 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray9), "[null]");2464 org.junit.Assert.assertNotNull(mockitoSessionBuilder10);2465 org.junit.Assert.assertNotNull(mockSettings11);2466 org.junit.Assert.assertNotNull(wildcardClass12);2467 org.junit.Assert.assertNotNull(verificationWithTimeout14);2468 org.junit.Assert.assertNotNull(strArray15);2469 org.junit.Assert.assertNull(verificationWithTimeout16);2470 org.junit.Assert.assertNull(annotatedElement17);2471 org.junit.Assert.assertNull(mockitoSessionBuilder18);2472 org.junit.Assert.assertNotNull(objArray19);2473 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray19), "[null]");2474 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray19), "[null]");2475 org.junit.Assert.assertNotNull(mockitoSessionBuilder20);2476 org.junit.Assert.assertNotNull(mockSettings21);2477 org.junit.Assert.assertNotNull(wildcardClass22);2478 org.junit.Assert.assertNotNull(verificationWithTimeout24);2479 org.junit.Assert.assertNotNull(strArray25);2480 org.junit.Assert.assertNull(verificationWithTimeout26);2481 org.junit.Assert.assertNull(annotatedElement27);2482 org.junit.Assert.assertNull(mockitoSessionBuilder28);2483 org.junit.Assert.assertNotNull(objArray29);2484 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray29), "[null]");2485 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray29), "[null]");2486 org.junit.Assert.assertNotNull(mockitoSessionBuilder30);2487 org.junit.Assert.assertNotNull(mockSettings31);2488 org.junit.Assert.assertNotNull(wildcardClass32);2489 org.junit.Assert.assertNotNull(verificationWithTimeout34);2490 org.junit.Assert.assertNotNull(strArray35);2491 org.junit.Assert.assertNull(verificationWithTimeout36);2492 org.junit.Assert.assertNull(annotatedElement37);2493 org.junit.Assert.assertNull(mockitoSessionBuilder38);2494 org.junit.Assert.assertNotNull(objArray39);2495 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray39), "[null]");2496 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray39), "[null]");2497 org.junit.Assert.assertNotNull(mockitoSessionBuilder40);2498 org.junit.Assert.assertNotNull(mockSettings41);2499 org.junit.Assert.assertNotNull(wildcardClass42);2500 org.junit.Assert.assertNotNull(verificationWithTimeout44);2501 org.junit.Assert.assertNotNull(strArray45);2502 org.junit.Assert.assertNull(verificationWithTimeout46);2503 org.junit.Assert.assertNull(annotatedElement47);2504 org.junit.Assert.assertNull(mockitoSessionBuilder48);2505 org.junit.Assert.assertNotNull(objArray49);2506 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray49), "[null]");2507 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray49), "[null]");2508 org.junit.Assert.assertNotNull(objArray50);2509 }2510 @Test2511 public void test222() throws Throwable {2512 if (debug)2513 System.out.format("%n%s%n", "TestGroup100Case0.test222");2514 java.lang.Runnable runnable0 = null;2515 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread(runnable0);2516 java.lang.Class<?> wildcardClass2 = internalThread1.getClass();2517 org.junit.Assert.assertNotNull(wildcardClass2);2518 }2519 @Test2520 public void test223() throws Throwable {2521 if (debug)2522 System.out.format("%n%s%n", "TestGroup100Case0.test223");2523 org.apache.dubbo.common.threadlocal.InternalThread internalThread0 = org.mockito.ArgumentMatchers.anyObject();2524 org.junit.Assert.assertNull(internalThread0);2525 }2526 @Test2527 public void test224() throws Throwable {2528 if (debug)2529 System.out.format("%n%s%n", "TestGroup100Case0.test224");2530 org.mockito.stubbing.LenientStubber lenientStubber0 = org.mockito.Mockito.lenient();2531 org.mockito.stubbing.BaseStubber baseStubber1 = org.mockito.ArgumentMatchers.eq((org.mockito.stubbing.BaseStubber) lenientStubber0);2532 // The following exception was thrown during execution in test generation2533 try {2534 org.mockito.stubbing.LenientStubber lenientStubber2 = org.mockito.Mockito.verify(lenientStubber0);2535 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type DefaultLenientStubber and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");2536 } catch (org.mockito.exceptions.misusing.NotAMockException e) {2537 // Expected exception.2538 }2539 org.junit.Assert.assertNotNull(lenientStubber0);2540 org.junit.Assert.assertNull(baseStubber1);2541 }2542 @Test2543 public void test225() throws Throwable {2544 if (debug)2545 System.out.format("%n%s%n", "TestGroup100Case0.test225");2546 java.lang.Iterable<java.lang.Throwable[]> throwableArrayIterable0 = org.mockito.ArgumentMatchers.anyIterable();2547 org.junit.Assert.assertNotNull(throwableArrayIterable0);2548 }2549 @Test2550 public void test226() throws Throwable {2551 if (debug)2552 System.out.format("%n%s%n", "TestGroup100Case0.test226");2553 java.lang.ThreadGroup threadGroup0 = null;2554 java.lang.ThreadGroup threadGroup1 = null;2555 java.lang.ThreadGroup threadGroup2 = null;2556 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, "Succeeded to forking invoke provider !");2557 org.apache.dubbo.common.threadlocal.InternalThread internalThread7 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread4, "value", 1L);2558 org.apache.dubbo.common.threadlocal.InternalThread internalThread9 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread4, "method1");2559 // The following exception was thrown during execution in test generation2560 try {2561 org.mockito.stubbing.OngoingStubbing<org.apache.dubbo.common.threadlocal.InternalThread> internalThreadOngoingStubbing10 = org.mockito.Mockito.when(internalThread9);2562 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2563 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2564 // Expected exception.2565 }2566 }2567 @Test2568 public void test227() throws Throwable {2569 if (debug)2570 System.out.format("%n%s%n", "TestGroup100Case0.test227");2571 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("Failed to forking invoke provider");2572 }2573 @Test2574 public void test228() throws Throwable {2575 if (debug)2576 System.out.format("%n%s%n", "TestGroup100Case0.test228");2577 java.lang.Object[] objArray0 = null;2578 // The following exception was thrown during execution in test generation2579 try {2580 java.lang.Object[] objArray1 = org.mockito.Mockito.ignoreStubs(objArray0);2581 org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");2582 } catch (java.lang.NullPointerException e) {2583 // Expected exception.2584 }2585 }2586 @Test2587 public void test229() throws Throwable {2588 if (debug)2589 System.out.format("%n%s%n", "TestGroup100Case0.test229");2590 double double1 = org.mockito.ArgumentMatchers.eq((double) (short) 1);2591 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);2592 }2593 @Test2594 public void test230() throws Throwable {2595 if (debug)2596 System.out.format("%n%s%n", "TestGroup100Case0.test230");2597 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) '\000');2598 org.junit.Assert.assertNotNull(verificationMode1);2599 }2600 @Test2601 public void test231() throws Throwable {2602 if (debug)2603 System.out.format("%n%s%n", "TestGroup100Case0.test231");2604 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) 100.0f);2605 org.junit.Assert.assertNotNull(mockingDetails1);2606 }2607 @Test2608 public void test232() throws Throwable {2609 if (debug)2610 System.out.format("%n%s%n", "TestGroup100Case0.test232");2611 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_DEFAULTS;2612 // The following exception was thrown during execution in test generation2613 try {2614 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);2615 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2616 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2617 // Expected exception.2618 }2619 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_DEFAULTS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_DEFAULTS));2620 }2621 @Test2622 public void test233() throws Throwable {2623 if (debug)2624 System.out.format("%n%s%n", "TestGroup100Case0.test233");2625 java.lang.String[] strArray1 = new java.lang.String[] {};2626 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);2627 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);2628 java.lang.String[] strArray4 = org.mockito.ArgumentMatchers.same(strArray1);2629 // The following exception was thrown during execution in test generation2630 try {2631 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray1);2632 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");2633 } catch (org.mockito.exceptions.base.MockitoException e) {2634 // Expected exception.2635 }2636 org.junit.Assert.assertNotNull(strArray1);2637 org.junit.Assert.assertNull(str2);2638 org.junit.Assert.assertNotNull(objArray3);2639 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");2640 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");2641 org.junit.Assert.assertNull(strArray4);2642 }2643 @Test2644 public void test234() throws Throwable {2645 if (debug)2646 System.out.format("%n%s%n", "TestGroup100Case0.test234");2647 float float1 = org.mockito.ArgumentMatchers.eq(10.0f);2648 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);2649 }2650 @Test2651 public void test235() throws Throwable {2652 if (debug)2653 System.out.format("%n%s%n", "TestGroup100Case0.test235");2654 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("set attachment failed!");2655 org.junit.Assert.assertNotNull(verificationMode1);2656 }2657 @Test2658 public void test236() throws Throwable {2659 if (debug)2660 System.out.format("%n%s%n", "TestGroup100Case0.test236");2661 java.lang.String str1 = org.mockito.ArgumentMatchers.contains("value");2662 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2663 }2664 @Test2665 public void test237() throws Throwable {2666 if (debug)2667 System.out.format("%n%s%n", "TestGroup100Case0.test237");2668 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times((int) ' ');2669 org.junit.Assert.assertNotNull(verificationMode1);2670 }2671 @Test2672 public void test238() throws Throwable {2673 if (debug)2674 System.out.format("%n%s%n", "TestGroup100Case0.test238");2675 float float1 = org.mockito.ArgumentMatchers.eq((float) '#');2676 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);2677 }2678 @Test2679 public void test239() throws Throwable {2680 if (debug)2681 System.out.format("%n%s%n", "TestGroup100Case0.test239");2682 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();2683 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();2684 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();2685 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);2686 java.lang.String[] strArray5 = new java.lang.String[] {};2687 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);2688 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);2689 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder0, strArray5);2690 java.util.Map<java.lang.String[], java.lang.Comparable<java.lang.String>> strArrayMap9 = org.mockito.ArgumentMatchers.anyMap();2691 org.mockito.stubbing.LenientStubber lenientStubber10 = org.mockito.Mockito.lenient();2692 java.lang.Object[] objArray11 = new java.lang.Object[] { mockitoSessionBuilder8, strArrayMap9, lenientStubber10 };2693 // The following exception was thrown during execution in test generation2694 try {2695 java.lang.Object[] objArray12 = org.mockito.Mockito.ignoreStubs(objArray11);2696 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: Argument should be a mock, but is null!");2697 } catch (org.mockito.exceptions.misusing.NotAMockException e) {2698 // Expected exception.2699 }2700 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);2701 org.junit.Assert.assertNotNull(mockSettings1);2702 org.junit.Assert.assertNotNull(wildcardClass2);2703 org.junit.Assert.assertNotNull(verificationWithTimeout4);2704 org.junit.Assert.assertNotNull(strArray5);2705 org.junit.Assert.assertNull(verificationWithTimeout6);2706 org.junit.Assert.assertNull(annotatedElement7);2707 org.junit.Assert.assertNull(mockitoSessionBuilder8);2708 org.junit.Assert.assertNotNull(strArrayMap9);2709 org.junit.Assert.assertNotNull(lenientStubber10);2710 org.junit.Assert.assertNotNull(objArray11);2711 }2712 @Test2713 public void test240() throws Throwable {2714 if (debug)2715 System.out.format("%n%s%n", "TestGroup100Case0.test240");2716 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after(100L);2717 // The following exception was thrown during execution in test generation2718 try {2719 org.mockito.stubbing.OngoingStubbing<org.mockito.verification.VerificationAfterDelay> verificationAfterDelayOngoingStubbing2 = org.mockito.Mockito.when(verificationAfterDelay1);2720 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2721 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2722 // Expected exception.2723 }2724 org.junit.Assert.assertNotNull(verificationAfterDelay1);2725 }2726 @Test2727 public void test241() throws Throwable {2728 if (debug)2729 System.out.format("%n%s%n", "TestGroup100Case0.test241");2730 org.mockito.verification.VerificationWithTimeout verificationWithTimeout2 = org.mockito.Mockito.timeout((long) (short) 100);2731 java.lang.String[] strArray3 = new java.lang.String[] {};2732 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout2, strArray3);2733 java.lang.CharSequence charSequence5 = org.mockito.ArgumentMatchers.refEq((java.lang.CharSequence) "", strArray3);2734 // The following exception was thrown during execution in test generation2735 try {2736 org.mockito.Mockito.verifyZeroInteractions((java.lang.Object[]) strArray3);2737 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");2738 } catch (org.mockito.exceptions.base.MockitoException e) {2739 // Expected exception.2740 }2741 org.junit.Assert.assertNotNull(verificationWithTimeout2);2742 org.junit.Assert.assertNotNull(strArray3);2743 org.junit.Assert.assertNull(verificationWithTimeout4);2744 org.junit.Assert.assertNull(charSequence5);2745 }2746 @Test2747 public void test242() throws Throwable {2748 if (debug)2749 System.out.format("%n%s%n", "TestGroup100Case0.test242");2750 java.util.Set<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = org.mockito.ArgumentMatchers.anySet();2751 org.junit.Assert.assertNotNull(mockitoSessionBuilderSet0);2752 }2753 @Test2754 public void test243() throws Throwable {2755 if (debug)2756 System.out.format("%n%s%n", "TestGroup100Case0.test243");2757 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();2758 org.junit.Assert.assertNotNull(mockitoSet0);2759 }2760 @Test2761 public void test244() throws Throwable {2762 if (debug)2763 System.out.format("%n%s%n", "TestGroup100Case0.test244");2764 java.lang.ThreadGroup threadGroup0 = null;2765 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "Too many thread-local indexed variables");2766 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);2767 }2768 @Test2769 public void test245() throws Throwable {2770 if (debug)2771 System.out.format("%n%s%n", "TestGroup100Case0.test245");2772 java.lang.Throwable[] throwableArray0 = null;2773 // The following exception was thrown during execution in test generation2774 try {2775 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doThrow(throwableArray0);2776 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2777 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2778 // Expected exception.2779 }2780 }2781 @Test2782 public void test246() throws Throwable {2783 if (debug)2784 System.out.format("%n%s%n", "TestGroup100Case0.test246");2785 double double1 = org.mockito.ArgumentMatchers.eq((double) 'a');2786 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);2787 }2788 @Test2789 public void test247() throws Throwable {2790 if (debug)2791 System.out.format("%n%s%n", "TestGroup100Case0.test247");2792 // The following exception was thrown during execution in test generation2793 try {2794 java.lang.String str1 = org.mockito.Mockito.verify("Succeeded to forking invoke provider !");2795 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type String and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");2796 } catch (org.mockito.exceptions.misusing.NotAMockException e) {2797 // Expected exception.2798 }2799 }2800 @Test2801 public void test248() throws Throwable {2802 if (debug)2803 System.out.format("%n%s%n", "TestGroup100Case0.test248");2804 java.lang.Throwable throwable0 = null;2805 java.lang.Throwable[] throwableArray1 = new java.lang.Throwable[] { throwable0 };2806 java.lang.Throwable[][] throwableArray2 = new java.lang.Throwable[][] { throwableArray1 };2807 // The following exception was thrown during execution in test generation2808 try {2809 org.mockito.Mockito.reset(throwableArray2);2810 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2811 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2812 // Expected exception.2813 }2814 org.junit.Assert.assertNotNull(throwableArray1);2815 org.junit.Assert.assertNotNull(throwableArray2);2816 }2817 @Test2818 public void test249() throws Throwable {2819 if (debug)2820 System.out.format("%n%s%n", "TestGroup100Case0.test249");2821 long long1 = org.mockito.ArgumentMatchers.eq(0L);2822 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);2823 }2824 @Test2825 public void test250() throws Throwable {2826 if (debug)2827 System.out.format("%n%s%n", "TestGroup100Case0.test250");2828 java.lang.String[] strArray1 = new java.lang.String[] {};2829 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);2830 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray1);2831 java.lang.String[] strArray4 = org.mockito.ArgumentMatchers.same(strArray1);2832 org.mockito.MockSettings mockSettings5 = org.mockito.Mockito.withSettings();2833 java.lang.Class<?> wildcardClass6 = mockSettings5.getClass();2834 org.mockito.verification.VerificationWithTimeout verificationWithTimeout8 = org.mockito.Mockito.timeout((long) (short) 100);2835 java.lang.String[] strArray9 = new java.lang.String[] {};2836 org.mockito.verification.VerificationWithTimeout verificationWithTimeout10 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout8, strArray9);2837 java.lang.reflect.AnnotatedElement annotatedElement11 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass6, strArray9);2838 java.lang.Object[] objArray12 = org.mockito.ArgumentMatchers.refEq((java.lang.Object[]) strArray4, strArray9);2839 // The following exception was thrown during execution in test generation2840 try {2841 org.mockito.Mockito.reset((java.io.Serializable[]) strArray9);2842 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");2843 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2844 // Expected exception.2845 }2846 org.junit.Assert.assertNotNull(strArray1);2847 org.junit.Assert.assertNull(str2);2848 org.junit.Assert.assertNotNull(objArray3);2849 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");2850 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");2851 org.junit.Assert.assertNull(strArray4);2852 org.junit.Assert.assertNotNull(mockSettings5);2853 org.junit.Assert.assertNotNull(wildcardClass6);2854 org.junit.Assert.assertNotNull(verificationWithTimeout8);2855 org.junit.Assert.assertNotNull(strArray9);2856 org.junit.Assert.assertNull(verificationWithTimeout10);2857 org.junit.Assert.assertNull(annotatedElement11);2858 org.junit.Assert.assertNull(objArray12);2859 }2860 @Test2861 public void test251() throws Throwable {2862 if (debug)2863 System.out.format("%n%s%n", "TestGroup100Case0.test251");2864 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_SELF;2865 org.mockito.stubbing.Stubber stubber1 = null; // flaky: org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);2866 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_SELF + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_SELF));2867// flaky: org.junit.Assert.assertNotNull(stubber1);2868 }2869 @Test2870 public void test252() throws Throwable {2871 if (debug)2872 System.out.format("%n%s%n", "TestGroup100Case0.test252");2873 // The following exception was thrown during execution in test generation2874 try {2875 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((-1L));2876 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.FriendlyReminderException; message: ??Don't panic! I'm just a friendly reminder!?It is impossible for time to go backward, therefore...?You cannot put negative value of duration: (-1)?as argument of timer methods (after(), timeout())?");2877 } catch (org.mockito.exceptions.misusing.FriendlyReminderException e) {2878 // Expected exception.2879 }2880 }2881 @Test2882 public void test253() throws Throwable {2883 if (debug)2884 System.out.format("%n%s%n", "TestGroup100Case0.test253");2885 org.mockito.stubbing.Stubber stubber0 = org.mockito.ArgumentMatchers.notNull();2886 org.junit.Assert.assertNull(stubber0);2887 }2888 @Test2889 public void test254() throws Throwable {2890 if (debug)2891 System.out.format("%n%s%n", "TestGroup100Case0.test254");2892 java.lang.ThreadGroup threadGroup0 = null;2893 java.lang.Runnable runnable1 = null;2894 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, runnable1, "hi!", (-1L));2895 }2896 @Test2897 public void test255() throws Throwable {2898 if (debug)2899 System.out.format("%n%s%n", "TestGroup100Case0.test255");2900 long long1 = org.mockito.ArgumentMatchers.eq(1L);2901 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);2902 }2903 @Test2904 public void test256() throws Throwable {2905 if (debug)2906 System.out.format("%n%s%n", "TestGroup100Case0.test256");2907 java.util.List<org.mockito.verification.VerificationWithTimeout> verificationWithTimeoutList0 = org.mockito.ArgumentMatchers.anyList();2908 org.junit.Assert.assertNotNull(verificationWithTimeoutList0);2909 }2910 @Test2911 public void test257() throws Throwable {2912 if (debug)2913 System.out.format("%n%s%n", "TestGroup100Case0.test257");2914 java.lang.Iterable<org.mockito.stubbing.LenientStubber> lenientStubberIterable0 = org.mockito.ArgumentMatchers.anyIterable();2915 org.junit.Assert.assertNotNull(lenientStubberIterable0);2916 }2917 @Test2918 public void test258() throws Throwable {2919 if (debug)2920 System.out.format("%n%s%n", "TestGroup100Case0.test258");2921 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.ArgumentMatchers.any();2922 org.junit.Assert.assertNull(verificationMode0);2923 }2924 @Test2925 public void test259() throws Throwable {2926 if (debug)2927 System.out.format("%n%s%n", "TestGroup100Case0.test259");2928 java.util.Set<java.lang.String> strSet0 = org.mockito.ArgumentMatchers.anySet();2929 org.junit.Assert.assertNotNull(strSet0);2930 }2931 @Test2932 public void test260() throws Throwable {2933 if (debug)2934 System.out.format("%n%s%n", "TestGroup100Case0.test260");2935 double double1 = org.mockito.ArgumentMatchers.eq((double) (short) -1);2936 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);2937 }2938 @Test2939 public void test261() throws Throwable {2940 if (debug)2941 System.out.format("%n%s%n", "TestGroup100Case0.test261");2942 java.io.Serializable serializable0 = org.mockito.ArgumentMatchers.notNull();2943 org.junit.Assert.assertNull(serializable0);2944 }2945 @Test2946 public void test262() throws Throwable {2947 if (debug)2948 System.out.format("%n%s%n", "TestGroup100Case0.test262");2949 java.lang.String[] strArray1 = new java.lang.String[] {};2950 java.lang.String str2 = org.mockito.ArgumentMatchers.refEq("method1", strArray1);2951 // The following exception was thrown during execution in test generation2952 try {2953 org.mockito.InOrder inOrder3 = org.mockito.Mockito.inOrder((java.lang.Object[]) strArray1);2954 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");2955 } catch (org.mockito.exceptions.base.MockitoException e) {2956 // Expected exception.2957 }2958 org.junit.Assert.assertNotNull(strArray1);2959 org.junit.Assert.assertNull(str2);2960 }2961 @Test2962 public void test263() throws Throwable {2963 if (debug)2964 System.out.format("%n%s%n", "TestGroup100Case0.test263");2965 java.util.Map<java.util.List<java.lang.reflect.GenericDeclaration>, java.lang.Object> genericDeclarationListMap0 = org.mockito.ArgumentMatchers.anyMap();2966 org.junit.Assert.assertNotNull(genericDeclarationListMap0);2967 }2968 @Test2969 public void test264() throws Throwable {2970 if (debug)2971 System.out.format("%n%s%n", "TestGroup100Case0.test264");2972 java.lang.reflect.GenericDeclaration genericDeclaration0 = null;2973 // The following exception was thrown during execution in test generation2974 try {2975 java.lang.reflect.GenericDeclaration genericDeclaration1 = org.mockito.Mockito.spy(genericDeclaration0);2976 org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");2977 } catch (java.lang.NullPointerException e) {2978 // Expected exception.2979 }2980 }2981 @Test2982 public void test265() throws Throwable {2983 if (debug)2984 System.out.format("%n%s%n", "TestGroup100Case0.test265");2985 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.ArgumentMatchers.notNull();2986 org.junit.Assert.assertNull(verificationMode0);2987 }2988 @Test2989 public void test266() throws Throwable {2990 if (debug)2991 System.out.format("%n%s%n", "TestGroup100Case0.test266");2992 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("clear attachment failed!");2993 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2994 }2995 @Test2996 public void test267() throws Throwable {2997 if (debug)2998 System.out.format("%n%s%n", "TestGroup100Case0.test267");2999 java.util.Map<org.mockito.session.MockitoSessionBuilder, java.lang.Class<?>> mockitoSessionBuilderMap0 = org.mockito.ArgumentMatchers.anyMap();3000 org.junit.Assert.assertNotNull(mockitoSessionBuilderMap0);3001 }3002 @Test3003 public void test268() throws Throwable {3004 if (debug)3005 System.out.format("%n%s%n", "TestGroup100Case0.test268");3006 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls((int) (short) 10);3007 org.junit.Assert.assertNotNull(verificationMode1);3008 }3009 @Test3010 public void test269() throws Throwable {3011 if (debug)3012 System.out.format("%n%s%n", "TestGroup100Case0.test269");3013 // The following exception was thrown during execution in test generation3014 try {3015 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls((int) (short) -1);3016 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: Negative and zero values are not allowed here");3017 } catch (org.mockito.exceptions.base.MockitoException e) {3018 // Expected exception.3019 }3020 }3021 @Test3022 public void test270() throws Throwable {3023 if (debug)3024 System.out.format("%n%s%n", "TestGroup100Case0.test270");3025 java.lang.String[] strArray2 = new java.lang.String[] {};3026 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);3027 java.lang.Object[] objArray4 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray2);3028 // The following exception was thrown during execution in test generation3029 try {3030 org.mockito.stubbing.Stubber stubber5 = org.mockito.Mockito.doReturn((java.lang.Object) "Too many thread-local indexed variables", objArray4);3031 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3032 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3033 // Expected exception.3034 }3035 org.junit.Assert.assertNotNull(strArray2);3036 org.junit.Assert.assertNull(str3);3037 org.junit.Assert.assertNotNull(objArray4);3038 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray4), "[]");3039 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray4), "[]");3040 }3041 @Test3042 public void test271() throws Throwable {3043 if (debug)3044 System.out.format("%n%s%n", "TestGroup100Case0.test271");3045 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after(100L);3046 org.mockito.verification.VerificationAfterDelay verificationAfterDelay3 = org.mockito.Mockito.after((long) ' ');3047 org.mockito.verification.VerificationAfterDelay verificationAfterDelay5 = org.mockito.Mockito.after(0L);3048 org.mockito.verification.VerificationAfterDelay[] verificationAfterDelayArray6 = new org.mockito.verification.VerificationAfterDelay[] { verificationAfterDelay1, verificationAfterDelay3, verificationAfterDelay5 };3049 // The following exception was thrown during execution in test generation3050 try {3051// flaky: org.mockito.Mockito.reset(verificationAfterDelayArray6);3052// flaky: org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.UnfinishedStubbingException; message: ?Unfinished stubbing detected here:?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??E.g. thenReturn() may be missing.?Examples of correct stubbing:? when(mock.isOk()).thenReturn(true);? when(mock.isOk()).thenThrow(exception);? doThrow(exception).when(mock).someVoidMethod();?Hints:? 1. missing thenReturn()? 2. you are trying to stub a final method, which is not supported? 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed?");3053 } catch (org.mockito.exceptions.misusing.UnfinishedStubbingException e) {3054 // Expected exception.3055 }3056 org.junit.Assert.assertNotNull(verificationAfterDelay1);3057 org.junit.Assert.assertNotNull(verificationAfterDelay3);3058 org.junit.Assert.assertNotNull(verificationAfterDelay5);3059 org.junit.Assert.assertNotNull(verificationAfterDelayArray6);3060 }3061 @Test3062 public void test272() throws Throwable {3063 if (debug)3064 System.out.format("%n%s%n", "TestGroup100Case0.test272");3065 java.lang.ThreadGroup threadGroup0 = null;3066 java.lang.ThreadGroup threadGroup1 = null;3067 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "method1");3068 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3);3069 }3070 @Test3071 public void test273() throws Throwable {3072 if (debug)3073 System.out.format("%n%s%n", "TestGroup100Case0.test273");3074 java.lang.Object obj0 = org.mockito.ArgumentMatchers.isNull();3075 org.junit.Assert.assertNull(obj0);3076 }3077 @Test3078 public void test274() throws Throwable {3079 if (debug)3080 System.out.format("%n%s%n", "TestGroup100Case0.test274");3081 java.lang.String str0 = org.mockito.ArgumentMatchers.anyVararg();3082 org.junit.Assert.assertNull(str0);3083 }3084 @Test3085 public void test275() throws Throwable {3086 if (debug)3087 System.out.format("%n%s%n", "TestGroup100Case0.test275");3088 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("method1");3089 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");3090 }3091 @Test3092 public void test276() throws Throwable {3093 if (debug)3094 System.out.format("%n%s%n", "TestGroup100Case0.test276");3095 java.lang.String str1 = org.mockito.ArgumentMatchers.contains("Too many thread-local indexed variables");3096 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");3097 }3098 @Test3099 public void test277() throws Throwable {3100 if (debug)3101 System.out.format("%n%s%n", "TestGroup100Case0.test277");3102 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("method1");3103 }3104 @Test3105 public void test278() throws Throwable {3106 if (debug)3107 System.out.format("%n%s%n", "TestGroup100Case0.test278");3108 java.lang.Runnable runnable0 = null;3109 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread(runnable0);3110 java.lang.ThreadGroup threadGroup2 = null;3111 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, "Too many thread-local indexed variables");3112 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap5 = internalThread4.threadLocalMap();3113 java.lang.ThreadGroup threadGroup6 = null;3114 org.apache.dubbo.common.threadlocal.InternalThread internalThread8 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3115 org.apache.dubbo.common.threadlocal.InternalThread internalThread9 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread8);3116 org.apache.dubbo.common.threadlocal.InternalThread internalThread10 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup6, (java.lang.Runnable) internalThread9);3117 java.lang.Thread[] threadArray11 = new java.lang.Thread[] { internalThread1, internalThread4, internalThread9 };3118 // The following exception was thrown during execution in test generation3119 try {3120 org.mockito.Mockito.reset(threadArray11);3121 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3122 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3123 // Expected exception.3124 }3125 org.junit.Assert.assertNull(internalThreadLocalMap5);3126 org.junit.Assert.assertNotNull(threadArray11);3127 }3128 @Test3129 public void test279() throws Throwable {3130 if (debug)3131 System.out.format("%n%s%n", "TestGroup100Case0.test279");3132 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast((int) (byte) 1);3133 org.mockito.stubbing.Stubber stubber2 = null; // flaky: org.mockito.Mockito.doReturn((java.lang.Object) (byte) 1);3134 org.junit.Assert.assertNotNull(verificationMode1);3135// flaky: org.junit.Assert.assertNotNull(stubber2);3136 }3137 @Test3138 public void test280() throws Throwable {3139 if (debug)3140 System.out.format("%n%s%n", "TestGroup100Case0.test280");3141 java.lang.String[] strArray2 = new java.lang.String[] {};3142 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);3143 java.lang.String str4 = org.mockito.ArgumentMatchers.refEq("set attachment failed!", strArray2);3144 // The following exception was thrown during execution in test generation3145 try {3146 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray2);3147 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");3148 } catch (org.mockito.exceptions.base.MockitoException e) {3149 // Expected exception.3150 }3151 org.junit.Assert.assertNotNull(strArray2);3152 org.junit.Assert.assertNull(str3);3153 org.junit.Assert.assertNull(str4);3154 }3155 @Test3156 public void test281() throws Throwable {3157 if (debug)3158 System.out.format("%n%s%n", "TestGroup100Case0.test281");3159 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) ' ');3160 java.lang.String[] strArray3 = new java.lang.String[] {};3161 java.lang.String str4 = org.mockito.ArgumentMatchers.refEq("method1", strArray3);3162 java.lang.Object[] objArray5 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray3);3163 // The following exception was thrown during execution in test generation3164 try {3165 org.mockito.stubbing.Stubber stubber6 = org.mockito.Mockito.doReturn((java.lang.Object) verificationMode1, objArray5);3166 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3167 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3168 // Expected exception.3169 }3170 org.junit.Assert.assertNotNull(verificationMode1);3171 org.junit.Assert.assertNotNull(strArray3);3172 org.junit.Assert.assertNull(str4);3173 org.junit.Assert.assertNotNull(objArray5);3174 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray5), "[]");3175 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray5), "[]");3176 }3177 @Test3178 public void test282() throws Throwable {3179 if (debug)3180 System.out.format("%n%s%n", "TestGroup100Case0.test282");3181 java.util.List<java.lang.reflect.Type> typeList0 = org.mockito.ArgumentMatchers.anyList();3182 org.junit.Assert.assertNotNull(typeList0);3183 }3184 @Test3185 public void test283() throws Throwable {3186 if (debug)3187 System.out.format("%n%s%n", "TestGroup100Case0.test283");3188 java.lang.Iterable<org.mockito.stubbing.BaseStubber> baseStubberIterable0 = org.mockito.ArgumentMatchers.anyIterable();3189 org.junit.Assert.assertNotNull(baseStubberIterable0);3190 }3191 @Test3192 public void test284() throws Throwable {3193 if (debug)3194 System.out.format("%n%s%n", "TestGroup100Case0.test284");3195 org.mockito.stubbing.LenientStubber lenientStubber0 = org.mockito.ArgumentMatchers.isNotNull();3196 org.junit.Assert.assertNull(lenientStubber0);3197 }3198 @Test3199 public void test285() throws Throwable {3200 if (debug)3201 System.out.format("%n%s%n", "TestGroup100Case0.test285");3202 java.lang.ThreadGroup threadGroup0 = null;3203 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3204 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);3205 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2, "Succeeded to forking invoke provider !");3206 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap6 = internalThread2.threadLocalMap();3207 org.apache.dubbo.common.threadlocal.InternalThread internalThread7 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread2);3208 org.junit.Assert.assertNull(internalThreadLocalMap6);3209 }3210 @Test3211 public void test286() throws Throwable {3212 if (debug)3213 System.out.format("%n%s%n", "TestGroup100Case0.test286");3214 java.lang.CharSequence charSequence0 = org.mockito.ArgumentMatchers.any();3215 org.junit.Assert.assertNull(charSequence0);3216 }3217 @Test3218 public void test287() throws Throwable {3219 if (debug)3220 System.out.format("%n%s%n", "TestGroup100Case0.test287");3221 java.lang.ThreadGroup threadGroup0 = null;3222 java.lang.ThreadGroup threadGroup1 = null;3223 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "Succeeded to forking invoke provider !");3224 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "value", 1L);3225 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap7 = internalThread6.threadLocalMap();3226 java.lang.Object[] objArray8 = new java.lang.Object[] { internalThread6 };3227 // The following exception was thrown during execution in test generation3228 try {3229 org.mockito.Mockito.verifyNoInteractions(objArray8);3230 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3231 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3232 // Expected exception.3233 }3234 org.junit.Assert.assertNull(internalThreadLocalMap7);3235 org.junit.Assert.assertNotNull(objArray8);3236 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray8), "[Thread[value,5,main]]");3237 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray8), "[Thread[value,5,main]]");3238 }3239 @Test3240 public void test288() throws Throwable {3241 if (debug)3242 System.out.format("%n%s%n", "TestGroup100Case0.test288");3243 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3244 java.lang.Thread thread2 = org.mockito.ArgumentMatchers.eq((java.lang.Thread) internalThread1);3245 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1, "Too many thread-local indexed variables");3246 org.junit.Assert.assertNull(thread2);3247 }3248 @Test3249 public void test289() throws Throwable {3250 if (debug)3251 System.out.format("%n%s%n", "TestGroup100Case0.test289");3252 // The following exception was thrown during execution in test generation3253 try {3254 java.io.Serializable serializable1 = org.mockito.Mockito.spy((java.io.Serializable) "Failed to forking invoke provider");3255 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Cannot mock/spy class java.lang.String?Mockito cannot mock/spy because :? - final class");3256 } catch (org.mockito.exceptions.base.MockitoException e) {3257 // Expected exception.3258 }3259 }3260 @Test3261 public void test290() throws Throwable {3262 if (debug)3263 System.out.format("%n%s%n", "TestGroup100Case0.test290");3264 org.mockito.verification.VerificationWithTimeout verificationWithTimeout0 = org.mockito.ArgumentMatchers.isNull();3265 org.junit.Assert.assertNull(verificationWithTimeout0);3266 }3267 @Test3268 public void test291() throws Throwable {3269 if (debug)3270 System.out.format("%n%s%n", "TestGroup100Case0.test291");3271 java.lang.ThreadGroup threadGroup0 = null;3272 java.lang.ThreadGroup threadGroup1 = null;3273 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3274 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread3);3275 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread4);3276 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread5);3277 org.apache.dubbo.common.threadlocal.InternalThread internalThread7 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread6);3278 org.apache.dubbo.common.threadlocal.InternalThread internalThread9 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread6, "");3279 }3280 @Test3281 public void test292() throws Throwable {3282 if (debug)3283 System.out.format("%n%s%n", "TestGroup100Case0.test292");3284 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyIterable();3285 org.mockito.verification.VerificationMode verificationMode2 = org.mockito.Mockito.atLeast((int) (byte) 1);3286 // The following exception was thrown during execution in test generation3287 try {3288 java.lang.Iterable<org.mockito.Mockito> mockitoIterable3 = org.mockito.Mockito.verify(mockitoIterable0, verificationMode2);3289 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type ArrayList and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");3290 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3291 // Expected exception.3292 }3293 org.junit.Assert.assertNotNull(mockitoIterable0);3294 org.junit.Assert.assertNotNull(verificationMode2);3295 }3296 @Test3297 public void test293() throws Throwable {3298 if (debug)3299 System.out.format("%n%s%n", "TestGroup100Case0.test293");3300 org.mockito.Mockito mockito0 = new org.mockito.Mockito();3301 org.mockito.Mockito mockito1 = org.mockito.ArgumentMatchers.eq(mockito0);3302 org.junit.Assert.assertNull(mockito1);3303 }3304 @Test3305 public void test294() throws Throwable {3306 if (debug)3307 System.out.format("%n%s%n", "TestGroup100Case0.test294");3308 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls(10);3309 org.junit.Assert.assertNotNull(verificationMode1);3310 }3311 @Test3312 public void test295() throws Throwable {3313 if (debug)3314 System.out.format("%n%s%n", "TestGroup100Case0.test295");3315 java.lang.ThreadGroup threadGroup0 = null;3316 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "clear attachment failed!");3317 }3318 @Test3319 public void test296() throws Throwable {3320 if (debug)3321 System.out.format("%n%s%n", "TestGroup100Case0.test296");3322 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) '\000');3323 org.mockito.verification.VerificationAfterDelay verificationAfterDelay2 = org.mockito.ArgumentMatchers.same(verificationAfterDelay1);3324 org.junit.Assert.assertNotNull(verificationAfterDelay1);3325 org.junit.Assert.assertNull(verificationAfterDelay2);3326 }3327 @Test3328 public void test297() throws Throwable {3329 if (debug)3330 System.out.format("%n%s%n", "TestGroup100Case0.test297");3331 double double1 = org.mockito.ArgumentMatchers.eq((double) 100L);3332 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);3333 }3334 @Test3335 public void test298() throws Throwable {3336 if (debug)3337 System.out.format("%n%s%n", "TestGroup100Case0.test298");3338 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("hi!");3339 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");3340 }3341 @Test3342 public void test299() throws Throwable {3343 if (debug)3344 System.out.format("%n%s%n", "TestGroup100Case0.test299");3345 org.mockito.stubbing.Stubber stubber0 = org.mockito.ArgumentMatchers.isNotNull();3346 org.junit.Assert.assertNull(stubber0);3347 }3348 @Test3349 public void test300() throws Throwable {3350 if (debug)3351 System.out.format("%n%s%n", "TestGroup100Case0.test300");3352 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times(1);3353 org.junit.Assert.assertNotNull(verificationMode1);3354 }3355 @Test3356 public void test301() throws Throwable {3357 if (debug)3358 System.out.format("%n%s%n", "TestGroup100Case0.test301");3359 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 100);3360 java.lang.String[] strArray2 = new java.lang.String[] {};3361 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout1, strArray2);3362 java.lang.Class<?> wildcardClass4 = verificationWithTimeout1.getClass();3363 org.junit.Assert.assertNotNull(verificationWithTimeout1);3364 org.junit.Assert.assertNotNull(strArray2);3365 org.junit.Assert.assertNull(verificationWithTimeout3);3366 org.junit.Assert.assertNotNull(wildcardClass4);3367 }3368 @Test3369 public void test302() throws Throwable {3370 if (debug)3371 System.out.format("%n%s%n", "TestGroup100Case0.test302");3372 java.lang.Runnable runnable0 = org.mockito.ArgumentMatchers.notNull();3373 org.junit.Assert.assertNull(runnable0);3374 }3375 @Test3376 public void test303() throws Throwable {3377 if (debug)3378 System.out.format("%n%s%n", "TestGroup100Case0.test303");3379 java.lang.ThreadGroup threadGroup0 = null;3380 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "method1");3381 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);3382 }3383 @Test3384 public void test304() throws Throwable {3385 if (debug)3386 System.out.format("%n%s%n", "TestGroup100Case0.test304");3387 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyIterable();3388 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();3389 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();3390 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);3391 java.lang.String[] strArray5 = new java.lang.String[] {};3392 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);3393 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);3394 java.lang.Iterable<org.mockito.Mockito> mockitoIterable8 = org.mockito.ArgumentMatchers.refEq(mockitoIterable0, strArray5);3395 // The following exception was thrown during execution in test generation3396 try {3397 java.lang.Iterable<org.mockito.Mockito> mockitoIterable9 = org.mockito.Mockito.verify(mockitoIterable0);3398 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type ArrayList and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");3399 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3400 // Expected exception.3401 }3402 org.junit.Assert.assertNotNull(mockitoIterable0);3403 org.junit.Assert.assertNotNull(mockSettings1);3404 org.junit.Assert.assertNotNull(wildcardClass2);3405 org.junit.Assert.assertNotNull(verificationWithTimeout4);3406 org.junit.Assert.assertNotNull(strArray5);3407 org.junit.Assert.assertNull(verificationWithTimeout6);3408 org.junit.Assert.assertNull(annotatedElement7);3409 org.junit.Assert.assertNull(mockitoIterable8);3410 }3411 @Test3412 public void test305() throws Throwable {3413 if (debug)3414 System.out.format("%n%s%n", "TestGroup100Case0.test305");3415 java.util.List<java.lang.Comparable<java.lang.String>> strComparableList0 = org.mockito.ArgumentMatchers.anyList();3416 java.util.Collection<java.lang.Comparable<java.lang.String>> strComparableCollection1 = org.mockito.ArgumentMatchers.eq((java.util.Collection<java.lang.Comparable<java.lang.String>>) strComparableList0);3417 org.junit.Assert.assertNotNull(strComparableList0);3418 org.junit.Assert.assertNull(strComparableCollection1);3419 }3420 @Test3421 public void test306() throws Throwable {3422 if (debug)3423 System.out.format("%n%s%n", "TestGroup100Case0.test306");3424 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyIterable();3425 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();3426 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();3427 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);3428 java.lang.String[] strArray5 = new java.lang.String[] {};3429 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);3430 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);3431 java.lang.Iterable<org.mockito.Mockito> mockitoIterable8 = org.mockito.ArgumentMatchers.refEq(mockitoIterable0, strArray5);3432 org.mockito.verification.VerificationMode verificationMode10 = org.mockito.Mockito.calls((int) ' ');3433 // The following exception was thrown during execution in test generation3434 try {3435 java.lang.Iterable<org.mockito.Mockito> mockitoIterable11 = org.mockito.Mockito.verify(mockitoIterable8, verificationMode10);3436 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NullInsteadOfMockException; message: ?Argument passed to verify() should be a mock but is null!?Examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();? not: verify(mock.someMethod());?Also, if you use @Mock annotation don't miss openMocks()");3437 } catch (org.mockito.exceptions.misusing.NullInsteadOfMockException e) {3438 // Expected exception.3439 }3440 org.junit.Assert.assertNotNull(mockitoIterable0);3441 org.junit.Assert.assertNotNull(mockSettings1);3442 org.junit.Assert.assertNotNull(wildcardClass2);3443 org.junit.Assert.assertNotNull(verificationWithTimeout4);3444 org.junit.Assert.assertNotNull(strArray5);3445 org.junit.Assert.assertNull(verificationWithTimeout6);3446 org.junit.Assert.assertNull(annotatedElement7);3447 org.junit.Assert.assertNull(mockitoIterable8);3448 org.junit.Assert.assertNotNull(verificationMode10);3449 }3450 @Test3451 public void test307() throws Throwable {3452 if (debug)3453 System.out.format("%n%s%n", "TestGroup100Case0.test307");3454 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) 'a');3455 org.junit.Assert.assertNotNull(verificationMode1);3456 }3457 @Test3458 public void test308() throws Throwable {3459 if (debug)3460 System.out.format("%n%s%n", "TestGroup100Case0.test308");3461 java.lang.Object obj0 = org.mockito.ArgumentMatchers.isNotNull();3462 org.junit.Assert.assertNull(obj0);3463 }3464 @Test3465 public void test309() throws Throwable {3466 if (debug)3467 System.out.format("%n%s%n", "TestGroup100Case0.test309");3468 java.util.List<org.mockito.Mockito> mockitoList0 = org.mockito.ArgumentMatchers.anyList();3469 org.junit.Assert.assertNotNull(mockitoList0);3470 }3471 @Test3472 public void test310() throws Throwable {3473 if (debug)3474 System.out.format("%n%s%n", "TestGroup100Case0.test310");3475 java.lang.Class<?> wildcardClass0 = org.mockito.ArgumentMatchers.isNotNull();3476 org.junit.Assert.assertNull(wildcardClass0);3477 }3478 @Test3479 public void test311() throws Throwable {3480 if (debug)3481 System.out.format("%n%s%n", "TestGroup100Case0.test311");3482 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after(100L);3483 java.lang.String[] strArray3 = new java.lang.String[] {};3484 java.lang.String str4 = org.mockito.ArgumentMatchers.refEq("method1", strArray3);3485 java.lang.Object[] objArray5 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) strArray3);3486 java.lang.String[] strArray6 = org.mockito.ArgumentMatchers.same(strArray3);3487 org.mockito.verification.VerificationAfterDelay verificationAfterDelay7 = org.mockito.ArgumentMatchers.refEq(verificationAfterDelay1, strArray6);3488 org.junit.Assert.assertNotNull(verificationAfterDelay1);3489 org.junit.Assert.assertNotNull(strArray3);3490 org.junit.Assert.assertNull(str4);3491 org.junit.Assert.assertNotNull(objArray5);3492 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray5), "[]");3493 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray5), "[]");3494 org.junit.Assert.assertNull(strArray6);3495 org.junit.Assert.assertNull(verificationAfterDelay7);3496 }3497 @Test3498 public void test312() throws Throwable {3499 if (debug)3500 System.out.format("%n%s%n", "TestGroup100Case0.test312");3501 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) ' ');3502 org.mockito.MockingDetails mockingDetails2 = org.mockito.Mockito.mockingDetails((java.lang.Object) ' ');3503 // The following exception was thrown during execution in test generation3504 try {3505 java.lang.Object obj3 = org.mockito.Mockito.spy((java.lang.Object) mockingDetails2);3506 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3507 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3508 // Expected exception.3509 }3510 org.junit.Assert.assertNotNull(verificationAfterDelay1);3511 org.junit.Assert.assertNotNull(mockingDetails2);3512 }3513 @Test3514 public void test313() throws Throwable {3515 if (debug)3516 System.out.format("%n%s%n", "TestGroup100Case0.test313");3517 int int1 = org.mockito.ArgumentMatchers.eq(1);3518 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);3519 }3520 @Test3521 public void test314() throws Throwable {3522 if (debug)3523 System.out.format("%n%s%n", "TestGroup100Case0.test314");3524 java.lang.ThreadGroup threadGroup0 = null;3525 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3526 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);3527 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3);3528 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap5 = internalThread4.threadLocalMap();3529 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap6 = internalThread4.threadLocalMap();3530 org.junit.Assert.assertNull(internalThreadLocalMap5);3531 org.junit.Assert.assertNull(internalThreadLocalMap6);3532 }3533 @Test3534 public void test315() throws Throwable {3535 if (debug)3536 System.out.format("%n%s%n", "TestGroup100Case0.test315");3537 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) (short) 0);3538 org.junit.Assert.assertNotNull(verificationAfterDelay1);3539 }3540 @Test3541 public void test316() throws Throwable {3542 if (debug)3543 System.out.format("%n%s%n", "TestGroup100Case0.test316");3544 org.mockito.stubbing.Answer answer0 = null;3545 // The following exception was thrown during execution in test generation3546 try {3547 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doAnswer(answer0);3548 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3549 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3550 // Expected exception.3551 }3552 }3553 @Test3554 public void test317() throws Throwable {3555 if (debug)3556 System.out.format("%n%s%n", "TestGroup100Case0.test317");3557 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_DEEP_STUBS;3558 // The following exception was thrown during execution in test generation3559 try {3560 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);3561// flaky: org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.UnfinishedStubbingException; message: ?Unfinished stubbing detected here:?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??E.g. thenReturn() may be missing.?Examples of correct stubbing:? when(mock.isOk()).thenReturn(true);? when(mock.isOk()).thenThrow(exception);? doThrow(exception).when(mock).someVoidMethod();?Hints:? 1. missing thenReturn()? 2. you are trying to stub a final method, which is not supported? 3. you are stubbing the behaviour of another mock inside before 'thenReturn' instruction is completed?");3562 } catch (org.mockito.exceptions.misusing.UnfinishedStubbingException e) {3563 // Expected exception.3564 }3565 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_DEEP_STUBS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_DEEP_STUBS));3566 }3567 @Test3568 public void test318() throws Throwable {3569 if (debug)3570 System.out.format("%n%s%n", "TestGroup100Case0.test318");3571 java.lang.ThreadGroup threadGroup0 = null;3572 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "set attachment failed!");3573 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2, "value");3574 }3575 @Test3576 public void test319() throws Throwable {3577 if (debug)3578 System.out.format("%n%s%n", "TestGroup100Case0.test319");3579 org.mockito.MockingDetails mockingDetails0 = org.mockito.ArgumentMatchers.anyVararg();3580 org.junit.Assert.assertNull(mockingDetails0);3581 }3582 @Test3583 public void test320() throws Throwable {3584 if (debug)3585 System.out.format("%n%s%n", "TestGroup100Case0.test320");3586 org.mockito.stubbing.LenientStubber lenientStubber0 = org.mockito.Mockito.lenient();3587 org.mockito.stubbing.BaseStubber baseStubber1 = org.mockito.ArgumentMatchers.eq((org.mockito.stubbing.BaseStubber) lenientStubber0);3588 // The following exception was thrown during execution in test generation3589 try {3590 org.mockito.stubbing.OngoingStubbing<org.mockito.stubbing.LenientStubber> lenientStubberOngoingStubbing2 = org.mockito.Mockito.when(lenientStubber0);3591 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3592 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3593 // Expected exception.3594 }3595 org.junit.Assert.assertNotNull(lenientStubber0);3596 org.junit.Assert.assertNull(baseStubber1);3597 }3598 @Test3599 public void test321() throws Throwable {3600 if (debug)3601 System.out.format("%n%s%n", "TestGroup100Case0.test321");3602 java.util.List<java.lang.String[]> strArrayList0 = org.mockito.ArgumentMatchers.anyList();3603 org.junit.Assert.assertNotNull(strArrayList0);3604 }3605 @Test3606 public void test322() throws Throwable {3607 if (debug)3608 System.out.format("%n%s%n", "TestGroup100Case0.test322");3609 org.mockito.stubbing.BaseStubber baseStubber0 = org.mockito.ArgumentMatchers.notNull();3610 org.junit.Assert.assertNull(baseStubber0);3611 }3612 @Test3613 public void test323() throws Throwable {3614 if (debug)3615 System.out.format("%n%s%n", "TestGroup100Case0.test323");3616 org.mockito.verification.VerificationAfterDelay verificationAfterDelay0 = org.mockito.ArgumentMatchers.notNull();3617 org.junit.Assert.assertNull(verificationAfterDelay0);3618 }3619 @Test3620 public void test324() throws Throwable {3621 if (debug)3622 System.out.format("%n%s%n", "TestGroup100Case0.test324");3623 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_DEFAULTS;3624 // The following exception was thrown during execution in test generation3625 try {3626 org.mockito.stubbing.OngoingStubbing<org.mockito.stubbing.Answer<java.lang.Object>> objAnswerOngoingStubbing1 = org.mockito.Mockito.when(objAnswer0);3627 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3628 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3629 // Expected exception.3630 }3631 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_DEFAULTS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_DEFAULTS));3632 }3633 @Test3634 public void test325() throws Throwable {3635 if (debug)3636 System.out.format("%n%s%n", "TestGroup100Case0.test325");3637 org.mockito.verification.VerificationWithTimeout verificationWithTimeout0 = null;3638 // The following exception was thrown during execution in test generation3639 try {3640 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.verify(verificationWithTimeout0);3641 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NullInsteadOfMockException; message: ?Argument passed to verify() should be a mock but is null!?Examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();? not: verify(mock.someMethod());?Also, if you use @Mock annotation don't miss openMocks()");3642 } catch (org.mockito.exceptions.misusing.NullInsteadOfMockException e) {3643 // Expected exception.3644 }3645 }3646 @Test3647 public void test326() throws Throwable {3648 if (debug)3649 System.out.format("%n%s%n", "TestGroup100Case0.test326");3650 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) (byte) 0);3651 org.junit.Assert.assertNotNull(verificationMode1);3652 }3653 @Test3654 public void test327() throws Throwable {3655 if (debug)3656 System.out.format("%n%s%n", "TestGroup100Case0.test327");3657 java.lang.Iterable<org.apache.dubbo.common.threadlocal.InternalThread> internalThreadIterable0 = org.mockito.ArgumentMatchers.anyIterable();3658 org.junit.Assert.assertNotNull(internalThreadIterable0);3659 }3660 @Test3661 public void test328() throws Throwable {3662 if (debug)3663 System.out.format("%n%s%n", "TestGroup100Case0.test328");3664 long long1 = org.mockito.ArgumentMatchers.eq((long) (byte) 100);3665 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);3666 }3667 @Test3668 public void test329() throws Throwable {3669 if (debug)3670 System.out.format("%n%s%n", "TestGroup100Case0.test329");3671 org.mockito.verification.VerificationWithTimeout verificationWithTimeout2 = org.mockito.Mockito.timeout((long) (short) 100);3672 java.lang.String[] strArray3 = new java.lang.String[] {};3673 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout2, strArray3);3674 java.lang.CharSequence charSequence5 = org.mockito.ArgumentMatchers.refEq((java.lang.CharSequence) "", strArray3);3675 // The following exception was thrown during execution in test generation3676 try {3677 org.mockito.InOrder inOrder6 = org.mockito.Mockito.inOrder((java.lang.Object[]) strArray3);3678 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that require verification in order.?For example:? InOrder inOrder = inOrder(mockOne, mockTwo);");3679 } catch (org.mockito.exceptions.base.MockitoException e) {3680 // Expected exception.3681 }3682 org.junit.Assert.assertNotNull(verificationWithTimeout2);3683 org.junit.Assert.assertNotNull(strArray3);3684 org.junit.Assert.assertNull(verificationWithTimeout4);3685 org.junit.Assert.assertNull(charSequence5);3686 }3687 @Test3688 public void test330() throws Throwable {3689 if (debug)3690 System.out.format("%n%s%n", "TestGroup100Case0.test330");3691 // The following exception was thrown during execution in test generation3692 try {3693 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls((int) (byte) -1);3694 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: Negative and zero values are not allowed here");3695 } catch (org.mockito.exceptions.base.MockitoException e) {3696 // Expected exception.3697 }3698 }3699 @Test3700 public void test331() throws Throwable {3701 if (debug)3702 System.out.format("%n%s%n", "TestGroup100Case0.test331");3703 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("Succeeded to forking invoke provider !");3704 org.junit.Assert.assertNotNull(verificationMode1);3705 }3706 @Test3707 public void test332() throws Throwable {3708 if (debug)3709 System.out.format("%n%s%n", "TestGroup100Case0.test332");3710 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.Mockito.atLeastOnce();3711 java.lang.Class<?> wildcardClass1 = verificationMode0.getClass();3712 org.mockito.verification.VerificationMode verificationMode2 = org.mockito.Mockito.never();3713 // The following exception was thrown during execution in test generation3714 try {3715 java.lang.reflect.Type type3 = org.mockito.Mockito.verify((java.lang.reflect.Type) wildcardClass1, verificationMode2);3716 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Class and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");3717 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3718 // Expected exception.3719 }3720 org.junit.Assert.assertNotNull(verificationMode0);3721 org.junit.Assert.assertNotNull(wildcardClass1);3722 org.junit.Assert.assertNotNull(verificationMode2);3723 }3724 @Test3725 public void test333() throws Throwable {3726 if (debug)3727 System.out.format("%n%s%n", "TestGroup100Case0.test333");3728 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray0 = org.mockito.ArgumentMatchers.any();3729 org.junit.Assert.assertNull(mockitoSessionBuilderArray0);3730 }3731 @Test3732 public void test334() throws Throwable {3733 if (debug)3734 System.out.format("%n%s%n", "TestGroup100Case0.test334");3735 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 0);3736 org.mockito.verification.VerificationMode verificationMode3 = org.mockito.Mockito.atLeast((int) (short) 1);3737 // The following exception was thrown during execution in test generation3738 try {3739 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.verify(verificationWithTimeout1, verificationMode3);3740 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Timeout and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");3741 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3742 // Expected exception.3743 }3744 org.junit.Assert.assertNotNull(verificationWithTimeout1);3745 org.junit.Assert.assertNotNull(verificationMode3);3746 }3747 @Test3748 public void test335() throws Throwable {3749 if (debug)3750 System.out.format("%n%s%n", "TestGroup100Case0.test335");3751 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet0 = org.mockito.ArgumentMatchers.anySet();3752 java.lang.Object[] objArray1 = new java.lang.Object[] { strComparableSet0 };3753 java.lang.Iterable<org.mockito.Mockito> mockitoIterable2 = org.mockito.ArgumentMatchers.anyIterable();3754 org.mockito.MockSettings mockSettings3 = org.mockito.Mockito.withSettings();3755 java.lang.Class<?> wildcardClass4 = mockSettings3.getClass();3756 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.Mockito.timeout((long) (short) 100);3757 java.lang.String[] strArray7 = new java.lang.String[] {};3758 org.mockito.verification.VerificationWithTimeout verificationWithTimeout8 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout6, strArray7);3759 java.lang.reflect.AnnotatedElement annotatedElement9 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass4, strArray7);3760 java.lang.Iterable<org.mockito.Mockito> mockitoIterable10 = org.mockito.ArgumentMatchers.refEq(mockitoIterable2, strArray7);3761 java.lang.Object[] objArray11 = org.mockito.ArgumentMatchers.refEq(objArray1, strArray7);3762 // The following exception was thrown during execution in test generation3763 try {3764 org.mockito.Mockito.verifyNoInteractions(objArray1);3765 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3766 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3767 // Expected exception.3768 }3769 org.junit.Assert.assertNotNull(strComparableSet0);3770 org.junit.Assert.assertNotNull(objArray1);3771 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray1), "[[]]");3772 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray1), "[[]]");3773 org.junit.Assert.assertNotNull(mockitoIterable2);3774 org.junit.Assert.assertNotNull(mockSettings3);3775 org.junit.Assert.assertNotNull(wildcardClass4);3776 org.junit.Assert.assertNotNull(verificationWithTimeout6);3777 org.junit.Assert.assertNotNull(strArray7);3778 org.junit.Assert.assertNull(verificationWithTimeout8);3779 org.junit.Assert.assertNull(annotatedElement9);3780 org.junit.Assert.assertNull(mockitoIterable10);3781 org.junit.Assert.assertNull(objArray11);3782 }3783 @Test3784 public void test336() throws Throwable {3785 if (debug)3786 System.out.format("%n%s%n", "TestGroup100Case0.test336");3787 java.lang.reflect.Type type0 = org.mockito.ArgumentMatchers.anyObject();3788 org.junit.Assert.assertNull(type0);3789 }3790 @Test3791 public void test337() throws Throwable {3792 if (debug)3793 System.out.format("%n%s%n", "TestGroup100Case0.test337");3794 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_DEFAULTS;3795 org.mockito.stubbing.Answer<java.lang.Object> objAnswer1 = org.mockito.ArgumentMatchers.eq(objAnswer0);3796 // The following exception was thrown during execution in test generation3797 try {3798 org.mockito.stubbing.Stubber stubber2 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer1);3799 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3800 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3801 // Expected exception.3802 }3803 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_DEFAULTS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_DEFAULTS));3804 org.junit.Assert.assertNull(objAnswer1);3805 }3806 @Test3807 public void test338() throws Throwable {3808 if (debug)3809 System.out.format("%n%s%n", "TestGroup100Case0.test338");3810 java.lang.reflect.Type type0 = null;3811 // The following exception was thrown during execution in test generation3812 try {3813 java.lang.reflect.Type type1 = org.mockito.Mockito.verify(type0);3814 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NullInsteadOfMockException; message: ?Argument passed to verify() should be a mock but is null!?Examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();? not: verify(mock.someMethod());?Also, if you use @Mock annotation don't miss openMocks()");3815 } catch (org.mockito.exceptions.misusing.NullInsteadOfMockException e) {3816 // Expected exception.3817 }3818 }3819 @Test3820 public void test339() throws Throwable {3821 if (debug)3822 System.out.format("%n%s%n", "TestGroup100Case0.test339");3823 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyIterable();3824 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();3825 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();3826 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);3827 java.lang.String[] strArray5 = new java.lang.String[] {};3828 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);3829 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);3830 java.lang.Iterable<org.mockito.Mockito> mockitoIterable8 = org.mockito.ArgumentMatchers.refEq(mockitoIterable0, strArray5);3831 // The following exception was thrown during execution in test generation3832 try {3833 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray5);3834 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");3835 } catch (org.mockito.exceptions.base.MockitoException e) {3836 // Expected exception.3837 }3838 org.junit.Assert.assertNotNull(mockitoIterable0);3839 org.junit.Assert.assertNotNull(mockSettings1);3840 org.junit.Assert.assertNotNull(wildcardClass2);3841 org.junit.Assert.assertNotNull(verificationWithTimeout4);3842 org.junit.Assert.assertNotNull(strArray5);3843 org.junit.Assert.assertNull(verificationWithTimeout6);3844 org.junit.Assert.assertNull(annotatedElement7);3845 org.junit.Assert.assertNull(mockitoIterable8);3846 }3847 @Test3848 public void test340() throws Throwable {3849 if (debug)3850 System.out.format("%n%s%n", "TestGroup100Case0.test340");3851 org.mockito.ArgumentMatchers argumentMatchers0 = org.mockito.ArgumentMatchers.anyVararg();3852 org.junit.Assert.assertNull(argumentMatchers0);3853 }3854 @Test3855 public void test341() throws Throwable {3856 if (debug)3857 System.out.format("%n%s%n", "TestGroup100Case0.test341");3858 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("value");3859 }3860 @Test3861 public void test342() throws Throwable {3862 if (debug)3863 System.out.format("%n%s%n", "TestGroup100Case0.test342");3864 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3865 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1);3866 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1, "Succeeded to forking invoke provider !");3867 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1);3868 }3869 @Test3870 public void test343() throws Throwable {3871 if (debug)3872 System.out.format("%n%s%n", "TestGroup100Case0.test343");3873 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls(5);3874 org.junit.Assert.assertNotNull(verificationMode1);3875 }3876 @Test3877 public void test344() throws Throwable {3878 if (debug)3879 System.out.format("%n%s%n", "TestGroup100Case0.test344");3880 java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet0 = org.mockito.ArgumentMatchers.anySet();3881 java.lang.Object[] objArray1 = new java.lang.Object[] { strComparableSet0 };3882 java.lang.Iterable<org.mockito.Mockito> mockitoIterable2 = org.mockito.ArgumentMatchers.anyIterable();3883 org.mockito.MockSettings mockSettings3 = org.mockito.Mockito.withSettings();3884 java.lang.Class<?> wildcardClass4 = mockSettings3.getClass();3885 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.Mockito.timeout((long) (short) 100);3886 java.lang.String[] strArray7 = new java.lang.String[] {};3887 org.mockito.verification.VerificationWithTimeout verificationWithTimeout8 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout6, strArray7);3888 java.lang.reflect.AnnotatedElement annotatedElement9 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass4, strArray7);3889 java.lang.Iterable<org.mockito.Mockito> mockitoIterable10 = org.mockito.ArgumentMatchers.refEq(mockitoIterable2, strArray7);3890 java.lang.Object[] objArray11 = org.mockito.ArgumentMatchers.refEq(objArray1, strArray7);3891 // The following exception was thrown during execution in test generation3892 try {3893 org.mockito.Mockito.verifyZeroInteractions(objArray1);3894 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");3895 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3896 // Expected exception.3897 }3898 org.junit.Assert.assertNotNull(strComparableSet0);3899 org.junit.Assert.assertNotNull(objArray1);3900 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray1), "[[]]");3901 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray1), "[[]]");3902 org.junit.Assert.assertNotNull(mockitoIterable2);3903 org.junit.Assert.assertNotNull(mockSettings3);3904 org.junit.Assert.assertNotNull(wildcardClass4);3905 org.junit.Assert.assertNotNull(verificationWithTimeout6);3906 org.junit.Assert.assertNotNull(strArray7);3907 org.junit.Assert.assertNull(verificationWithTimeout8);3908 org.junit.Assert.assertNull(annotatedElement9);3909 org.junit.Assert.assertNull(mockitoIterable10);3910 org.junit.Assert.assertNull(objArray11);3911 }3912 @Test3913 public void test345() throws Throwable {3914 if (debug)3915 System.out.format("%n%s%n", "TestGroup100Case0.test345");3916 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_DEEP_STUBS;3917 org.mockito.stubbing.Stubber stubber1 = null; // flaky: org.mockito.Mockito.doReturn((java.lang.Object) objAnswer0);3918 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_DEEP_STUBS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_DEEP_STUBS));3919// flaky: org.junit.Assert.assertNotNull(stubber1);3920 }3921 @Test3922 public void test346() throws Throwable {3923 if (debug)3924 System.out.format("%n%s%n", "TestGroup100Case0.test346");3925 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times(0);3926 org.junit.Assert.assertNotNull(verificationMode1);3927 }3928 @Test3929 public void test347() throws Throwable {3930 if (debug)3931 System.out.format("%n%s%n", "TestGroup100Case0.test347");3932 org.apache.dubbo.common.threadlocal.InternalThread internalThread0 = new org.apache.dubbo.common.threadlocal.InternalThread();3933 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread0);3934 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1);3935 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1);3936 }3937 @Test3938 public void test348() throws Throwable {3939 if (debug)3940 System.out.format("%n%s%n", "TestGroup100Case0.test348");3941 org.mockito.ArgumentMatchers argumentMatchers0 = org.mockito.ArgumentMatchers.isNull();3942 org.junit.Assert.assertNull(argumentMatchers0);3943 }3944 @Test3945 public void test349() throws Throwable {3946 if (debug)3947 System.out.format("%n%s%n", "TestGroup100Case0.test349");3948 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.ArgumentMatchers.anyVararg();3949 org.junit.Assert.assertNull(objAnswer0);3950 }3951 @Test3952 public void test350() throws Throwable {3953 if (debug)3954 System.out.format("%n%s%n", "TestGroup100Case0.test350");3955 int int1 = org.mockito.ArgumentMatchers.eq((-1));3956 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);3957 }3958 @Test3959 public void test351() throws Throwable {3960 if (debug)3961 System.out.format("%n%s%n", "TestGroup100Case0.test351");3962 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("Too many thread-local indexed variables");3963 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");3964 }3965 @Test3966 public void test352() throws Throwable {3967 if (debug)3968 System.out.format("%n%s%n", "TestGroup100Case0.test352");3969 java.lang.ThreadGroup threadGroup0 = null;3970 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");3971 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread2, "attach", (long) '4');3972 }3973 @Test3974 public void test353() throws Throwable {3975 if (debug)3976 System.out.format("%n%s%n", "TestGroup100Case0.test353");3977 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost(1);3978 org.junit.Assert.assertNotNull(verificationMode1);3979 }3980 @Test3981 public void test354() throws Throwable {3982 if (debug)3983 System.out.format("%n%s%n", "TestGroup100Case0.test354");3984 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();3985 java.lang.Iterable<org.mockito.Mockito> mockitoIterable1 = org.mockito.ArgumentMatchers.anyIterable();3986 org.mockito.MockSettings mockSettings2 = org.mockito.Mockito.withSettings();3987 java.lang.Class<?> wildcardClass3 = mockSettings2.getClass();3988 org.mockito.verification.VerificationWithTimeout verificationWithTimeout5 = org.mockito.Mockito.timeout((long) (short) 100);3989 java.lang.String[] strArray6 = new java.lang.String[] {};3990 org.mockito.verification.VerificationWithTimeout verificationWithTimeout7 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout5, strArray6);3991 java.lang.reflect.AnnotatedElement annotatedElement8 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass3, strArray6);3992 java.lang.Iterable<org.mockito.Mockito> mockitoIterable9 = org.mockito.ArgumentMatchers.refEq(mockitoIterable1, strArray6);3993 java.util.Set<org.mockito.Mockito> mockitoSet10 = org.mockito.ArgumentMatchers.anySet();3994 java.lang.Iterable[] iterableArray12 = new java.lang.Iterable[3];3995 @SuppressWarnings("unchecked")3996 java.lang.Iterable<org.mockito.Mockito>[] mockitoIterableArray13 = (java.lang.Iterable<org.mockito.Mockito>[]) iterableArray12;3997 mockitoIterableArray13[0] = mockitoSet0;3998 mockitoIterableArray13[1] = mockitoIterable1;3999 mockitoIterableArray13[2] = mockitoSet10;4000 // The following exception was thrown during execution in test generation4001 try {4002 org.mockito.Mockito.reset(mockitoIterableArray13);4003 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4004 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4005 // Expected exception.4006 }4007 org.junit.Assert.assertNotNull(mockitoSet0);4008 org.junit.Assert.assertNotNull(mockitoIterable1);4009 org.junit.Assert.assertNotNull(mockSettings2);4010 org.junit.Assert.assertNotNull(wildcardClass3);4011 org.junit.Assert.assertNotNull(verificationWithTimeout5);4012 org.junit.Assert.assertNotNull(strArray6);4013 org.junit.Assert.assertNull(verificationWithTimeout7);4014 org.junit.Assert.assertNull(annotatedElement8);4015 org.junit.Assert.assertNull(mockitoIterable9);4016 org.junit.Assert.assertNotNull(mockitoSet10);4017 org.junit.Assert.assertNotNull(iterableArray12);4018 org.junit.Assert.assertNotNull(mockitoIterableArray13);4019 }4020 @Test4021 public void test355() throws Throwable {4022 if (debug)4023 System.out.format("%n%s%n", "TestGroup100Case0.test355");4024 int int1 = org.mockito.ArgumentMatchers.eq((int) '4');4025 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);4026 }4027 @Test4028 public void test356() throws Throwable {4029 if (debug)4030 System.out.format("%n%s%n", "TestGroup100Case0.test356");4031 java.lang.ThreadGroup threadGroup0 = null;4032 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "set attachment failed!");4033 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap3 = internalThread2.threadLocalMap();4034 org.junit.Assert.assertNull(internalThreadLocalMap3);4035 }4036 @Test4037 public void test357() throws Throwable {4038 if (debug)4039 System.out.format("%n%s%n", "TestGroup100Case0.test357");4040 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) 0);4041 java.util.Collection<java.lang.reflect.GenericDeclaration> genericDeclarationCollection2 = org.mockito.ArgumentMatchers.anyCollection();4042 org.mockito.MockingDetails mockingDetails3 = org.mockito.Mockito.mockingDetails((java.lang.Object) genericDeclarationCollection2);4043 org.mockito.MockingDetails mockingDetails5 = org.mockito.Mockito.mockingDetails((java.lang.Object) 0);4044 org.mockito.MockingDetails mockingDetails7 = org.mockito.Mockito.mockingDetails((java.lang.Object) 0);4045 org.mockito.MockingDetails mockingDetails9 = org.mockito.Mockito.mockingDetails((java.lang.Object) 100.0f);4046 org.mockito.MockingDetails[] mockingDetailsArray10 = new org.mockito.MockingDetails[] { mockingDetails1, mockingDetails3, mockingDetails5, mockingDetails7, mockingDetails9 };4047 // The following exception was thrown during execution in test generation4048 try {4049 org.mockito.Mockito.reset(mockingDetailsArray10);4050 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4051 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4052 // Expected exception.4053 }4054 org.junit.Assert.assertNotNull(mockingDetails1);4055 org.junit.Assert.assertNotNull(genericDeclarationCollection2);4056 org.junit.Assert.assertNotNull(mockingDetails3);4057 org.junit.Assert.assertNotNull(mockingDetails5);4058 org.junit.Assert.assertNotNull(mockingDetails7);4059 org.junit.Assert.assertNotNull(mockingDetails9);4060 org.junit.Assert.assertNotNull(mockingDetailsArray10);4061 }4062 @Test4063 public void test358() throws Throwable {4064 if (debug)4065 System.out.format("%n%s%n", "TestGroup100Case0.test358");4066 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap0 = org.mockito.ArgumentMatchers.anyMap();4067 java.lang.String[] strArray2 = new java.lang.String[] {};4068 java.lang.String str3 = org.mockito.ArgumentMatchers.refEq("method1", strArray2);4069 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap4 = org.mockito.ArgumentMatchers.refEq(strComparableSetMap0, strArray2);4070 org.junit.Assert.assertNotNull(strComparableSetMap0);4071 org.junit.Assert.assertNotNull(strArray2);4072 org.junit.Assert.assertNull(str3);4073 org.junit.Assert.assertNull(strComparableSetMap4);4074 }4075 @Test4076 public void test359() throws Throwable {4077 if (debug)4078 System.out.format("%n%s%n", "TestGroup100Case0.test359");4079 java.lang.ThreadGroup threadGroup0 = null;4080 java.lang.ThreadGroup threadGroup1 = null;4081 java.lang.ThreadGroup threadGroup2 = null;4082 java.lang.ThreadGroup threadGroup3 = null;4083 java.lang.ThreadGroup threadGroup4 = null;4084 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup4, "Succeeded to forking invoke provider !");4085 org.apache.dubbo.common.threadlocal.InternalThread internalThread9 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup3, (java.lang.Runnable) internalThread6, "value", 1L);4086 org.apache.dubbo.common.threadlocal.InternalThread internalThread11 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, (java.lang.Runnable) internalThread6, "method1");4087 org.apache.dubbo.common.threadlocal.InternalThread internalThread12 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread11);4088 org.apache.dubbo.common.threadlocal.InternalThread internalThread15 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread11, "set attachment failed!", (long) (short) 0);4089 java.lang.Class<?> wildcardClass16 = internalThread15.getClass();4090 org.mockito.verification.VerificationMode verificationMode18 = org.mockito.Mockito.atLeast((int) (short) 1);4091 // The following exception was thrown during execution in test generation4092 try {4093 java.lang.Class<?> wildcardClass19 = org.mockito.Mockito.verify(wildcardClass16, verificationMode18);4094 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Class and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");4095 } catch (org.mockito.exceptions.misusing.NotAMockException e) {4096 // Expected exception.4097 }4098 org.junit.Assert.assertNotNull(wildcardClass16);4099 org.junit.Assert.assertNotNull(verificationMode18);4100 }4101 @Test4102 public void test360() throws Throwable {4103 if (debug)4104 System.out.format("%n%s%n", "TestGroup100Case0.test360");4105 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.CALLS_REAL_METHODS;4106 // The following exception was thrown during execution in test generation4107 try {4108 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);4109 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4110 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4111 // Expected exception.4112 }4113 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.CALLS_REAL_METHODS + "'", objAnswer0.equals(org.mockito.Answers.CALLS_REAL_METHODS));4114 }4115 @Test4116 public void test361() throws Throwable {4117 if (debug)4118 System.out.format("%n%s%n", "TestGroup100Case0.test361");4119 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times((int) '4');4120 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();4121 org.mockito.MockSettings mockSettings3 = org.mockito.Mockito.withSettings();4122 java.lang.Class<?> wildcardClass4 = mockSettings3.getClass();4123 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.Mockito.timeout((long) (short) 100);4124 java.lang.String[] strArray7 = new java.lang.String[] {};4125 org.mockito.verification.VerificationWithTimeout verificationWithTimeout8 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout6, strArray7);4126 java.lang.reflect.AnnotatedElement annotatedElement9 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass4, strArray7);4127 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder10 = org.mockito.ArgumentMatchers.refEq(mockitoSessionBuilder2, strArray7);4128 // The following exception was thrown during execution in test generation4129 try {4130 org.mockito.stubbing.Stubber stubber11 = org.mockito.Mockito.doReturn((java.lang.Object) '4', (java.lang.Object[]) strArray7);4131 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4132 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4133 // Expected exception.4134 }4135 org.junit.Assert.assertNotNull(verificationMode1);4136 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);4137 org.junit.Assert.assertNotNull(mockSettings3);4138 org.junit.Assert.assertNotNull(wildcardClass4);4139 org.junit.Assert.assertNotNull(verificationWithTimeout6);4140 org.junit.Assert.assertNotNull(strArray7);4141 org.junit.Assert.assertNull(verificationWithTimeout8);4142 org.junit.Assert.assertNull(annotatedElement9);4143 org.junit.Assert.assertNull(mockitoSessionBuilder10);4144 }4145 @Test4146 public void test362() throws Throwable {4147 if (debug)4148 System.out.format("%n%s%n", "TestGroup100Case0.test362");4149 // The following exception was thrown during execution in test generation4150 try {4151 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (byte) -1);4152 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.FriendlyReminderException; message: ??Don't panic! I'm just a friendly reminder!?It is impossible for time to go backward, therefore...?You cannot put negative value of duration: (-1)?as argument of timer methods (after(), timeout())?");4153 } catch (org.mockito.exceptions.misusing.FriendlyReminderException e) {4154 // Expected exception.4155 }4156 }4157 @Test4158 public void test363() throws Throwable {4159 if (debug)4160 System.out.format("%n%s%n", "TestGroup100Case0.test363");4161 double double1 = org.mockito.ArgumentMatchers.eq((double) '#');4162 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);4163 }4164 @Test4165 public void test364() throws Throwable {4166 if (debug)4167 System.out.format("%n%s%n", "TestGroup100Case0.test364");4168 java.lang.Runnable runnable0 = org.mockito.ArgumentMatchers.anyVararg();4169 org.junit.Assert.assertNull(runnable0);4170 }4171 @Test4172 public void test365() throws Throwable {4173 if (debug)4174 System.out.format("%n%s%n", "TestGroup100Case0.test365");4175 java.lang.ThreadGroup threadGroup0 = null;4176 java.lang.ThreadGroup threadGroup1 = null;4177 java.lang.ThreadGroup threadGroup2 = null;4178 java.lang.ThreadGroup threadGroup3 = null;4179 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup3, "Succeeded to forking invoke provider !");4180 org.apache.dubbo.common.threadlocal.InternalThread internalThread8 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup2, (java.lang.Runnable) internalThread5, "value", 1L);4181 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap9 = internalThread8.threadLocalMap();4182 org.apache.dubbo.common.threadlocal.InternalThread internalThread12 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread8, "Too many thread-local indexed variables", (-1L));4183 org.apache.dubbo.common.threadlocal.InternalThread internalThread14 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread8, "Too many thread-local indexed variables");4184 org.apache.dubbo.common.threadlocal.InternalThread internalThread15 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread8);4185 org.junit.Assert.assertNull(internalThreadLocalMap9);4186 }4187 @Test4188 public void test366() throws Throwable {4189 if (debug)4190 System.out.format("%n%s%n", "TestGroup100Case0.test366");4191 java.lang.ThreadGroup threadGroup0 = null;4192 java.lang.ThreadGroup threadGroup1 = null;4193 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "Too many thread-local indexed variables");4194 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "clear attachment failed!", (long) (byte) 0);4195 }4196 @Test4197 public void test367() throws Throwable {4198 if (debug)4199 System.out.format("%n%s%n", "TestGroup100Case0.test367");4200 org.mockito.MockingDetails mockingDetails1 = org.mockito.Mockito.mockingDetails((java.lang.Object) (-1L));4201 org.junit.Assert.assertNotNull(mockingDetails1);4202 }4203 @Test4204 public void test368() throws Throwable {4205 if (debug)4206 System.out.format("%n%s%n", "TestGroup100Case0.test368");4207 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after(0L);4208 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.Mockito.timeout((long) '#');4209 // The following exception was thrown during execution in test generation4210 try {4211 org.mockito.verification.VerificationMode verificationMode4 = org.mockito.Mockito.verify((org.mockito.verification.VerificationMode) verificationAfterDelay1, (org.mockito.verification.VerificationMode) verificationWithTimeout3);4212 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type After and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");4213 } catch (org.mockito.exceptions.misusing.NotAMockException e) {4214 // Expected exception.4215 }4216 org.junit.Assert.assertNotNull(verificationAfterDelay1);4217 org.junit.Assert.assertNotNull(verificationWithTimeout3);4218 }4219 @Test4220 public void test369() throws Throwable {4221 if (debug)4222 System.out.format("%n%s%n", "TestGroup100Case0.test369");4223 java.lang.ThreadGroup threadGroup0 = null;4224 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "method1");4225 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);4226 java.lang.ThreadGroup threadGroup4 = null;4227 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");4228 org.apache.dubbo.common.threadlocal.InternalThread internalThread7 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread6);4229 org.apache.dubbo.common.threadlocal.InternalThread internalThread9 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup4, (java.lang.Runnable) internalThread6, "Succeeded to forking invoke provider !");4230 java.lang.ThreadGroup threadGroup10 = null;4231 org.apache.dubbo.common.threadlocal.InternalThread internalThread12 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");4232 org.apache.dubbo.common.threadlocal.InternalThread internalThread13 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread12);4233 org.apache.dubbo.common.threadlocal.InternalThread internalThread14 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup10, (java.lang.Runnable) internalThread13);4234 org.apache.dubbo.common.threadlocal.InternalThread internalThread15 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread14);4235 java.lang.ThreadGroup threadGroup16 = null;4236 org.apache.dubbo.common.threadlocal.InternalThread internalThread18 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");4237 org.apache.dubbo.common.threadlocal.InternalThread internalThread19 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread18);4238 org.apache.dubbo.common.threadlocal.InternalThread internalThread20 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup16, (java.lang.Runnable) internalThread19);4239 java.lang.ThreadGroup threadGroup21 = null;4240 org.apache.dubbo.common.threadlocal.InternalThread internalThread23 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup21, "Too many thread-local indexed variables");4241 org.apache.dubbo.common.threadlocal.InternalThread internalThread24 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread23);4242 java.lang.Runnable[] runnableArray25 = new java.lang.Runnable[] { internalThread2, internalThread9, internalThread14, internalThread19, internalThread24 };4243 // The following exception was thrown during execution in test generation4244 try {4245 org.mockito.Mockito.reset(runnableArray25);4246 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4247 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4248 // Expected exception.4249 }4250 org.junit.Assert.assertNotNull(runnableArray25);4251 }4252 @Test4253 public void test370() throws Throwable {4254 if (debug)4255 System.out.format("%n%s%n", "TestGroup100Case0.test370");4256 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("Failed to forking invoke provider");4257 org.junit.Assert.assertNotNull(verificationMode1);4258 }4259 @Test4260 public void test371() throws Throwable {4261 if (debug)4262 System.out.format("%n%s%n", "TestGroup100Case0.test371");4263 java.lang.Throwable[] throwableArray0 = new java.lang.Throwable[] {};4264 org.mockito.stubbing.Stubber stubber1 = null; // flaky: org.mockito.Mockito.doThrow(throwableArray0);4265 org.mockito.stubbing.BaseStubber baseStubber2 = null; // flaky: org.mockito.Mockito.spy((org.mockito.stubbing.BaseStubber) stubber1);4266 org.junit.Assert.assertNotNull(throwableArray0);4267// flaky: org.junit.Assert.assertNotNull(stubber1);4268// flaky: org.junit.Assert.assertNotNull(baseStubber2);4269 }4270 @Test4271 public void test372() throws Throwable {4272 if (debug)4273 System.out.format("%n%s%n", "TestGroup100Case0.test372");4274 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray0 = new org.mockito.session.MockitoSessionBuilder[] {};4275 org.mockito.Mockito.clearInvocations(mockitoSessionBuilderArray0);4276 // The following exception was thrown during execution in test generation4277 try {4278 org.mockito.Mockito.verifyZeroInteractions((java.lang.Object[]) mockitoSessionBuilderArray0);4279 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");4280 } catch (org.mockito.exceptions.base.MockitoException e) {4281 // Expected exception.4282 }4283 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray0);4284 }4285 @Test4286 public void test373() throws Throwable {4287 if (debug)4288 System.out.format("%n%s%n", "TestGroup100Case0.test373");4289 java.util.Map<java.util.Set<java.lang.Comparable<java.lang.String>>, org.mockito.MockSettings> strComparableSetMap0 = org.mockito.ArgumentMatchers.isNotNull();4290 org.junit.Assert.assertNull(strComparableSetMap0);4291 }4292 @Test4293 public void test374() throws Throwable {4294 if (debug)4295 System.out.format("%n%s%n", "TestGroup100Case0.test374");4296 org.mockito.ArgumentMatchers argumentMatchers0 = org.mockito.ArgumentMatchers.anyObject();4297 org.junit.Assert.assertNull(argumentMatchers0);4298 }4299 @Test4300 public void test375() throws Throwable {4301 if (debug)4302 System.out.format("%n%s%n", "TestGroup100Case0.test375");4303 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout(100L);4304 org.junit.Assert.assertNotNull(verificationWithTimeout1);4305 }4306 @Test4307 public void test376() throws Throwable {4308 if (debug)4309 System.out.format("%n%s%n", "TestGroup100Case0.test376");4310 org.mockito.MockSettings mockSettings0 = org.mockito.Mockito.withSettings();4311 java.lang.Class<?> wildcardClass1 = mockSettings0.getClass();4312 org.mockito.verification.VerificationWithTimeout verificationWithTimeout3 = org.mockito.Mockito.timeout((long) (short) 100);4313 java.lang.String[] strArray4 = new java.lang.String[] {};4314 org.mockito.verification.VerificationWithTimeout verificationWithTimeout5 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout3, strArray4);4315 java.lang.reflect.AnnotatedElement annotatedElement6 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass1, strArray4);4316 org.mockito.MockSettings mockSettings7 = org.mockito.Mockito.withSettings();4317 java.lang.Class<?> wildcardClass8 = mockSettings7.getClass();4318 org.mockito.verification.VerificationWithTimeout verificationWithTimeout10 = org.mockito.Mockito.timeout((long) (short) 100);4319 java.lang.String[] strArray11 = new java.lang.String[] {};4320 org.mockito.verification.VerificationWithTimeout verificationWithTimeout12 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout10, strArray11);4321 java.lang.reflect.AnnotatedElement annotatedElement13 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass8, strArray11);4322 java.lang.reflect.AnnotatedElement annotatedElement14 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass1, strArray11);4323 org.junit.Assert.assertNotNull(mockSettings0);4324 org.junit.Assert.assertNotNull(wildcardClass1);4325 org.junit.Assert.assertNotNull(verificationWithTimeout3);4326 org.junit.Assert.assertNotNull(strArray4);4327 org.junit.Assert.assertNull(verificationWithTimeout5);4328 org.junit.Assert.assertNull(annotatedElement6);4329 org.junit.Assert.assertNotNull(mockSettings7);4330 org.junit.Assert.assertNotNull(wildcardClass8);4331 org.junit.Assert.assertNotNull(verificationWithTimeout10);4332 org.junit.Assert.assertNotNull(strArray11);4333 org.junit.Assert.assertNull(verificationWithTimeout12);4334 org.junit.Assert.assertNull(annotatedElement13);4335 org.junit.Assert.assertNull(annotatedElement14);4336 }4337 @Test4338 public void test377() throws Throwable {4339 if (debug)4340 System.out.format("%n%s%n", "TestGroup100Case0.test377");4341 java.lang.Runnable runnable0 = org.mockito.ArgumentMatchers.isNull();4342 org.junit.Assert.assertNull(runnable0);4343 }4344 @Test4345 public void test378() throws Throwable {4346 if (debug)4347 System.out.format("%n%s%n", "TestGroup100Case0.test378");4348 long long1 = org.mockito.ArgumentMatchers.eq((long) '#');4349 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);4350 }4351 @Test4352 public void test379() throws Throwable {4353 if (debug)4354 System.out.format("%n%s%n", "TestGroup100Case0.test379");4355 java.lang.ThreadGroup threadGroup0 = null;4356 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "Too many thread-local indexed variables");4357 java.lang.Class<?> wildcardClass3 = internalThread2.getClass();4358 org.mockito.verification.VerificationMode verificationMode5 = org.mockito.Mockito.description("method1");4359 // The following exception was thrown during execution in test generation4360 try {4361 java.lang.reflect.AnnotatedElement annotatedElement6 = org.mockito.Mockito.verify((java.lang.reflect.AnnotatedElement) wildcardClass3, verificationMode5);4362 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Class and is not a mock!?Make sure you place the parenthesis correctly!?See the examples of correct verifications:? verify(mock).someMethod();? verify(mock, times(10)).someMethod();? verify(mock, atLeastOnce()).someMethod();");4363 } catch (org.mockito.exceptions.misusing.NotAMockException e) {4364 // Expected exception.4365 }4366 org.junit.Assert.assertNotNull(wildcardClass3);4367 org.junit.Assert.assertNotNull(verificationMode5);4368 }4369 @Test4370 public void test380() throws Throwable {4371 if (debug)4372 System.out.format("%n%s%n", "TestGroup100Case0.test380");4373 // The following exception was thrown during execution in test generation4374 try {4375 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) (byte) -1);4376 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: Negative value is not allowed here");4377 } catch (org.mockito.exceptions.base.MockitoException e) {4378 // Expected exception.4379 }4380 }4381 @Test4382 public void test381() throws Throwable {4383 if (debug)4384 System.out.format("%n%s%n", "TestGroup100Case0.test381");4385 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast((int) '4');4386 org.junit.Assert.assertNotNull(verificationMode1);4387 }4388 @Test4389 public void test382() throws Throwable {4390 if (debug)4391 System.out.format("%n%s%n", "TestGroup100Case0.test382");4392 java.lang.ThreadGroup threadGroup0 = null;4393 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "Succeeded to forking invoke provider !");4394 java.lang.Thread thread3 = org.mockito.ArgumentMatchers.eq((java.lang.Thread) internalThread2);4395 org.junit.Assert.assertNull(thread3);4396 }4397 @Test4398 public void test383() throws Throwable {4399 if (debug)4400 System.out.format("%n%s%n", "TestGroup100Case0.test383");4401 java.lang.ThreadGroup threadGroup0 = null;4402 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, "Succeeded to forking invoke provider !");4403 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2, "Succeeded to forking invoke provider !");4404 org.apache.dubbo.common.threadlocal.InternalThreadLocalMap internalThreadLocalMap5 = internalThread2.threadLocalMap();4405 org.junit.Assert.assertNull(internalThreadLocalMap5);4406 }4407 @Test4408 public void test384() throws Throwable {4409 if (debug)4410 System.out.format("%n%s%n", "TestGroup100Case0.test384");4411 org.apache.dubbo.common.threadlocal.InternalThread internalThread1 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");4412 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1);4413 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread1, "Succeeded to forking invoke provider !");4414 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread4, "");4415 }4416 @Test4417 public void test385() throws Throwable {4418 if (debug)4419 System.out.format("%n%s%n", "TestGroup100Case0.test385");4420 java.lang.Thread[] threadArray0 = new java.lang.Thread[] {};4421// flaky: org.mockito.Mockito.reset(threadArray0);4422 org.junit.Assert.assertNotNull(threadArray0);4423 }4424 @Test4425 public void test386() throws Throwable {4426 if (debug)4427 System.out.format("%n%s%n", "TestGroup100Case0.test386");4428 java.lang.Iterable<org.mockito.Mockito> mockitoIterable0 = org.mockito.ArgumentMatchers.anyIterable();4429 org.mockito.MockSettings mockSettings1 = org.mockito.Mockito.withSettings();4430 java.lang.Class<?> wildcardClass2 = mockSettings1.getClass();4431 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.Mockito.timeout((long) (short) 100);4432 java.lang.String[] strArray5 = new java.lang.String[] {};4433 org.mockito.verification.VerificationWithTimeout verificationWithTimeout6 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout4, strArray5);4434 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.AnnotatedElement) wildcardClass2, strArray5);4435 java.lang.Iterable<org.mockito.Mockito> mockitoIterable8 = org.mockito.ArgumentMatchers.refEq(mockitoIterable0, strArray5);4436 java.lang.Iterable<org.mockito.Mockito> mockitoIterable9 = org.mockito.ArgumentMatchers.eq(mockitoIterable0);4437 org.junit.Assert.assertNotNull(mockitoIterable0);4438 org.junit.Assert.assertNotNull(mockSettings1);4439 org.junit.Assert.assertNotNull(wildcardClass2);4440 org.junit.Assert.assertNotNull(verificationWithTimeout4);4441 org.junit.Assert.assertNotNull(strArray5);4442 org.junit.Assert.assertNull(verificationWithTimeout6);4443 org.junit.Assert.assertNull(annotatedElement7);4444 org.junit.Assert.assertNull(mockitoIterable8);4445 org.junit.Assert.assertNull(mockitoIterable9);4446 }4447 @Test4448 public void test387() throws Throwable {4449 if (debug)4450 System.out.format("%n%s%n", "TestGroup100Case0.test387");4451 java.lang.ThreadGroup threadGroup0 = null;4452 java.lang.ThreadGroup threadGroup1 = null;4453 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, "Succeeded to forking invoke provider !");4454 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "value", 1L);4455 org.mockito.MockingDetails mockingDetails7 = org.mockito.Mockito.mockingDetails((java.lang.Object) internalThread3);4456 // The following exception was thrown during execution in test generation4457 try {4458 org.mockito.stubbing.OngoingStubbing<org.mockito.MockingDetails> mockingDetailsOngoingStubbing8 = org.mockito.Mockito.when(mockingDetails7);4459 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4460 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4461 // Expected exception.4462 }4463 org.junit.Assert.assertNotNull(mockingDetails7);4464 }4465 @Test4466 public void test388() throws Throwable {4467 if (debug)4468 System.out.format("%n%s%n", "TestGroup100Case0.test388");4469 float float1 = org.mockito.ArgumentMatchers.eq((float) (byte) 1);4470 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);4471 }4472 @Test4473 public void test389() throws Throwable {4474 if (debug)4475 System.out.format("%n%s%n", "TestGroup100Case0.test389");4476 org.mockito.MockitoFramework mockitoFramework0 = org.mockito.Mockito.framework();4477 org.mockito.MockitoFramework mockitoFramework1 = org.mockito.ArgumentMatchers.eq(mockitoFramework0);4478 // The following exception was thrown during execution in test generation4479 try {4480 org.mockito.MockitoFramework mockitoFramework2 = org.mockito.Mockito.spy(mockitoFramework0);4481 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4482 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4483 // Expected exception.4484 }4485 org.junit.Assert.assertNotNull(mockitoFramework0);4486 org.junit.Assert.assertNull(mockitoFramework1);4487 }4488 @Test4489 public void test390() throws Throwable {4490 if (debug)4491 System.out.format("%n%s%n", "TestGroup100Case0.test390");4492 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) '4');4493 org.junit.Assert.assertNotNull(verificationMode1);4494 }4495 @Test4496 public void test391() throws Throwable {4497 if (debug)4498 System.out.format("%n%s%n", "TestGroup100Case0.test391");4499 java.lang.ThreadGroup threadGroup0 = null;4500 org.apache.dubbo.common.threadlocal.InternalThread internalThread2 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");4501 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread2);4502 org.apache.dubbo.common.threadlocal.InternalThread internalThread5 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread2, "Succeeded to forking invoke provider !");4503 // The following exception was thrown during execution in test generation4504 try {4505 org.mockito.stubbing.OngoingStubbing<java.lang.Runnable> runnableOngoingStubbing6 = org.mockito.Mockito.when((java.lang.Runnable) internalThread5);4506 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.MissingMethodInvocationException; message: ?when() requires an argument which has to be 'a method call on a mock'.?For example:? when(mock.getArticles()).thenReturn(articles);??Also, this error might show up because:?1. you stub either of: final/private/equals()/hashCode() methods.? Those methods *cannot* be stubbed/verified.? Mocking methods declared on non-public parent classes is not supported.?2. inside when() you don't call method on mock but on some other object.?");4507 } catch (org.mockito.exceptions.misusing.MissingMethodInvocationException e) {4508 // Expected exception.4509 }4510 }4511 @Test4512 public void test392() throws Throwable {4513 if (debug)4514 System.out.format("%n%s%n", "TestGroup100Case0.test392");4515 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) (short) 100);4516 org.junit.Assert.assertNotNull(verificationMode1);4517 }4518 @Test4519 public void test393() throws Throwable {4520 if (debug)4521 System.out.format("%n%s%n", "TestGroup100Case0.test393");4522 java.util.Map<org.mockito.MockingDetails, java.lang.Throwable[]> mockingDetailsMap0 = org.mockito.ArgumentMatchers.anyMap();4523 java.lang.Class<?> wildcardClass1 = mockingDetailsMap0.getClass();4524 org.junit.Assert.assertNotNull(mockingDetailsMap0);4525 org.junit.Assert.assertNotNull(wildcardClass1);4526 }4527 @Test4528 public void test394() throws Throwable {4529 if (debug)4530 System.out.format("%n%s%n", "TestGroup100Case0.test394");4531 java.io.Serializable serializable1 = org.mockito.ArgumentMatchers.same((java.io.Serializable) (short) 0);4532 org.junit.Assert.assertEquals("'" + serializable1 + "' != '" + (short) 0 + "'", serializable1, (short) 0);4533 }4534 @Test4535 public void test395() throws Throwable {4536 if (debug)4537 System.out.format("%n%s%n", "TestGroup100Case0.test395");4538 org.mockito.verification.VerificationWithTimeout verificationWithTimeout2 = org.mockito.Mockito.timeout((long) (short) 100);4539 java.lang.String[] strArray3 = new java.lang.String[] {};4540 org.mockito.verification.VerificationWithTimeout verificationWithTimeout4 = org.mockito.ArgumentMatchers.refEq(verificationWithTimeout2, strArray3);4541 java.lang.CharSequence charSequence5 = org.mockito.ArgumentMatchers.refEq((java.lang.CharSequence) "", strArray3);4542 // The following exception was thrown during execution in test generation4543 try {4544 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray3);4545 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Method requires argument(s)!?Pass mocks that should be verified, e.g:? verifyNoMoreInteractions(mockOne, mockTwo);? verifyNoInteractions(mockOne, mockTwo);?");4546 } catch (org.mockito.exceptions.base.MockitoException e) {4547 // Expected exception.4548 }4549 org.junit.Assert.assertNotNull(verificationWithTimeout2);4550 org.junit.Assert.assertNotNull(strArray3);4551 org.junit.Assert.assertNull(verificationWithTimeout4);4552 org.junit.Assert.assertNull(charSequence5);4553 }4554 @Test4555 public void test396() throws Throwable {4556 if (debug)4557 System.out.format("%n%s%n", "TestGroup100Case0.test396");4558 java.lang.ThreadGroup threadGroup0 = null;4559 java.lang.ThreadGroup threadGroup1 = null;4560 org.apache.dubbo.common.threadlocal.InternalThread internalThread3 = new org.apache.dubbo.common.threadlocal.InternalThread("attach");4561 org.apache.dubbo.common.threadlocal.InternalThread internalThread4 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread3);4562 org.apache.dubbo.common.threadlocal.InternalThread internalThread6 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread3, "Succeeded to forking invoke provider !");4563 org.apache.dubbo.common.threadlocal.InternalThread internalThread8 = new org.apache.dubbo.common.threadlocal.InternalThread((java.lang.Runnable) internalThread3, "Failed to forking invoke provider");4564 org.apache.dubbo.common.threadlocal.InternalThread internalThread11 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup1, (java.lang.Runnable) internalThread3, "attach", (long) 1);4565 org.apache.dubbo.common.threadlocal.InternalThread internalThread13 = new org.apache.dubbo.common.threadlocal.InternalThread(threadGroup0, (java.lang.Runnable) internalThread3, "Failed to forking invoke provider");4566 }4567 @Test4568 public void test397() throws Throwable {4569 if (debug)4570 System.out.format("%n%s%n", "TestGroup100Case0.test397");4571 // The following exception was thrown during execution in test generation4572 try {4573 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doReturn((java.lang.Object) (byte) 100);4574 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)??You cannot use argument matchers outside of verification or stubbing.?Examples of correct usage of argument matchers:? when(mock.get(anyInt())).thenReturn(null);? doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());? verify(mock).someMethod(contains(\"foo\"))??This message may appear after an NullPointerException if the last matcher is returning an object ?like any() but the stubbed method signature expect a primitive argument, in this case,?use primitive alternatives.? when(mock.get(any())); // bad use, will raise NPE? when(mock.get(anyInt())); // correct usage use??Also, this error might show up because you use argument matchers with methods that cannot be mocked.?Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().?Mocking methods declared on non-public parent classes is not supported.?");4575 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4576 // Expected exception.4577 }4578 }4579 @Test4580 public void test398() throws Throwable {4581 if (debug)4582 System.out.format("%n%s%n", "TestGroup100Case0.test398");4583 java.lang.ThreadGroup threadGroup0 = null;4584 java.lang.ThreadGroup threadGroup1 = null;4585 java.lang.ThreadGroup threadGroup2 = null;4586 java.lang.ThreadGroup threadGroup3 = null;4587 java.lang.ThreadGroup threadGroup4 = null;4588 java.lang.ThreadGroup threadGroup5 = null;...
Source:DefaultLenientStubber.java
...11import org.mockito.stubbing.Stubber;12public class DefaultLenientStubber implements LenientStubber {13 private static final MockitoCore MOCKITO_CORE = new MockitoCore();14 @Override15 public Stubber doThrow(Throwable... toBeThrown) {16 return stubber().doThrow(toBeThrown);17 }18 @Override19 public Stubber doThrow(Class<? extends Throwable> toBeThrown) {20 return stubber().doThrow(toBeThrown);21 }22 @Override23 public Stubber doThrow(24 Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrown) {25 return stubber().doThrow(toBeThrown, nextToBeThrown);26 }27 @Override28 public Stubber doAnswer(Answer answer) {29 return stubber().doAnswer(answer);30 }31 @Override32 public Stubber doNothing() {33 return stubber().doNothing();34 }35 @Override36 public Stubber doReturn(Object toBeReturned) {37 return stubber().doReturn(toBeReturned);38 }39 @Override...
doThrow
Using AI Code Generation
1import org.mockito.internal.stubbing.DefaultLenientStubber;2import org.mockito.internal.stubbing.answers.ThrowsException;3import org.mockito.invocation.InvocationOnMock;4import org.mockito.stubbing.Answer;5import org.mockito.stubbing.OngoingStubbing;6import java.util.ArrayList;7import java.util.List;8import org.mockito.Mockito;9import org.mockito.stubbing.Stubber;10{11public static void main(String[] args)12{13List<String> mock = Mockito.mock(ArrayList.class);14DefaultLenientStubber.doThrow(new Throwable()).when(mock).clear();15}16}17at org.mockito.internal.stubbing.DefaultLenientStubber.doThrow(DefaultLenientStubber.java:29)18at Main.main(Main.java:24)19Recommended Posts: Mockito - doThrow() method20Mockito - doAnswer() method21Mockito - doCallRealMethod() method
doThrow
Using AI Code Generation
1import org.mockito.internal.stubbing.DefaultLenientStubber;2import org.mockito.Mockito;3import org.mockito.stubbing.OngoingStubbing;4import org.mockito.stubbing.Stubber;5import org.mockito.internal.stubbing.answers.ThrowsException;6import org.mockito.invocation.InvocationOnMock;7import org.mockito.stubbing.Answer;8public class 1 {9 public static void main(String[] args) {10 DefaultLenientStubber defaultLenientStubber = new DefaultLenientStubber();11 defaultLenientStubber.doThrow(new RuntimeException("exception message")).when(mock);12 Mockito.doThrow(new RuntimeException("exception message")).when(mock);13 OngoingStubbing ongoingStubbing = Mockito.when(mock);14 OngoingStubbing doThrow = ongoingStubbing.doThrow(new RuntimeException("exception message"));15 Stubber stubber = Mockito.doThrow(new RuntimeException("exception message"));16 ThrowsException throwsException = new ThrowsException(new RuntimeException("exception message"));17 InvocationOnMock invocationOnMock = Mockito.mock(InvocationOnMock.class);18 Answer doThrow = invocationOnMock.doThrow(new RuntimeException("exception message"));19 Answer doThrow = Mockito.doThrow(new RuntimeException("exception message"));20 }21}
doThrow
Using AI Code Generation
1import org.mockito.internal.stubbing.DefaultLenientStubber;2import org.mockito.Mockito;3import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;4import org.mockito.exceptions.misusing.UnfinishedStubbingException;5import org.mockito.exceptions.misusing.UnfinishedVerificationException;6import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;7import org.mockito.exceptions.verification.junit.NoInteractionsWanted;8import org.mockito.exceptions.verification.junit.TooLittleActualInvocations;9import org.mockito.exceptions.verification.junit.TooManyActualInvocations;10import org.mockito.exceptions.verification.junit.WantedButNotInvoked;11import org.mockito.exceptions.verification.junit.WantedButNotInvokedInOrder;12import org.mockito.exceptions.verification.junit.WantedButNotInvokedInOrderNoMoreInteractionsAllowed;13import org.mockito.exceptions.verification.junit.WantedButNotInvokedNoMoreInteractionsAllowed;14import org.mockito.exceptions.verification.junit.WantedButNotInvokedNumberOfTimes;15import org.mockito.exceptions.verification.junit.WantedButNotInvokedNumberOfTimesInOrder;16import org.mockito.exceptions.verification.junit.WantedButNotNotified;17import org.mockito.exceptions.verification.junit.WantedButNotNotifiedInOrder;18import org.mockito.exceptions.verification.junit.WantedButNotNotifiedInOrderNoMoreInteractionsAllowed;19import org.mockito.exceptions.verification.junit.WantedButNotNotifiedNoMoreInteractionsAllowed;20import org.mockito.exceptions.verification.junit.WantedButNotNotifiedNumberOfTimes;21import org.mockito.exceptions.verification.junit.WantedButNotNotifiedNumberOfTimesInOrder;22import org.mockito.exceptions.verification.junit.WantedButNotRetrieved;23import org.mockito.exceptions.verification.junit.WantedButNotRetrievedInOrder;24import org.mockito.exceptions.verification.junit.WantedButNotRetrievedInOrderNoMoreInteractionsAllowed;25import org.mockito.exceptions.verification.junit.WantedButNotRetrievedNoMoreInteractionsAllowed;26import org.mockito.exceptions.verification.junit.WantedButNotRetrievedNumberOfTimes;27import org.mockito.exceptions.verification.junit.WantedButNotRetrievedNumberOfTimesInOrder;28import org.mockito.exceptions.verification.junit.WantedButNotVerified;29import org.mockito.exceptions.verification.junit.WantedButNotVerifiedInOrder;30import org.mockito.exceptions.verification.junit.WantedButNotVerifiedInOrderNoMoreInteractionsAllowed;31import org.mockito.exceptions.verification.junit.WantedButNotVerifiedNoMoreInteractionsAllowed;32import org.mockito.exceptions.verification.junit.WantedButNotVerifiedNumberOf
doThrow
Using AI Code Generation
1package com.automationrhapsody.mockito;2import static org.mockito.Mockito.doThrow;3import java.io.IOException;4import org.junit.Test;5import org.junit.runner.RunWith;6import org.mockito.Mockito;7import org.mockito.runners.MockitoJUnitRunner;8@RunWith(MockitoJUnitRunner.class)9public class MockitoDoThrowTest {10 public void testDoThrow() throws IOException {11 ClassUnderTest mock = Mockito.mock(ClassUnderTest.class);12 doThrow(new IOException()).when(mock).methodToTest();13 mock.methodToTest();14 }15}16package com.automationrhapsody.mockito;17import static org.mockito.Mockito.doThrow;18import java.io.IOException;19import org.junit.Test;20import org.junit.runner.RunWith;21import org.mockito.Mock;22import org.mockito.runners.MockitoJUnitRunner;23@RunWith(MockitoJUnitRunner.class)24public class MockitoDoThrowTest {25 private ClassUnderTest mock;26 public void testDoThrow() throws IOException {27 doThrow(new IOException()).when(mock).methodToTest();28 mock.methodToTest();29 }30}31package com.automationrhapsody.mockito;32import static org.mockito.Mockito.doThrow;33import java.io.IOException;34import org.junit.Test;35import org.junit.runner.RunWith;36import org.mockito.Mock;37import org.mockito.runners.MockitoJUnitRunner;38@RunWith(MockitoJUnitRunner.class)39public class MockitoDoThrowTest {40 private ClassUnderTest mock;41 public void testDoThrow() throws IOException {42 doThrow(IOException.class).when(mock).methodToTest();43 mock.methodToTest();44 }45}46package com.automationrhapsody.mockito;47import static org.mockito.Mockito.doThrow;48import java.io.IOException;49import org.junit.Test;50import org.junit.runner.RunWith;51import org.mockito.Mock;52import org.mockito
doThrow
Using AI Code Generation
1package org.mockito.internal.stubbing;2import org.mockito.stubbing.OngoingStubbing;3import org.mockito.exceptions.base.MockitoException;4import org.mockito.internal.invocation.InvocationMatcher;5import org.mockito.internal.invocation.Invocation;6import org.mockito.internal.invocation.InvocationsFinder;7import org.mockito.internal.invocation.InvocationBuilder;8import org.mockito.internal.invocation.InvocationImpl;9import org.mockito.internal.invocation.InvocationMatcher;10import org.mockito.internal.invocation.InvocationsFinder;11import org.mockito.internal.invocation.InvocationsFinder;12import org.mockito.internal.invocation.InvocationsFinder;13import org.mockito.internal.invocation.InvocationBuilder;14import org.mockito.internal.invocation.InvocationImpl;15import org.mockito.internal.invocation.InvocationMatcher;16import org.mockito.internal.invocation.InvocationsFinder;17import org.mockito.internal.invocation.InvocationsFinder;18import org.mockito.internal.invocation.InvocationsFinder;19import org.mockito.internal.invocation.InvocationBuilder;20import org.mockito.internal.invocation.InvocationImpl;21import org.mockito.internal.invocation.InvocationMatcher;22import org.mockito.internal.invocation.InvocationsFinder;23import org.mockito.internal.invocation.InvocationsFinder;24import org.mockito.internal.invocation.InvocationsFinder;25import org.mockito.internal.invocation.InvocationBuilder;26import org.mockito.internal.invocation.InvocationImpl;27import org.mockito.internal.invocation.InvocationMatcher;28import org.mockito.internal.invocation.InvocationsFinder;29import org.mockito.internal.invocation.InvocationsFinder;30import org.mockito.internal.invocation.InvocationsFinder;31import org.mockito.internal.invocation.InvocationBuilder;32import org.mockito.internal.invocation.InvocationImpl;33import org.mockito.internal.invocation.InvocationMatcher;34import org.mockito.internal.invocation.InvocationsFinder;35import org.mockito.internal.invocation.InvocationsFinder;36import org.mockito.internal.invocation.InvocationsFinder;37import org.mockito.internal.invocation.InvocationBuilder;38import org.mockito.internal.invocation.InvocationImpl;39import org.mockito.internal.invocation.InvocationMatcher;40import org.mockito.internal.invocation.InvocationsFinder;41import org.mockito.internal.invocation.InvocationsFinder;42import org.mockito.internal.invocation.InvocationsFinder;43import org.mockito.internal.invocation.InvocationBuilder;44import org.mockito.internal.invocation.InvocationImpl;45import org.mockito.internal.invocation.InvocationMatcher;46import org.mockito.internal.invocation.InvocationsFinder;47import org.mockito.internal.invocation.InvocationsFinder;48import org.mockito.internal.invocation.InvocationsFinder;49import org.mockito.internal.invocation.InvocationBuilder;50import org.mockito.internal.invocation.InvocationImpl;51import org.mockito.internal
doThrow
Using AI Code Generation
1import org.mockito.internal.stubbing.DefaultLenientStubber;2import org.mockito.stubbing.OngoingStubbing;3import org.mockito.stubbing.Stubber;4public class DoThrowExample {5 public static void main(String[] args) {6 Stubber stubber = new DefaultLenientStubber();7 OngoingStubbing<String> ongoingStubbing = stubber.doThrow(new RuntimeException());8 System.out.println(ongoingStubbing);9 }10}
doThrow
Using AI Code Generation
1package com.automationrhapsody.mockito;2import static org.mockito.Mockito.doThrow;3import static org.mockito.Mockito.mock;4public class MockitoDoThrowExample {5 public static void main(String[] args) {6 Person person = mock(Person.class);7 doThrow(new RuntimeException()).when(person).save();8 person.save();9 }10}11package com.automationrhapsody.mockito;12import static org.mockito.Mockito.doThrow;13import static org.mockito.Mockito.mock;14public class MockitoDoThrowExample {15 public static void main(String[] args) {16 Person person = mock(Person.class);17 doThrow(new RuntimeException()).when(person).save();18 person.save();19 }20}21package com.automationrhapsody.mockito;22import static org.mockito.Mockito.doThrow;23import static org.mockito.Mockito.mock;24public class MockitoDoThrowExample {25 public static void main(String[] args) {26 Person person = mock(Person.class);27 doThrow(new RuntimeException()).when(person).save();28 person.save();29 }30}31package com.automationrhapsody.mockito;32import static org.mockito.Mockito.doThrow;33import static org.mockito.Mockito.mock;34public class MockitoDoThrowExample {35 public static void main(String[] args) {36 Person person = mock(Person.class);37 doThrow(new RuntimeException()).when(person).save();38 person.save();39 }40}41package com.automationrhapsody.mockito;42import static org.mockito.Mockito.doThrow;43import static org.mockito.Mockito.mock;44public class MockitoDoThrowExample {45 public static void main(String[] args) {46 Person person = mock(Person.class);47 doThrow(new RuntimeException()).when(person).save();48 person.save();49 }50}51package com.automationrhapsody.mockito;52import static org.mockito.Mockito.doThrow;53import static org.mockito.Mockito.mock;54public class MockitoDoThrowExample {55 public static void main(String[]
doThrow
Using AI Code Generation
1import org.mockito.Mockito;2import org.mockito.stubbing.OngoingStubbing;3public class MockitoDoThrowExample {4 public static void main(String[] args) {5 MyClass test = Mockito.mock(MyClass.class);6 try {7 test.method();8 } catch (Exception e) {9 System.out.println("Exception thrown");10 }11 OngoingStubbing stubbing = Mockito.doThrow(new Exception()).when(test).method();12 try {13 test.method();14 } catch (Exception e) {15 System.out.println("Exception thrown");16 }17 }18}
doThrow
Using AI Code Generation
1package com.acko;2import static org.mockito.Mockito.doThrow;3import static org.mockito.Mockito.mock;4public class DoThrow {5 public static void main(String[] args) {6 ClassToTest test = mock(ClassToTest.class);7 doThrow(new RuntimeException()).when(test).methodToThrowException();8 test.methodToThrowException();9 }10}11package com.acko;12import static org.mockito.Mockito.doThrow;13import static org.mockito.Mockito.mock;14public class DoThrow {15 public static void main(String[] args) {16 ClassToTest test = mock(ClassToTest.class);17 doThrow(new RuntimeException()).when(test).methodToThrowException();18 test.methodToThrowException();19 }20}21package com.acko;22import static org.mockito.Mockito.doThrow;23import static org.mockito.Mockito.mock;24public class DoThrow {25 public static void main(String[] args) {26 ClassToTest test = mock(ClassToTest.class);27 doThrow(new RuntimeException()).when(test).methodToThrowException();28 test.methodToThrowException();29 }30}31package com.acko;32import static org.mockito.Mockito.doThrow;33import static org.mockito.Mockito.mock;34public class DoThrow {35 public static void main(String[] args) {36 ClassToTest test = mock(ClassToTest.class);37 doThrow(new RuntimeException()).when(test).methodToThrowException();38 test.methodToThrowException();39 }40}41package com.acko;42import static org.mockito.Mockito.doThrow;43import static org.mockito.Mockito.mock;44public class DoThrow {45 public static void main(String[] args) {
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!