How to use MockitoSessionBuilder class of org.mockito.session package

Best Mockito code snippet using org.mockito.session.MockitoSessionBuilder

Source:TestGroup100Case0.java Github

copy

Full Screen

...2137 if (debug)2138 System.out.format("%n%s%n", "TestGroup100Case0.test260");2139 // The following exception was thrown during execution in test generation2140 try {2141 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet1 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>((-1));2142 org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: null");2143 } catch (java.lang.IllegalArgumentException e) {2144 // Expected exception.2145 }2146 }2147 @Test2148 public void test261() throws Throwable {2149 if (debug)2150 System.out.format("%n%s%n", "TestGroup100Case0.test261");2151 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.Mockito.atMostOnce();2152 java.lang.Class<?> wildcardClass1 = verificationMode0.getClass();2153 java.lang.String[] strArray7 = new java.lang.String[] { "true", "dubbo.migration.file", "s*[,]+s*", "Can't create adaptive extension", "org.apache" };2154 java.lang.reflect.Type type8 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.Type) wildcardClass1, strArray7);2155 // The following exception was thrown during execution in test generation2156 try {2157 org.mockito.Mockito.verifyNoMoreInteractions((java.lang.Object[]) strArray7);2158 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.?");2159 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2160 // Expected exception.2161 }2162 org.junit.Assert.assertNotNull(verificationMode0);2163 org.junit.Assert.assertNotNull(wildcardClass1);2164 org.junit.Assert.assertNotNull(strArray7);2165 org.junit.Assert.assertNull(type8);2166 }2167 @Test2168 public void test262() throws Throwable {2169 if (debug)2170 System.out.format("%n%s%n", "TestGroup100Case0.test262");2171 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;2172 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "version" + "'", str0, "version");2173 }2174 @Test2175 public void test263() throws Throwable {2176 if (debug)2177 System.out.format("%n%s%n", "TestGroup100Case0.test263");2178 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) 10);2179 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);2180 }2181 @Test2182 public void test264() throws Throwable {2183 if (debug)2184 System.out.format("%n%s%n", "TestGroup100Case0.test264");2185 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.GENERIC_SERIALIZATION_NATIVE_JAVA;2186 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "nativejava" + "'", str0, "nativejava");2187 }2188 @Test2189 public void test265() throws Throwable {2190 if (debug)2191 System.out.format("%n%s%n", "TestGroup100Case0.test265");2192 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.SIDE_KEY;2193 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "side" + "'", str0, "side");2194 }2195 @Test2196 public void test266() throws Throwable {2197 if (debug)2198 System.out.format("%n%s%n", "TestGroup100Case0.test266");2199 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.IO_THREADS_KEY;2200 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "iothreads" + "'", str0, "iothreads");2201 }2202 @Test2203 public void test267() throws Throwable {2204 if (debug)2205 System.out.format("%n%s%n", "TestGroup100Case0.test267");2206 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) '4');2207 org.junit.Assert.assertNotNull(verificationWithTimeout1);2208 }2209 @Test2210 public void test268() throws Throwable {2211 if (debug)2212 System.out.format("%n%s%n", "TestGroup100Case0.test268");2213 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.ALIVE_KEY;2214 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "alive" + "'", str0, "alive");2215 }2216 @Test2217 public void test269() throws Throwable {2218 if (debug)2219 System.out.format("%n%s%n", "TestGroup100Case0.test269");2220 java.lang.String str1 = org.mockito.ArgumentMatchers.matches("composite");2221 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2222 }2223 @Test2224 public void test270() throws Throwable {2225 if (debug)2226 System.out.format("%n%s%n", "TestGroup100Case0.test270");2227 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();2228 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();2229 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);2230 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray3 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0, mockitoSessionBuilder2 };2231 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList4 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2232 boolean boolean5 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList4, mockitoSessionBuilderArray3);2233 java.util.Map[] mapArray7 = new java.util.Map[0];2234 @SuppressWarnings("unchecked")2235 java.util.Map<java.io.Serializable, java.io.Serializable>[] serializableMapArray8 = (java.util.Map<java.io.Serializable, java.io.Serializable>[]) mapArray7;2236 // The following exception was thrown during execution in test generation2237 try {2238 java.util.Map<java.io.Serializable, java.io.Serializable>[] serializableMapArray9 = mockitoSessionBuilderList4.toArray((java.util.Map<java.io.Serializable, java.io.Serializable>[]) mapArray7);2239 org.junit.Assert.fail("Expected exception of type java.lang.ArrayStoreException; message: null");2240 } catch (java.lang.ArrayStoreException e) {2241 // Expected exception.2242 }2243 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);2244 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);2245 org.junit.Assert.assertNull(mockitoSessionBuilder2);2246 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray3);2247 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);2248 org.junit.Assert.assertNotNull(mapArray7);2249 org.junit.Assert.assertNotNull(serializableMapArray8);2250 }2251 @Test2252 public void test271() throws Throwable {2253 if (debug)2254 System.out.format("%n%s%n", "TestGroup100Case0.test271");2255 // The following exception was thrown during execution in test generation2256 try {2257 org.mockito.stubbing.OngoingStubbing<java.lang.String> strOngoingStubbing1 = org.mockito.Mockito.when(").");2258 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.?");2259 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2260 // Expected exception.2261 }2262 }2263 @Test2264 public void test272() throws Throwable {2265 if (debug)2266 System.out.format("%n%s%n", "TestGroup100Case0.test272");2267 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();2268 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray1 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0 };2269 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet2 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();2270 boolean boolean3 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet2, mockitoSessionBuilderArray1);2271 boolean boolean5 = mockitoSessionBuilderSet2.equals((java.lang.Object) "anyhost");2272 boolean boolean7 = mockitoSessionBuilderSet2.equals((java.lang.Object) "true");2273 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);2274 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray1);2275 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);2276 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);2277 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);2278 }2279 @Test2280 public void test273() throws Throwable {2281 if (debug)2282 System.out.format("%n%s%n", "TestGroup100Case0.test273");2283 java.util.Map<java.io.Serializable, java.io.Serializable> serializableMap0 = org.mockito.ArgumentMatchers.anyMap();2284 java.util.Map[] mapArray2 = new java.util.Map[1];2285 @SuppressWarnings("unchecked")2286 java.util.Map<java.io.Serializable, java.io.Serializable>[] serializableMapArray3 = (java.util.Map<java.io.Serializable, java.io.Serializable>[]) mapArray2;2287 serializableMapArray3[0] = serializableMap0;2288 // The following exception was thrown during execution in test generation2289 try {2290 org.mockito.Mockito.reset(serializableMapArray3);2291 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)??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.?");2292 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2293 // Expected exception.2294 }2295 org.junit.Assert.assertNotNull(serializableMap0);2296 org.junit.Assert.assertNotNull(mapArray2);2297 org.junit.Assert.assertNotNull(serializableMapArray3);2298 }2299 @Test2300 public void test274() throws Throwable {2301 if (debug)2302 System.out.format("%n%s%n", "TestGroup100Case0.test274");2303 java.lang.Throwable[] throwableArray0 = new java.lang.Throwable[] {};2304 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doThrow(throwableArray0);2305 org.junit.Assert.assertNotNull(throwableArray0);2306 org.junit.Assert.assertNotNull(stubber1);2307 }2308 @Test2309 public void test275() throws Throwable {2310 if (debug)2311 System.out.format("%n%s%n", "TestGroup100Case0.test275");2312 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) 200);2313 org.junit.Assert.assertNotNull(verificationWithTimeout1);2314 }2315 @Test2316 public void test276() throws Throwable {2317 if (debug)2318 System.out.format("%n%s%n", "TestGroup100Case0.test276");2319 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) '#');2320 org.mockito.verification.VerificationMode verificationMode2 = org.mockito.Mockito.atMostOnce();2321 java.lang.Class<?> wildcardClass3 = verificationMode2.getClass();2322 java.lang.String[] strArray9 = new java.lang.String[] { "true", "dubbo.migration.file", "s*[,]+s*", "Can't create adaptive extension", "org.apache" };2323 java.lang.reflect.Type type10 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.Type) wildcardClass3, strArray9);2324 org.mockito.verification.VerificationAfterDelay verificationAfterDelay11 = org.mockito.ArgumentMatchers.refEq(verificationAfterDelay1, strArray9);2325 // The following exception was thrown during execution in test generation2326 try {2327 org.mockito.Mockito.verifyNoInteractions((java.lang.Object[]) strArray9);2328 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.?");2329 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2330 // Expected exception.2331 }2332 org.junit.Assert.assertNotNull(verificationAfterDelay1);2333 org.junit.Assert.assertNotNull(verificationMode2);2334 org.junit.Assert.assertNotNull(wildcardClass3);2335 org.junit.Assert.assertNotNull(strArray9);2336 org.junit.Assert.assertNull(type10);2337 org.junit.Assert.assertNull(verificationAfterDelay11);2338 }2339 @Test2340 public void test277() throws Throwable {2341 if (debug)2342 System.out.format("%n%s%n", "TestGroup100Case0.test277");2343 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.MOCK_HEARTBEAT_EVENT;2344 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "H" + "'", str0, "H");2345 }2346 @Test2347 public void test278() throws Throwable {2348 if (debug)2349 System.out.format("%n%s%n", "TestGroup100Case0.test278");2350 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.notNull();2351 org.junit.Assert.assertNull(mockitoSet0);2352 }2353 @Test2354 public void test279() throws Throwable {2355 if (debug)2356 System.out.format("%n%s%n", "TestGroup100Case0.test279");2357 java.util.List<org.apache.dubbo.common.extension.LoadingStrategy> loadingStrategyList0 = org.apache.dubbo.common.extension.ExtensionLoader.getLoadingStrategies();2358 org.junit.Assert.assertNotNull(loadingStrategyList0);2359 }2360 @Test2361 public void test280() throws Throwable {2362 if (debug)2363 System.out.format("%n%s%n", "TestGroup100Case0.test280");2364 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.REFERENCE_FILTER_KEY;2365 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "reference.filter" + "'", str0, "reference.filter");2366 }2367 @Test2368 public void test281() throws Throwable {2369 if (debug)2370 System.out.format("%n%s%n", "TestGroup100Case0.test281");2371 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();2372 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray1 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0 };2373 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList2 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2374 boolean boolean3 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList2, mockitoSessionBuilderArray1);2375 java.util.Set<org.mockito.Mockito> mockitoSet4 = org.mockito.ArgumentMatchers.anySet();2376 java.util.stream.Stream<org.mockito.Mockito> mockitoStream5 = mockitoSet4.parallelStream();2377 boolean boolean6 = mockitoSessionBuilderList2.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet4);2378 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator7 = mockitoSet4.spliterator();2379 java.util.stream.Stream<org.mockito.Mockito> mockitoStream8 = mockitoSet4.parallelStream();2380 java.util.stream.Stream<org.mockito.Mockito> mockitoStream9 = mockitoSet4.parallelStream();2381 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);2382 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray1);2383 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);2384 org.junit.Assert.assertNotNull(mockitoSet4);2385 org.junit.Assert.assertNotNull(mockitoStream5);2386 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);2387 org.junit.Assert.assertNotNull(mockitoSpliterator7);2388 org.junit.Assert.assertNotNull(mockitoStream8);2389 org.junit.Assert.assertNotNull(mockitoStream9);2390 }2391 @Test2392 public void test282() throws Throwable {2393 if (debug)2394 System.out.format("%n%s%n", "TestGroup100Case0.test282");2395 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();2396 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator1 = mockitoSet0.spliterator();2397 org.junit.Assert.assertNotNull(mockitoSet0);2398 org.junit.Assert.assertNotNull(mockitoSpliterator1);2399 }2400 @Test2401 public void test283() throws Throwable {2402 if (debug)2403 System.out.format("%n%s%n", "TestGroup100Case0.test283");2404 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("DUBBO_IP_TO_BIND");2405 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2406 }2407 @Test2408 public void test284() throws Throwable {2409 if (debug)2410 System.out.format("%n%s%n", "TestGroup100Case0.test284");2411 java.util.List<java.lang.reflect.GenericDeclaration> genericDeclarationList0 = org.mockito.ArgumentMatchers.anyObject();2412 org.junit.Assert.assertNull(genericDeclarationList0);2413 }2414 @Test2415 public void test285() throws Throwable {2416 if (debug)2417 System.out.format("%n%s%n", "TestGroup100Case0.test285");2418 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.METRICS_PORT;2419 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "metrics.port" + "'", str0, "metrics.port");2420 }2421 @Test2422 public void test286() throws Throwable {2423 if (debug)2424 System.out.format("%n%s%n", "TestGroup100Case0.test286");2425 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.GROUP_CHAR_SEPARATOR;2426 org.junit.Assert.assertEquals("'" + str0 + "' != '" + ":" + "'", str0, ":");2427 }2428 @Test2429 public void test287() throws Throwable {2430 if (debug)2431 System.out.format("%n%s%n", "TestGroup100Case0.test287");2432 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.PROVIDER;2433 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "provider" + "'", str0, "provider");2434 }2435 @Test2436 public void test288() throws Throwable {2437 if (debug)2438 System.out.format("%n%s%n", "TestGroup100Case0.test288");2439 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.SERVICE_NAME_MAPPING_KEY;2440 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "service-name-mapping" + "'", str0, "service-name-mapping");2441 }2442 @Test2443 public void test289() throws Throwable {2444 if (debug)2445 System.out.format("%n%s%n", "TestGroup100Case0.test289");2446 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray0 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};2447 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray0);2448 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray0);2449 java.lang.Object[] objArray3 = org.mockito.Mockito.ignoreStubs((java.lang.Object[]) loadingStrategyArray0);2450 org.junit.Assert.assertNotNull(loadingStrategyArray0);2451 org.junit.Assert.assertNotNull(objArray3);2452 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray3), "[]");2453 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray3), "[]");2454 }2455 @Test2456 public void test290() throws Throwable {2457 if (debug)2458 System.out.format("%n%s%n", "TestGroup100Case0.test290");2459 java.io.Serializable serializable0 = org.mockito.ArgumentMatchers.isNull();2460 org.junit.Assert.assertNull(serializable0);2461 }2462 @Test2463 public void test291() throws Throwable {2464 if (debug)2465 System.out.format("%n%s%n", "TestGroup100Case0.test291");2466 // The following exception was thrown during execution in test generation2467 try {2468 org.mockito.stubbing.Stubber stubber0 = org.mockito.Mockito.doNothing();2469 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.?");2470 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2471 // Expected exception.2472 }2473 }2474 @Test2475 public void test292() throws Throwable {2476 if (debug)2477 System.out.format("%n%s%n", "TestGroup100Case0.test292");2478 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();2479 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();2480 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);2481 boolean boolean3 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder1);2482 java.util.Set<org.mockito.Mockito> mockitoSet4 = org.mockito.ArgumentMatchers.anySet();2483 java.util.stream.Stream<org.mockito.Mockito> mockitoStream5 = mockitoSet4.parallelStream();2484 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator6 = mockitoSet4.spliterator();2485 boolean boolean7 = mockitoSessionBuilderSet0.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet4);2486 java.util.stream.Stream<org.mockito.Mockito> mockitoStream8 = mockitoSet4.parallelStream();2487 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);2488 org.junit.Assert.assertNull(mockitoSessionBuilder2);2489 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);2490 org.junit.Assert.assertNotNull(mockitoSet4);2491 org.junit.Assert.assertNotNull(mockitoStream5);2492 org.junit.Assert.assertNotNull(mockitoSpliterator6);2493 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);2494 org.junit.Assert.assertNotNull(mockitoStream8);2495 }2496 @Test2497 public void test293() throws Throwable {2498 if (debug)2499 System.out.format("%n%s%n", "TestGroup100Case0.test293");2500 java.lang.String str1 = org.mockito.ArgumentMatchers.contains(":");2501 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2502 }2503 @Test2504 public void test294() throws Throwable {2505 if (debug)2506 System.out.format("%n%s%n", "TestGroup100Case0.test294");2507 char char0 = org.apache.dubbo.common.constants.CommonConstants.COMMA_SEPARATOR_CHAR;2508 org.junit.Assert.assertTrue("'" + char0 + "' != '" + ',' + "'", char0 == ',');2509 }2510 @Test2511 public void test295() throws Throwable {2512 if (debug)2513 System.out.format("%n%s%n", "TestGroup100Case0.test295");2514 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("Extension name");2515 java.lang.Class<?> wildcardClass2 = verificationMode1.getClass();2516 org.mockito.stubbing.LenientStubber lenientStubber3 = org.mockito.Mockito.lenient();2517 java.lang.Class<?> wildcardClass4 = lenientStubber3.getClass();2518 org.mockito.stubbing.LenientStubber lenientStubber5 = org.mockito.Mockito.lenient();2519 java.lang.Class<?> wildcardClass6 = lenientStubber5.getClass();2520 org.mockito.verification.VerificationMode verificationMode8 = org.mockito.Mockito.description("Extension name");2521 java.lang.Class<?> wildcardClass9 = verificationMode8.getClass();2522 java.lang.reflect.Type[] typeArray10 = new java.lang.reflect.Type[] { wildcardClass2, wildcardClass4, wildcardClass6, wildcardClass9 };2523 // The following exception was thrown during execution in test generation2524 try {2525 org.mockito.Mockito.reset(typeArray10);2526 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)??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.?");2527 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2528 // Expected exception.2529 }2530 org.junit.Assert.assertNotNull(verificationMode1);2531 org.junit.Assert.assertNotNull(wildcardClass2);2532 org.junit.Assert.assertNotNull(lenientStubber3);2533 org.junit.Assert.assertNotNull(wildcardClass4);2534 org.junit.Assert.assertNotNull(lenientStubber5);2535 org.junit.Assert.assertNotNull(wildcardClass6);2536 org.junit.Assert.assertNotNull(verificationMode8);2537 org.junit.Assert.assertNotNull(wildcardClass9);2538 org.junit.Assert.assertNotNull(typeArray10);2539 }2540 @Test2541 public void test296() throws Throwable {2542 if (debug)2543 System.out.format("%n%s%n", "TestGroup100Case0.test296");2544 java.util.Set<java.util.Spliterator<org.mockito.Mockito>> mockitoSpliteratorSet0 = org.mockito.ArgumentMatchers.anySet();2545 org.junit.Assert.assertNotNull(mockitoSpliteratorSet0);2546 }2547 @Test2548 public void test297() throws Throwable {2549 if (debug)2550 System.out.format("%n%s%n", "TestGroup100Case0.test297");2551 java.util.HashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = org.mockito.ArgumentMatchers.isNotNull();2552 org.junit.Assert.assertNull(mockitoSessionBuilderSet0);2553 }2554 @Test2555 public void test298() throws Throwable {2556 if (debug)2557 System.out.format("%n%s%n", "TestGroup100Case0.test298");2558 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();2559 boolean boolean2 = mockitoSessionBuilderSet0.remove((java.lang.Object) "$echo");2560 mockitoSessionBuilderSet0.clear();2561 // The following exception was thrown during execution in test generation2562 try {2563 java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderCollection4 = org.mockito.Mockito.verify((java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet0);2564 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type ConcurrentHashSet 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();");2565 } catch (org.mockito.exceptions.misusing.NotAMockException e) {2566 // Expected exception.2567 }2568 org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);2569 }2570 @Test2571 public void test299() throws Throwable {2572 if (debug)2573 System.out.format("%n%s%n", "TestGroup100Case0.test299");2574 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator0 = org.mockito.ArgumentMatchers.anyVararg();2575 org.junit.Assert.assertNull(mockitoSpliterator0);2576 }2577 @Test2578 public void test300() throws Throwable {2579 if (debug)2580 System.out.format("%n%s%n", "TestGroup100Case0.test300");2581 java.lang.String str1 = org.mockito.ArgumentMatchers.contains("config");2582 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2583 }2584 @Test2585 public void test301() throws Throwable {2586 if (debug)2587 System.out.format("%n%s%n", "TestGroup100Case0.test301");2588 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.READONLY_EVENT;2589 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "R" + "'", str0, "R");2590 }2591 @Test2592 public void test302() throws Throwable {2593 if (debug)2594 System.out.format("%n%s%n", "TestGroup100Case0.test302");2595 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.INTERFACE_KEY;2596 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "interface" + "'", str0, "interface");2597 }2598 @Test2599 public void test303() throws Throwable {2600 if (debug)2601 System.out.format("%n%s%n", "TestGroup100Case0.test303");2602 java.util.List<java.lang.reflect.GenericDeclaration> genericDeclarationList0 = org.mockito.ArgumentMatchers.anyList();2603 java.util.List<java.lang.reflect.GenericDeclaration> genericDeclarationList1 = org.mockito.ArgumentMatchers.same(genericDeclarationList0);2604 org.junit.Assert.assertNotNull(genericDeclarationList0);2605 org.junit.Assert.assertNull(genericDeclarationList1);2606 }2607 @Test2608 public void test304() throws Throwable {2609 if (debug)2610 System.out.format("%n%s%n", "TestGroup100Case0.test304");2611 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList0 = org.mockito.ArgumentMatchers.anyVararg();2612 org.junit.Assert.assertNull(mockitoSessionBuilderList0);2613 }2614 @Test2615 public void test305() throws Throwable {2616 if (debug)2617 System.out.format("%n%s%n", "TestGroup100Case0.test305");2618 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.CORE_THREADS_KEY;2619 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "corethreads" + "'", str0, "corethreads");2620 }2621 @Test2622 public void test306() throws Throwable {2623 if (debug)2624 System.out.format("%n%s%n", "TestGroup100Case0.test306");2625 java.util.Set<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArraySet0 = org.mockito.ArgumentMatchers.anySet();2626 org.junit.Assert.assertNotNull(loadingStrategyArraySet0);2627 }2628 @Test2629 public void test307() throws Throwable {2630 if (debug)2631 System.out.format("%n%s%n", "TestGroup100Case0.test307");2632 org.mockito.verification.VerificationWithTimeout verificationWithTimeout0 = org.mockito.ArgumentMatchers.anyObject();2633 org.junit.Assert.assertNull(verificationWithTimeout0);2634 }2635 @Test2636 public void test308() throws Throwable {2637 if (debug)2638 System.out.format("%n%s%n", "TestGroup100Case0.test308");2639 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("iothreads");2640 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2641 }2642 @Test2643 public void test309() throws Throwable {2644 if (debug)2645 System.out.format("%n%s%n", "TestGroup100Case0.test309");2646 short short1 = org.mockito.ArgumentMatchers.eq((short) (byte) -1);2647 org.junit.Assert.assertTrue("'" + short1 + "' != '" + (short) 0 + "'", short1 == (short) 0);2648 }2649 @Test2650 public void test310() throws Throwable {2651 if (debug)2652 System.out.format("%n%s%n", "TestGroup100Case0.test310");2653 org.mockito.ArgumentMatcher<java.lang.Integer> intArgumentMatcher0 = null;2654 int int1 = org.mockito.ArgumentMatchers.intThat(intArgumentMatcher0);2655 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);2656 }2657 @Test2658 public void test311() throws Throwable {2659 if (debug)2660 System.out.format("%n%s%n", "TestGroup100Case0.test311");2661 int int0 = org.mockito.ArgumentMatchers.anyInt();2662 org.junit.Assert.assertTrue("'" + int0 + "' != '" + 0 + "'", int0 == 0);2663 }2664 @Test2665 public void test312() throws Throwable {2666 if (debug)2667 System.out.format("%n%s%n", "TestGroup100Case0.test312");2668 java.util.List<java.lang.String> strList0 = org.mockito.ArgumentMatchers.anyList();2669 org.junit.Assert.assertNotNull(strList0);2670 }2671 @Test2672 public void test313() throws Throwable {2673 if (debug)2674 System.out.format("%n%s%n", "TestGroup100Case0.test313");2675 java.util.RandomAccess randomAccess0 = org.mockito.ArgumentMatchers.any();2676 org.junit.Assert.assertNull(randomAccess0);2677 }2678 @Test2679 public void test314() throws Throwable {2680 if (debug)2681 System.out.format("%n%s%n", "TestGroup100Case0.test314");2682 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atLeast((int) (short) 100);2683 org.junit.Assert.assertNotNull(verificationMode1);2684 }2685 @Test2686 public void test315() throws Throwable {2687 if (debug)2688 System.out.format("%n%s%n", "TestGroup100Case0.test315");2689 java.util.Collection<org.mockito.verification.VerificationMode> verificationModeCollection0 = org.mockito.ArgumentMatchers.anyCollection();2690 // The following exception was thrown during execution in test generation2691 try {2692 java.lang.Iterable<org.mockito.verification.VerificationMode> verificationModeIterable1 = org.mockito.Mockito.spy((java.lang.Iterable<org.mockito.verification.VerificationMode>) verificationModeCollection0);2693 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.GeneratedMethodAccessor7.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.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.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.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.?");2694 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2695 // Expected exception.2696 }2697 org.junit.Assert.assertNotNull(verificationModeCollection0);2698 }2699 @Test2700 public void test316() throws Throwable {2701 if (debug)2702 System.out.format("%n%s%n", "TestGroup100Case0.test316");2703 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) ' ');2704 org.junit.Assert.assertNotNull(verificationAfterDelay1);2705 }2706 @Test2707 public void test317() throws Throwable {2708 if (debug)2709 System.out.format("%n%s%n", "TestGroup100Case0.test317");2710 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.CLASS_DESERIALIZE_BLOCK_ALL;2711 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "dubbo.security.serialize.blockAllClassExceptAllow" + "'", str0, "dubbo.security.serialize.blockAllClassExceptAllow");2712 }2713 @Test2714 public void test318() throws Throwable {2715 if (debug)2716 System.out.format("%n%s%n", "TestGroup100Case0.test318");2717 java.util.Set<java.util.RandomAccess> randomAccessSet0 = org.mockito.ArgumentMatchers.anySet();2718 org.junit.Assert.assertNotNull(randomAccessSet0);2719 }2720 @Test2721 public void test319() throws Throwable {2722 if (debug)2723 System.out.format("%n%s%n", "TestGroup100Case0.test319");2724 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) 2);2725 org.junit.Assert.assertNotNull(verificationAfterDelay1);2726 }2727 @Test2728 public void test320() throws Throwable {2729 if (debug)2730 System.out.format("%n%s%n", "TestGroup100Case0.test320");2731 java.util.regex.Pattern pattern0 = org.apache.dubbo.common.constants.CommonConstants.REGISTRY_SPLIT_PATTERN;2732 java.lang.String str1 = org.mockito.ArgumentMatchers.matches(pattern0);2733 org.junit.Assert.assertNotNull(pattern0);2734 org.junit.Assert.assertEquals(pattern0.toString(), "\\s*[|;]+\\s*");2735 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");2736 }2737 @Test2738 public void test321() throws Throwable {2739 if (debug)2740 System.out.format("%n%s%n", "TestGroup100Case0.test321");2741 java.util.Collection<java.util.RandomAccess> randomAccessCollection0 = org.mockito.ArgumentMatchers.anyCollection();2742 org.junit.Assert.assertNotNull(randomAccessCollection0);2743 }2744 @Test2745 public void test322() throws Throwable {2746 if (debug)2747 System.out.format("%n%s%n", "TestGroup100Case0.test322");2748 org.apache.dubbo.common.extension.LoadingStrategy loadingStrategy0 = null;2749 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] { loadingStrategy0 };2750 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);2751 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);2752 org.junit.Assert.assertNotNull(loadingStrategyArray1);2753 }2754 @Test2755 public void test323() throws Throwable {2756 if (debug)2757 System.out.format("%n%s%n", "TestGroup100Case0.test323");2758 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = org.mockito.ArgumentMatchers.isNull();2759 org.junit.Assert.assertNull(loadingStrategyArrayHolder0);2760 }2761 @Test2762 public void test324() throws Throwable {2763 if (debug)2764 System.out.format("%n%s%n", "TestGroup100Case0.test324");2765 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("Extension name");2766 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();2767 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray3 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder2 };2768 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList4 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2769 boolean boolean5 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList4, mockitoSessionBuilderArray3);2770 java.util.Set<org.mockito.Mockito> mockitoSet6 = org.mockito.ArgumentMatchers.anySet();2771 java.util.stream.Stream<org.mockito.Mockito> mockitoStream7 = mockitoSet6.parallelStream();2772 boolean boolean8 = mockitoSessionBuilderList4.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet6);2773 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator9 = mockitoSet6.spliterator();2774 org.mockito.verification.VerificationMode verificationMode10 = org.mockito.Mockito.atMostOnce();2775 java.lang.Class<?> wildcardClass11 = verificationMode10.getClass();2776 java.lang.String[] strArray17 = new java.lang.String[] { "true", "dubbo.migration.file", "s*[,]+s*", "Can't create adaptive extension", "org.apache" };2777 java.lang.reflect.Type type18 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.Type) wildcardClass11, strArray17);2778 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator19 = org.mockito.ArgumentMatchers.refEq(mockitoSpliterator9, strArray17);2779 // The following exception was thrown during execution in test generation2780 try {2781 org.mockito.stubbing.Stubber stubber20 = org.mockito.Mockito.doReturn((java.lang.Object) verificationMode1, (java.lang.Object[]) strArray17);2782 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor7.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.GeneratedMethodAccessor7.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.?");2783 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2784 // Expected exception.2785 }2786 org.junit.Assert.assertNotNull(verificationMode1);2787 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);2788 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray3);2789 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);2790 org.junit.Assert.assertNotNull(mockitoSet6);2791 org.junit.Assert.assertNotNull(mockitoStream7);2792 org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);2793 org.junit.Assert.assertNotNull(mockitoSpliterator9);2794 org.junit.Assert.assertNotNull(verificationMode10);2795 org.junit.Assert.assertNotNull(wildcardClass11);2796 org.junit.Assert.assertNotNull(strArray17);2797 org.junit.Assert.assertNull(type18);2798 org.junit.Assert.assertNull(mockitoSpliterator19);2799 }2800 @Test2801 public void test325() throws Throwable {2802 if (debug)2803 System.out.format("%n%s%n", "TestGroup100Case0.test325");2804 double double1 = org.mockito.ArgumentMatchers.eq((double) (byte) 100);2805 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);2806 }2807 @Test2808 public void test326() throws Throwable {2809 if (debug)2810 System.out.format("%n%s%n", "TestGroup100Case0.test326");2811 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet1 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();2812 boolean boolean3 = mockitoSessionBuilderSet1.remove((java.lang.Object) "$echo");2813 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder4 = org.mockito.Mockito.mockitoSession();2814 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray5 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder4 };2815 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList6 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2816 boolean boolean7 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList6, mockitoSessionBuilderArray5);2817 java.util.Set<org.mockito.Mockito> mockitoSet8 = org.mockito.ArgumentMatchers.anySet();2818 java.util.stream.Stream<org.mockito.Mockito> mockitoStream9 = mockitoSet8.parallelStream();2819 boolean boolean10 = mockitoSessionBuilderList6.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet8);2820 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder11 = org.mockito.Mockito.mockitoSession();2821 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray12 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder11 };2822 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet13 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();2823 boolean boolean14 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet13, mockitoSessionBuilderArray12);2824 boolean boolean16 = mockitoSessionBuilderSet13.equals((java.lang.Object) "anyhost");2825 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder17 = org.mockito.Mockito.mockitoSession();2826 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray18 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder17 };2827 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList19 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2828 boolean boolean20 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList19, mockitoSessionBuilderArray18);2829 java.util.Set<org.mockito.Mockito> mockitoSet21 = org.mockito.ArgumentMatchers.anySet();2830 java.util.stream.Stream<org.mockito.Mockito> mockitoStream22 = mockitoSet21.parallelStream();2831 boolean boolean23 = mockitoSessionBuilderList19.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet21);2832 boolean boolean24 = mockitoSessionBuilderSet13.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet21);2833 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet25 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();2834 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder26 = org.mockito.Mockito.mockitoSession();2835 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder27 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder26);2836 boolean boolean28 = mockitoSessionBuilderSet25.add(mockitoSessionBuilder26);2837 java.util.Set<org.mockito.Mockito> mockitoSet29 = org.mockito.ArgumentMatchers.anySet();2838 java.util.stream.Stream<org.mockito.Mockito> mockitoStream30 = mockitoSet29.parallelStream();2839 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator31 = mockitoSet29.spliterator();2840 boolean boolean32 = mockitoSessionBuilderSet25.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet29);2841 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet33 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();2842 mockitoSessionBuilderSet33.clear();2843 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder35 = org.mockito.Mockito.mockitoSession();2844 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray36 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder35 };2845 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet37 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();2846 boolean boolean38 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet37, mockitoSessionBuilderArray36);2847 boolean boolean40 = mockitoSessionBuilderSet37.equals((java.lang.Object) "anyhost");2848 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder41 = org.mockito.Mockito.mockitoSession();2849 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray42 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder41 };2850 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList43 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2851 boolean boolean44 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList43, mockitoSessionBuilderArray42);2852 java.util.Set<org.mockito.Mockito> mockitoSet45 = org.mockito.ArgumentMatchers.anySet();2853 java.util.stream.Stream<org.mockito.Mockito> mockitoStream46 = mockitoSet45.parallelStream();2854 boolean boolean47 = mockitoSessionBuilderList43.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet45);2855 boolean boolean48 = mockitoSessionBuilderSet37.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet45);2856 boolean boolean49 = mockitoSessionBuilderSet33.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet45);2857 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet50 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();2858 mockitoSessionBuilderSet50.clear();2859 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder52 = org.mockito.Mockito.mockitoSession();2860 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray53 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder52 };2861 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet54 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();2862 boolean boolean55 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet54, mockitoSessionBuilderArray53);2863 boolean boolean57 = mockitoSessionBuilderSet54.equals((java.lang.Object) "anyhost");2864 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder58 = org.mockito.Mockito.mockitoSession();2865 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray59 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder58 };2866 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList60 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();2867 boolean boolean61 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList60, mockitoSessionBuilderArray59);2868 java.util.Set<org.mockito.Mockito> mockitoSet62 = org.mockito.ArgumentMatchers.anySet();2869 java.util.stream.Stream<org.mockito.Mockito> mockitoStream63 = mockitoSet62.parallelStream();2870 boolean boolean64 = mockitoSessionBuilderList60.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet62);2871 boolean boolean65 = mockitoSessionBuilderSet54.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet62);2872 boolean boolean66 = mockitoSessionBuilderSet50.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet62);2873 java.util.AbstractCollection[] abstractCollectionArray68 = new java.util.AbstractCollection[5];2874 @SuppressWarnings("unchecked")2875 java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>[] mockitoSessionBuilderCollectionArray69 = (java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>[]) abstractCollectionArray68;2876 mockitoSessionBuilderCollectionArray69[0] = mockitoSessionBuilderList6;2877 mockitoSessionBuilderCollectionArray69[1] = mockitoSessionBuilderSet13;2878 mockitoSessionBuilderCollectionArray69[2] = mockitoSessionBuilderSet25;2879 mockitoSessionBuilderCollectionArray69[3] = mockitoSessionBuilderSet33;2880 mockitoSessionBuilderCollectionArray69[4] = mockitoSessionBuilderSet50;2881 java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>[] mockitoSessionBuilderCollectionArray80 = mockitoSessionBuilderSet1.toArray(mockitoSessionBuilderCollectionArray69);2882 // The following exception was thrown during execution in test generation2883 try {2884 org.mockito.stubbing.Stubber stubber81 = org.mockito.Mockito.doReturn((java.lang.Object) "callbacks", (java.lang.Object[]) mockitoSessionBuilderCollectionArray69);2885 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.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.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.?");2886 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2887 // Expected exception.2888 }2889 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);2890 org.junit.Assert.assertNotNull(mockitoSessionBuilder4);2891 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray5);2892 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);2893 org.junit.Assert.assertNotNull(mockitoSet8);2894 org.junit.Assert.assertNotNull(mockitoStream9);2895 org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);2896 org.junit.Assert.assertNotNull(mockitoSessionBuilder11);2897 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray12);2898 org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);2899 org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);2900 org.junit.Assert.assertNotNull(mockitoSessionBuilder17);2901 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray18);2902 org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);2903 org.junit.Assert.assertNotNull(mockitoSet21);2904 org.junit.Assert.assertNotNull(mockitoStream22);2905 org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);2906 org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + true + "'", boolean24 == true);2907 org.junit.Assert.assertNotNull(mockitoSessionBuilder26);2908 org.junit.Assert.assertNull(mockitoSessionBuilder27);2909 org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + true + "'", boolean28 == true);2910 org.junit.Assert.assertNotNull(mockitoSet29);2911 org.junit.Assert.assertNotNull(mockitoStream30);2912 org.junit.Assert.assertNotNull(mockitoSpliterator31);2913 org.junit.Assert.assertTrue("'" + boolean32 + "' != '" + false + "'", boolean32 == false);2914 org.junit.Assert.assertNotNull(mockitoSessionBuilder35);2915 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray36);2916 org.junit.Assert.assertTrue("'" + boolean38 + "' != '" + true + "'", boolean38 == true);2917 org.junit.Assert.assertTrue("'" + boolean40 + "' != '" + false + "'", boolean40 == false);2918 org.junit.Assert.assertNotNull(mockitoSessionBuilder41);2919 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray42);2920 org.junit.Assert.assertTrue("'" + boolean44 + "' != '" + true + "'", boolean44 == true);2921 org.junit.Assert.assertNotNull(mockitoSet45);2922 org.junit.Assert.assertNotNull(mockitoStream46);2923 org.junit.Assert.assertTrue("'" + boolean47 + "' != '" + true + "'", boolean47 == true);2924 org.junit.Assert.assertTrue("'" + boolean48 + "' != '" + true + "'", boolean48 == true);2925 org.junit.Assert.assertTrue("'" + boolean49 + "' != '" + true + "'", boolean49 == true);2926 org.junit.Assert.assertNotNull(mockitoSessionBuilder52);2927 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray53);2928 org.junit.Assert.assertTrue("'" + boolean55 + "' != '" + true + "'", boolean55 == true);2929 org.junit.Assert.assertTrue("'" + boolean57 + "' != '" + false + "'", boolean57 == false);2930 org.junit.Assert.assertNotNull(mockitoSessionBuilder58);2931 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray59);2932 org.junit.Assert.assertTrue("'" + boolean61 + "' != '" + true + "'", boolean61 == true);2933 org.junit.Assert.assertNotNull(mockitoSet62);2934 org.junit.Assert.assertNotNull(mockitoStream63);2935 org.junit.Assert.assertTrue("'" + boolean64 + "' != '" + true + "'", boolean64 == true);2936 org.junit.Assert.assertTrue("'" + boolean65 + "' != '" + true + "'", boolean65 == true);2937 org.junit.Assert.assertTrue("'" + boolean66 + "' != '" + true + "'", boolean66 == true);2938 org.junit.Assert.assertNotNull(abstractCollectionArray68);2939 org.junit.Assert.assertNotNull(mockitoSessionBuilderCollectionArray69);2940 org.junit.Assert.assertNotNull(mockitoSessionBuilderCollectionArray80);2941 }2942 @Test2943 public void test327() throws Throwable {2944 if (debug)2945 System.out.format("%n%s%n", "TestGroup100Case0.test327");2946 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();2947 java.util.stream.Stream<org.mockito.Mockito> mockitoStream1 = mockitoSet0.parallelStream();2948 java.lang.AutoCloseable autoCloseable2 = org.mockito.ArgumentMatchers.same((java.lang.AutoCloseable) mockitoStream1);2949 // The following exception was thrown during execution in test generation2950 try {2951 java.util.stream.BaseStream<org.mockito.Mockito, java.util.stream.Stream<org.mockito.Mockito>> mockitoBaseStream3 = org.mockito.Mockito.spy((java.util.stream.BaseStream<org.mockito.Mockito, java.util.stream.Stream<org.mockito.Mockito>>) mockitoStream1);2952 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.base.MockitoException; message: ?Mockito cannot mock this class: class java.util.stream.ReferencePipeline$Head.??Mockito can only mock non-private & non-final classes.?If you're not sure why you're getting this error, please report to the mailing list.???Java : 1.8?JVM vendor name : Oracle Corporation?JVM vendor version : 25.151-b12?JVM name : Java HotSpot(TM) 64-Bit Server VM?JVM version : 1.8.0_151-b12?JVM info : mixed mode?OS name : Linux?OS version : 4.15.0-142-generic???Underlying exception : org.mockito.exceptions.base.MockitoException: ?Cannot create mock for class java.util.stream.ReferencePipeline$Head??The type is not public and its mock class is loaded by a different class loader.?This can have multiple reasons:? - You are mocking a class with additional interfaces of another class loader? - Mockito is loaded by a different class loader than the mocked type (e.g. with OSGi)? - The thread's context class loader is different than the mock's class loader");2953 } catch (org.mockito.exceptions.base.MockitoException e) {2954 // Expected exception.2955 }2956 org.junit.Assert.assertNotNull(mockitoSet0);2957 org.junit.Assert.assertNotNull(mockitoStream1);2958 org.junit.Assert.assertNull(autoCloseable2);2959 }2960 @Test2961 public void test328() throws Throwable {2962 if (debug)2963 System.out.format("%n%s%n", "TestGroup100Case0.test328");2964 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.REVISION_KEY;2965 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "revision" + "'", str0, "revision");2966 }2967 @Test2968 public void test329() throws Throwable {2969 if (debug)2970 System.out.format("%n%s%n", "TestGroup100Case0.test329");2971 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_SMART_NULLS;2972 org.mockito.stubbing.Answer[] answerArray2 = new org.mockito.stubbing.Answer[1];2973 @SuppressWarnings("unchecked")2974 org.mockito.stubbing.Answer<java.lang.Object>[] objAnswerArray3 = (org.mockito.stubbing.Answer<java.lang.Object>[]) answerArray2;2975 objAnswerArray3[0] = objAnswer0;2976 // The following exception was thrown during execution in test generation2977 try {2978 org.mockito.Mockito.reset(objAnswerArray3);2979 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor7.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.?");2980 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {2981 // Expected exception.2982 }2983 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_SMART_NULLS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_SMART_NULLS));2984 org.junit.Assert.assertNotNull(answerArray2);2985 org.junit.Assert.assertNotNull(objAnswerArray3);2986 }2987 @Test2988 public void test330() throws Throwable {2989 if (debug)2990 System.out.format("%n%s%n", "TestGroup100Case0.test330");2991 org.mockito.ArgumentMatcher<java.lang.Character> charArgumentMatcher0 = null;2992 char char1 = org.mockito.ArgumentMatchers.charThat(charArgumentMatcher0);2993 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');2994 }2995 @Test2996 public void test331() throws Throwable {2997 if (debug)2998 System.out.format("%n%s%n", "TestGroup100Case0.test331");2999 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.UTF8ENCODE;3000 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "UTF-8" + "'", str0, "UTF-8");3001 }3002 @Test3003 public void test332() throws Throwable {3004 if (debug)3005 System.out.format("%n%s%n", "TestGroup100Case0.test332");3006 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3007 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();3008 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);3009 boolean boolean3 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder1);3010 java.util.Set<org.mockito.Mockito> mockitoSet4 = org.mockito.ArgumentMatchers.anySet();3011 java.util.stream.Stream<org.mockito.Mockito> mockitoStream5 = mockitoSet4.parallelStream();3012 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator6 = mockitoSet4.spliterator();3013 boolean boolean7 = mockitoSessionBuilderSet0.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet4);3014 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator8 = mockitoSet4.spliterator();3015 java.util.stream.Stream<org.mockito.Mockito> mockitoStream9 = mockitoSet4.parallelStream();3016 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);3017 org.junit.Assert.assertNull(mockitoSessionBuilder2);3018 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);3019 org.junit.Assert.assertNotNull(mockitoSet4);3020 org.junit.Assert.assertNotNull(mockitoStream5);3021 org.junit.Assert.assertNotNull(mockitoSpliterator6);3022 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);3023 org.junit.Assert.assertNotNull(mockitoSpliterator8);3024 org.junit.Assert.assertNotNull(mockitoStream9);3025 }3026 @Test3027 public void test333() throws Throwable {3028 if (debug)3029 System.out.format("%n%s%n", "TestGroup100Case0.test333");3030 java.util.Collection<org.mockito.verification.VerificationMode> verificationModeCollection0 = org.mockito.ArgumentMatchers.anyCollection();3031 // The following exception was thrown during execution in test generation3032 try {3033 org.mockito.stubbing.OngoingStubbing<java.lang.Iterable<org.mockito.verification.VerificationMode>> verificationModeIterableOngoingStubbing1 = org.mockito.Mockito.when((java.lang.Iterable<org.mockito.verification.VerificationMode>) verificationModeCollection0);3034 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.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.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.?");3035 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3036 // Expected exception.3037 }3038 org.junit.Assert.assertNotNull(verificationModeCollection0);3039 }3040 @Test3041 public void test334() throws Throwable {3042 if (debug)3043 System.out.format("%n%s%n", "TestGroup100Case0.test334");3044 int int1 = org.mockito.ArgumentMatchers.eq(10);3045 org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0);3046 }3047 @Test3048 public void test335() throws Throwable {3049 if (debug)3050 System.out.format("%n%s%n", "TestGroup100Case0.test335");3051 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3052 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};3053 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3054 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3055 loadingStrategyArrayHolder0.set(loadingStrategyArray1);3056 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray5 = loadingStrategyArrayHolder0.get();3057 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray6 = loadingStrategyArrayHolder0.get();3058 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray6);3059 org.junit.Assert.assertNotNull(loadingStrategyArray1);3060 org.junit.Assert.assertNotNull(loadingStrategyArray5);3061 org.junit.Assert.assertNotNull(loadingStrategyArray6);3062 }3063 @Test3064 public void test336() throws Throwable {3065 if (debug)3066 System.out.format("%n%s%n", "TestGroup100Case0.test336");3067 java.lang.Object[][] objArray0 = new java.lang.Object[][] {};3068 // The following exception was thrown during execution in test generation3069 try {3070 org.mockito.Mockito.clearInvocations(objArray0);3071 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.?");3072 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3073 // Expected exception.3074 }3075 org.junit.Assert.assertNotNull(objArray0);3076 }3077 @Test3078 public void test337() throws Throwable {3079 if (debug)3080 System.out.format("%n%s%n", "TestGroup100Case0.test337");3081 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();3082 java.util.stream.Stream<org.mockito.Mockito> mockitoStream1 = mockitoSet0.parallelStream();3083 java.util.Set<org.mockito.Mockito> mockitoSet2 = org.mockito.ArgumentMatchers.anySet();3084 java.util.stream.Stream<org.mockito.Mockito> mockitoStream3 = mockitoSet2.parallelStream();3085 java.lang.AutoCloseable autoCloseable4 = org.mockito.ArgumentMatchers.same((java.lang.AutoCloseable) mockitoStream3);3086 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet5 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3087 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder6 = org.mockito.Mockito.mockitoSession();3088 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder7 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder6);3089 boolean boolean8 = mockitoSessionBuilderSet5.add(mockitoSessionBuilder6);3090 java.util.Set<org.mockito.Mockito> mockitoSet9 = org.mockito.ArgumentMatchers.anySet();3091 java.util.stream.Stream<org.mockito.Mockito> mockitoStream10 = mockitoSet9.parallelStream();3092 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator11 = mockitoSet9.spliterator();3093 boolean boolean12 = mockitoSessionBuilderSet5.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet9);3094 java.util.stream.Stream<org.mockito.Mockito> mockitoStream13 = mockitoSet9.parallelStream();3095 java.util.stream.Stream[] streamArray15 = new java.util.stream.Stream[3];3096 @SuppressWarnings("unchecked")3097 java.util.stream.Stream<org.mockito.Mockito>[] mockitoStreamArray16 = (java.util.stream.Stream<org.mockito.Mockito>[]) streamArray15;3098 mockitoStreamArray16[0] = mockitoStream1;3099 mockitoStreamArray16[1] = mockitoStream3;3100 mockitoStreamArray16[2] = mockitoStream13;3101 // The following exception was thrown during execution in test generation3102 try {3103 org.mockito.Mockito.reset(mockitoStreamArray16);3104 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.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.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.?");3105 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3106 // Expected exception.3107 }3108 org.junit.Assert.assertNotNull(mockitoSet0);3109 org.junit.Assert.assertNotNull(mockitoStream1);3110 org.junit.Assert.assertNotNull(mockitoSet2);3111 org.junit.Assert.assertNotNull(mockitoStream3);3112 org.junit.Assert.assertNull(autoCloseable4);3113 org.junit.Assert.assertNotNull(mockitoSessionBuilder6);3114 org.junit.Assert.assertNull(mockitoSessionBuilder7);3115 org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);3116 org.junit.Assert.assertNotNull(mockitoSet9);3117 org.junit.Assert.assertNotNull(mockitoStream10);3118 org.junit.Assert.assertNotNull(mockitoSpliterator11);3119 org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);3120 org.junit.Assert.assertNotNull(mockitoStream13);3121 org.junit.Assert.assertNotNull(streamArray15);3122 org.junit.Assert.assertNotNull(mockitoStreamArray16);3123 }3124 @Test3125 public void test338() throws Throwable {3126 if (debug)3127 System.out.format("%n%s%n", "TestGroup100Case0.test338");3128 org.mockito.verification.VerificationAfterDelay verificationAfterDelay1 = org.mockito.Mockito.after((long) '#');3129 org.mockito.verification.VerificationMode verificationMode2 = org.mockito.Mockito.atMostOnce();3130 java.lang.Class<?> wildcardClass3 = verificationMode2.getClass();3131 java.lang.String[] strArray9 = new java.lang.String[] { "true", "dubbo.migration.file", "s*[,]+s*", "Can't create adaptive extension", "org.apache" };3132 java.lang.reflect.Type type10 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.Type) wildcardClass3, strArray9);3133 org.mockito.verification.VerificationAfterDelay verificationAfterDelay11 = org.mockito.ArgumentMatchers.refEq(verificationAfterDelay1, strArray9);3134 org.mockito.MockingDetails mockingDetails12 = org.mockito.Mockito.mockingDetails((java.lang.Object) verificationAfterDelay11);3135 org.junit.Assert.assertNotNull(verificationAfterDelay1);3136 org.junit.Assert.assertNotNull(verificationMode2);3137 org.junit.Assert.assertNotNull(wildcardClass3);3138 org.junit.Assert.assertNotNull(strArray9);3139 org.junit.Assert.assertNull(type10);3140 org.junit.Assert.assertNull(verificationAfterDelay11);3141 org.junit.Assert.assertNotNull(mockingDetails12);3142 }3143 @Test3144 public void test339() throws Throwable {3145 if (debug)3146 System.out.format("%n%s%n", "TestGroup100Case0.test339");3147 double double1 = org.mockito.ArgumentMatchers.eq((double) 2147483647);3148 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);3149 }3150 @Test3151 public void test340() throws Throwable {3152 if (debug)3153 System.out.format("%n%s%n", "TestGroup100Case0.test340");3154 org.mockito.verification.VerificationMode verificationMode0 = org.mockito.Mockito.never();3155 java.lang.Class<?> wildcardClass1 = verificationMode0.getClass();3156 java.lang.reflect.Type type2 = org.mockito.ArgumentMatchers.same((java.lang.reflect.Type) wildcardClass1);3157 org.apache.dubbo.common.extension.ExtensionLoader.resetExtensionLoader((java.lang.Class) wildcardClass1);3158 org.junit.Assert.assertNotNull(verificationMode0);3159 org.junit.Assert.assertNotNull(wildcardClass1);3160 org.junit.Assert.assertNull(type2);3161 }3162 @Test3163 public void test341() throws Throwable {3164 if (debug)3165 System.out.format("%n%s%n", "TestGroup100Case0.test341");3166 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) 1);3167 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);3168 }3169 @Test3170 public void test342() throws Throwable {3171 if (debug)3172 System.out.format("%n%s%n", "TestGroup100Case0.test342");3173 java.util.Map<java.lang.CharSequence, org.mockito.MockitoFramework> charSequenceMap0 = org.mockito.ArgumentMatchers.anyMap();3174 org.junit.Assert.assertNotNull(charSequenceMap0);3175 }3176 @Test3177 public void test343() throws Throwable {3178 if (debug)3179 System.out.format("%n%s%n", "TestGroup100Case0.test343");3180 java.lang.Iterable<java.lang.Throwable[]> throwableArrayIterable0 = org.mockito.ArgumentMatchers.anyIterable();3181 java.lang.Class<?> wildcardClass1 = throwableArrayIterable0.getClass();3182 org.junit.Assert.assertNotNull(throwableArrayIterable0);3183 org.junit.Assert.assertNotNull(wildcardClass1);3184 }3185 @Test3186 public void test344() throws Throwable {3187 if (debug)3188 System.out.format("%n%s%n", "TestGroup100Case0.test344");3189 java.lang.String str1 = org.mockito.ArgumentMatchers.startsWith("gson");3190 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");3191 }3192 @Test3193 public void test345() throws Throwable {3194 if (debug)3195 System.out.format("%n%s%n", "TestGroup100Case0.test345");3196 java.util.Collection<java.util.List<java.lang.reflect.GenericDeclaration>> genericDeclarationListCollection0 = org.mockito.ArgumentMatchers.anyCollection();3197 org.junit.Assert.assertNotNull(genericDeclarationListCollection0);3198 }3199 @Test3200 public void test346() throws Throwable {3201 if (debug)3202 System.out.format("%n%s%n", "TestGroup100Case0.test346");3203 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3204 mockitoSessionBuilderSet0.clear();3205 java.lang.Object[] objArray2 = mockitoSessionBuilderSet0.toArray();3206 java.util.Iterator<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderItor3 = mockitoSessionBuilderSet0.iterator();3207 org.junit.Assert.assertNotNull(objArray2);3208 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray2), "[]");3209 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray2), "[]");3210 org.junit.Assert.assertNotNull(mockitoSessionBuilderItor3);3211 }3212 @Test3213 public void test347() throws Throwable {3214 if (debug)3215 System.out.format("%n%s%n", "TestGroup100Case0.test347");3216 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3217 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();3218 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);3219 boolean boolean3 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder1);3220 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder4 = org.mockito.Mockito.mockitoSession();3221 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet5 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3222 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder6 = org.mockito.Mockito.mockitoSession();3223 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder7 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder6);3224 boolean boolean8 = mockitoSessionBuilderSet5.add(mockitoSessionBuilder6);3225 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray9 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder1, mockitoSessionBuilder4, mockitoSessionBuilder6 };3226 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet10 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3227 boolean boolean11 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet10, mockitoSessionBuilderArray9);3228 mockitoSessionBuilderSet10.clear();3229 java.util.Iterator<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderItor13 = mockitoSessionBuilderSet10.iterator();3230 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);3231 org.junit.Assert.assertNull(mockitoSessionBuilder2);3232 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);3233 org.junit.Assert.assertNotNull(mockitoSessionBuilder4);3234 org.junit.Assert.assertNotNull(mockitoSessionBuilder6);3235 org.junit.Assert.assertNull(mockitoSessionBuilder7);3236 org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);3237 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray9);3238 org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);3239 org.junit.Assert.assertNotNull(mockitoSessionBuilderItor13);3240 }3241 @Test3242 public void test348() throws Throwable {3243 if (debug)3244 System.out.format("%n%s%n", "TestGroup100Case0.test348");3245 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.DISABLED_KEY;3246 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "disabled" + "'", str0, "disabled");3247 }3248 @Test3249 public void test349() throws Throwable {3250 if (debug)3251 System.out.format("%n%s%n", "TestGroup100Case0.test349");3252 long long1 = org.mockito.ArgumentMatchers.eq((-1L));3253 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);3254 }3255 @Test3256 public void test350() throws Throwable {3257 if (debug)3258 System.out.format("%n%s%n", "TestGroup100Case0.test350");3259 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3260 mockitoSessionBuilderSet0.clear();3261 java.util.AbstractSet[] abstractSetArray3 = new java.util.AbstractSet[1];3262 @SuppressWarnings("unchecked")3263 java.util.AbstractSet<org.mockito.session.MockitoSessionBuilder>[] mockitoSessionBuilderSetArray4 = (java.util.AbstractSet<org.mockito.session.MockitoSessionBuilder>[]) abstractSetArray3;3264 mockitoSessionBuilderSetArray4[0] = mockitoSessionBuilderSet0;3265 // The following exception was thrown during execution in test generation3266 try {3267 org.mockito.Mockito.reset(mockitoSessionBuilderSetArray4);3268 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.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.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.?");3269 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3270 // Expected exception.3271 }3272 org.junit.Assert.assertNotNull(abstractSetArray3);3273 org.junit.Assert.assertNotNull(mockitoSessionBuilderSetArray4);3274 }3275 @Test3276 public void test351() throws Throwable {3277 if (debug)3278 System.out.format("%n%s%n", "TestGroup100Case0.test351");3279 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3280 boolean boolean2 = mockitoSessionBuilderSet0.remove((java.lang.Object) "$echo");3281 boolean boolean4 = mockitoSessionBuilderSet0.equals((java.lang.Object) (byte) 1);3282 mockitoSessionBuilderSet0.clear();3283 org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);3284 org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);3285 }3286 @Test3287 public void test352() throws Throwable {3288 if (debug)3289 System.out.format("%n%s%n", "TestGroup100Case0.test352");3290 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();3291 java.util.stream.Stream<org.mockito.Mockito> mockitoStream1 = mockitoSet0.parallelStream();3292 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator2 = mockitoSet0.spliterator();3293 java.util.stream.Stream<org.mockito.Mockito> mockitoStream3 = mockitoSet0.stream();3294 org.junit.Assert.assertNotNull(mockitoSet0);3295 org.junit.Assert.assertNotNull(mockitoStream1);3296 org.junit.Assert.assertNotNull(mockitoSpliterator2);3297 org.junit.Assert.assertNotNull(mockitoStream3);3298 }3299 @Test3300 public void test353() throws Throwable {3301 if (debug)3302 System.out.format("%n%s%n", "TestGroup100Case0.test353");3303 java.util.regex.Pattern pattern0 = org.apache.dubbo.common.constants.CommonConstants.EQUAL_SPLIT_PATTERN;3304 java.util.regex.Pattern pattern1 = org.mockito.ArgumentMatchers.eq(pattern0);3305 org.junit.Assert.assertNotNull(pattern0);3306 org.junit.Assert.assertEquals(pattern0.toString(), "\\s*[=]+\\s*");3307 org.junit.Assert.assertNull(pattern1);3308 }3309 @Test3310 public void test354() throws Throwable {3311 if (debug)3312 System.out.format("%n%s%n", "TestGroup100Case0.test354");3313 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_DEEP_STUBS;3314 // The following exception was thrown during execution in test generation3315 try {3316 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);3317 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor11.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.?");3318 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3319 // Expected exception.3320 }3321 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_DEEP_STUBS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_DEEP_STUBS));3322 }3323 @Test3324 public void test355() throws Throwable {3325 if (debug)3326 System.out.format("%n%s%n", "TestGroup100Case0.test355");3327 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.times(100);3328 // The following exception was thrown during execution in test generation3329 try {3330 org.mockito.stubbing.Stubber stubber2 = org.mockito.Mockito.doReturn((java.lang.Object) 100);3331 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?");3332 } catch (org.mockito.exceptions.misusing.UnfinishedStubbingException e) {3333 // Expected exception.3334 }3335 org.junit.Assert.assertNotNull(verificationMode1);3336 }3337 @Test3338 public void test356() throws Throwable {3339 if (debug)3340 System.out.format("%n%s%n", "TestGroup100Case0.test356");3341 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.DEFAULT_KEY;3342 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "default" + "'", str0, "default");3343 }3344 @Test3345 public void test357() throws Throwable {3346 if (debug)3347 System.out.format("%n%s%n", "TestGroup100Case0.test357");3348 java.util.AbstractList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList0 = org.mockito.ArgumentMatchers.notNull();3349 org.junit.Assert.assertNull(mockitoSessionBuilderList0);3350 }3351 @Test3352 public void test358() throws Throwable {3353 if (debug)3354 System.out.format("%n%s%n", "TestGroup100Case0.test358");3355 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_MOCKS;3356 java.lang.Class<?> wildcardClass1 = objAnswer0.getClass();3357 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_MOCKS + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_MOCKS));3358 org.junit.Assert.assertNotNull(wildcardClass1);3359 }3360 @Test3361 public void test359() throws Throwable {3362 if (debug)3363 System.out.format("%n%s%n", "TestGroup100Case0.test359");3364 java.util.Set<org.mockito.verification.VerificationMode> verificationModeSet0 = org.mockito.ArgumentMatchers.anySet();3365 org.junit.Assert.assertNotNull(verificationModeSet0);3366 }3367 @Test3368 public void test360() throws Throwable {3369 if (debug)3370 System.out.format("%n%s%n", "TestGroup100Case0.test360");3371 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();3372 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray1 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0 };3373 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList2 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();3374 boolean boolean3 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList2, mockitoSessionBuilderArray1);3375 java.util.Set<org.mockito.Mockito> mockitoSet4 = org.mockito.ArgumentMatchers.anySet();3376 java.util.stream.Stream<org.mockito.Mockito> mockitoStream5 = mockitoSet4.parallelStream();3377 boolean boolean6 = mockitoSessionBuilderList2.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet4);3378 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator7 = mockitoSet4.spliterator();3379 java.util.stream.Stream<org.mockito.Mockito> mockitoStream8 = mockitoSet4.stream();3380 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);3381 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray1);3382 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);3383 org.junit.Assert.assertNotNull(mockitoSet4);3384 org.junit.Assert.assertNotNull(mockitoStream5);3385 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);3386 org.junit.Assert.assertNotNull(mockitoSpliterator7);3387 org.junit.Assert.assertNotNull(mockitoStream8);3388 }3389 @Test3390 public void test361() throws Throwable {3391 if (debug)3392 System.out.format("%n%s%n", "TestGroup100Case0.test361");3393 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.calls(100);3394 org.junit.Assert.assertNotNull(verificationMode1);3395 }3396 @Test3397 public void test362() throws Throwable {3398 if (debug)3399 System.out.format("%n%s%n", "TestGroup100Case0.test362");3400 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) 0);3401 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);3402 }3403 @Test3404 public void test363() throws Throwable {3405 if (debug)3406 System.out.format("%n%s%n", "TestGroup100Case0.test363");3407 java.util.Map<java.util.stream.BaseStream<org.mockito.Mockito, java.util.stream.Stream<org.mockito.Mockito>>, java.util.Collection<org.mockito.Mockito>> mockitoBaseStreamMap0 = org.mockito.ArgumentMatchers.anyMap();3408 org.junit.Assert.assertNotNull(mockitoBaseStreamMap0);3409 }3410 @Test3411 public void test364() throws Throwable {3412 if (debug)3413 System.out.format("%n%s%n", "TestGroup100Case0.test364");3414 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator0 = org.mockito.ArgumentMatchers.isNotNull();3415 org.junit.Assert.assertNull(mockitoSpliterator0);3416 }3417 @Test3418 public void test365() throws Throwable {3419 if (debug)3420 System.out.format("%n%s%n", "TestGroup100Case0.test365");3421 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.ANY_VALUE;3422 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "*" + "'", str0, "*");3423 }3424 @Test3425 public void test366() throws Throwable {3426 if (debug)3427 System.out.format("%n%s%n", "TestGroup100Case0.test366");3428 java.lang.Throwable throwable0 = null;3429 java.lang.Throwable[] throwableArray1 = new java.lang.Throwable[] { throwable0 };3430 // The following exception was thrown during execution in test generation3431 try {3432 org.mockito.stubbing.Stubber stubber2 = org.mockito.Mockito.doThrow(throwableArray1);3433 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.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> 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.?");3434 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3435 // Expected exception.3436 }3437 org.junit.Assert.assertNotNull(throwableArray1);3438 }3439 @Test3440 public void test367() throws Throwable {3441 if (debug)3442 System.out.format("%n%s%n", "TestGroup100Case0.test367");3443 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3444 mockitoSessionBuilderSet0.clear();3445 java.lang.Object[] objArray2 = mockitoSessionBuilderSet0.toArray();3446 mockitoSessionBuilderSet0.clear();3447 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet4 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3448 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder5 = org.mockito.Mockito.mockitoSession();3449 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder6 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder5);3450 boolean boolean7 = mockitoSessionBuilderSet4.add(mockitoSessionBuilder5);3451 java.util.Set<org.mockito.Mockito> mockitoSet8 = org.mockito.ArgumentMatchers.anySet();3452 java.util.stream.Stream<org.mockito.Mockito> mockitoStream9 = mockitoSet8.parallelStream();3453 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator10 = mockitoSet8.spliterator();3454 boolean boolean11 = mockitoSessionBuilderSet4.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet8);3455 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator12 = mockitoSet8.spliterator();3456 java.util.stream.Stream<org.mockito.Mockito> mockitoStream13 = mockitoSet8.stream();3457 boolean boolean14 = mockitoSessionBuilderSet0.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet8);3458 org.junit.Assert.assertNotNull(objArray2);3459 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray2), "[]");3460 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray2), "[]");3461 org.junit.Assert.assertNotNull(mockitoSessionBuilder5);3462 org.junit.Assert.assertNull(mockitoSessionBuilder6);3463 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);3464 org.junit.Assert.assertNotNull(mockitoSet8);3465 org.junit.Assert.assertNotNull(mockitoStream9);3466 org.junit.Assert.assertNotNull(mockitoSpliterator10);3467 org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);3468 org.junit.Assert.assertNotNull(mockitoSpliterator12);3469 org.junit.Assert.assertNotNull(mockitoStream13);3470 org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);3471 }3472 @Test3473 public void test368() throws Throwable {3474 if (debug)3475 System.out.format("%n%s%n", "TestGroup100Case0.test368");3476 org.mockito.ArgumentMatcher<java.lang.Long> longArgumentMatcher0 = null;3477 long long1 = org.mockito.ArgumentMatchers.longThat(longArgumentMatcher0);3478 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);3479 }3480 @Test3481 public void test369() throws Throwable {3482 if (debug)3483 System.out.format("%n%s%n", "TestGroup100Case0.test369");3484 java.util.List<org.mockito.verification.VerificationMode> verificationModeList0 = org.mockito.ArgumentMatchers.anyList();3485 org.junit.Assert.assertNotNull(verificationModeList0);3486 }3487 @Test3488 public void test370() throws Throwable {3489 if (debug)3490 System.out.format("%n%s%n", "TestGroup100Case0.test370");3491 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3492 mockitoSessionBuilderSet0.clear();3493 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();3494 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray3 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder2 };3495 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet4 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();3496 boolean boolean5 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet4, mockitoSessionBuilderArray3);3497 boolean boolean7 = mockitoSessionBuilderSet4.equals((java.lang.Object) "anyhost");3498 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.Mockito.mockitoSession();3499 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray9 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder8 };3500 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList10 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();3501 boolean boolean11 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList10, mockitoSessionBuilderArray9);3502 java.util.Set<org.mockito.Mockito> mockitoSet12 = org.mockito.ArgumentMatchers.anySet();3503 java.util.stream.Stream<org.mockito.Mockito> mockitoStream13 = mockitoSet12.parallelStream();3504 boolean boolean14 = mockitoSessionBuilderList10.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet12);3505 boolean boolean15 = mockitoSessionBuilderSet4.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet12);3506 boolean boolean16 = mockitoSessionBuilderSet0.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet12);3507 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet17 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3508 boolean boolean19 = mockitoSessionBuilderSet17.remove((java.lang.Object) "$echo");3509 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder20 = org.mockito.Mockito.mockitoSession();3510 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray21 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder20 };3511 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList22 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();3512 boolean boolean23 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList22, mockitoSessionBuilderArray21);3513 java.util.Set<org.mockito.Mockito> mockitoSet24 = org.mockito.ArgumentMatchers.anySet();3514 java.util.stream.Stream<org.mockito.Mockito> mockitoStream25 = mockitoSet24.parallelStream();3515 boolean boolean26 = mockitoSessionBuilderList22.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet24);3516 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator27 = mockitoSet24.spliterator();3517 boolean boolean28 = mockitoSessionBuilderSet17.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet24);3518 boolean boolean29 = mockitoSessionBuilderSet0.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet24);3519 boolean boolean31 = mockitoSessionBuilderSet0.remove((java.lang.Object) ") is not an interface!");3520 // The following exception was thrown during execution in test generation3521 try {3522 org.mockito.stubbing.Stubber stubber32 = org.mockito.Mockito.doReturn((java.lang.Object) boolean31);3523 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.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.?");3524 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3525 // Expected exception.3526 }3527 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);3528 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray3);3529 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);3530 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);3531 org.junit.Assert.assertNotNull(mockitoSessionBuilder8);3532 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray9);3533 org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);3534 org.junit.Assert.assertNotNull(mockitoSet12);3535 org.junit.Assert.assertNotNull(mockitoStream13);3536 org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);3537 org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);3538 org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);3539 org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);3540 org.junit.Assert.assertNotNull(mockitoSessionBuilder20);3541 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray21);3542 org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);3543 org.junit.Assert.assertNotNull(mockitoSet24);3544 org.junit.Assert.assertNotNull(mockitoStream25);3545 org.junit.Assert.assertTrue("'" + boolean26 + "' != '" + true + "'", boolean26 == true);3546 org.junit.Assert.assertNotNull(mockitoSpliterator27);3547 org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + false + "'", boolean28 == false);3548 org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);3549 org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + false + "'", boolean31 == false);3550 }3551 @Test3552 public void test371() throws Throwable {3553 if (debug)3554 System.out.format("%n%s%n", "TestGroup100Case0.test371");3555 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3556 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};3557 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3558 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3559 loadingStrategyArrayHolder0.set(loadingStrategyArray1);3560 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3561 org.mockito.verification.VerificationMode verificationMode6 = org.mockito.Mockito.never();3562 // The following exception was thrown during execution in test generation3563 try {3564 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray7 = org.mockito.Mockito.verify(loadingStrategyArray1, verificationMode6);3565 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type LoadingStrategy[] 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();");3566 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3567 // Expected exception.3568 }3569 org.junit.Assert.assertNotNull(loadingStrategyArray1);3570 org.junit.Assert.assertNotNull(verificationMode6);3571 }3572 @Test3573 public void test372() throws Throwable {3574 if (debug)3575 System.out.format("%n%s%n", "TestGroup100Case0.test372");3576 double double1 = org.mockito.ArgumentMatchers.eq((double) 0.0f);3577 org.junit.Assert.assertTrue("'" + double1 + "' != '" + 0.0d + "'", double1 == 0.0d);3578 }3579 @Test3580 public void test373() throws Throwable {3581 if (debug)3582 System.out.format("%n%s%n", "TestGroup100Case0.test373");3583 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3584 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet1 = org.mockito.ArgumentMatchers.same(mockitoSessionBuilderSet0);3585 java.lang.String str2 = mockitoSessionBuilderSet0.toString();3586 boolean boolean4 = mockitoSessionBuilderSet0.equals((java.lang.Object) ", class file:");3587 org.junit.Assert.assertNull(mockitoSessionBuilderSet1);3588 org.junit.Assert.assertEquals("'" + str2 + "' != '" + "[]" + "'", str2, "[]");3589 org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);3590 }3591 @Test3592 public void test374() throws Throwable {3593 if (debug)3594 System.out.format("%n%s%n", "TestGroup100Case0.test374");3595 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3596 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder1 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3597 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray2 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};3598 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray2);3599 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray2);3600 loadingStrategyArrayHolder1.set(loadingStrategyArray2);3601 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray2);3602 loadingStrategyArrayHolder0.set(loadingStrategyArray2);3603 org.junit.Assert.assertNotNull(loadingStrategyArray2);3604 }3605 @Test3606 public void test375() throws Throwable {3607 if (debug)3608 System.out.format("%n%s%n", "TestGroup100Case0.test375");3609 java.lang.String str1 = org.mockito.ArgumentMatchers.endsWith("method");3610 org.junit.Assert.assertEquals("'" + str1 + "' != '" + "" + "'", str1, "");3611 }3612 @Test3613 public void test376() throws Throwable {3614 if (debug)3615 System.out.format("%n%s%n", "TestGroup100Case0.test376");3616 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3617 java.lang.Object[] objArray1 = mockitoSessionBuilderSet0.toArray();3618 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();3619 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder3 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder2);3620 // The following exception was thrown during execution in test generation3621 try {3622 boolean boolean4 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder3);3623 org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");3624 } catch (java.lang.NullPointerException e) {3625 // Expected exception.3626 }3627 org.junit.Assert.assertNotNull(objArray1);3628 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray1), "[]");3629 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray1), "[]");3630 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);3631 org.junit.Assert.assertNull(mockitoSessionBuilder3);3632 }3633 @Test3634 public void test377() throws Throwable {3635 if (debug)3636 System.out.format("%n%s%n", "TestGroup100Case0.test377");3637 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3638 mockitoSessionBuilderSet0.clear();3639 org.mockito.verification.VerificationMode verificationMode3 = org.mockito.Mockito.description("Extension name");3640 java.lang.Class<?> wildcardClass4 = verificationMode3.getClass();3641 org.apache.dubbo.common.extension.ExtensionLoader.resetExtensionLoader((java.lang.Class) wildcardClass4);3642 boolean boolean6 = mockitoSessionBuilderSet0.contains((java.lang.Object) wildcardClass4);3643 // The following exception was thrown during execution in test generation3644 try {3645 java.lang.reflect.AnnotatedElement annotatedElement7 = org.mockito.Mockito.spy((java.lang.reflect.AnnotatedElement) wildcardClass4);3646 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");3647 } catch (org.mockito.exceptions.base.MockitoException e) {3648 // Expected exception.3649 }3650 org.junit.Assert.assertNotNull(verificationMode3);3651 org.junit.Assert.assertNotNull(wildcardClass4);3652 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);3653 }3654 @Test3655 public void test378() throws Throwable {3656 if (debug)3657 System.out.format("%n%s%n", "TestGroup100Case0.test378");3658 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3659 mockitoSessionBuilderSet0.clear();3660 java.lang.Object[] objArray2 = mockitoSessionBuilderSet0.toArray();3661 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet4 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>(2147483647);3662 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder5 = org.mockito.Mockito.mockitoSession();3663 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray6 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder5 };3664 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList7 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();3665 boolean boolean8 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList7, mockitoSessionBuilderArray6);3666 java.util.Set<org.mockito.Mockito> mockitoSet9 = org.mockito.ArgumentMatchers.anySet();3667 java.util.stream.Stream<org.mockito.Mockito> mockitoStream10 = mockitoSet9.parallelStream();3668 boolean boolean11 = mockitoSessionBuilderList7.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet9);3669 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator12 = mockitoSet9.spliterator();3670 boolean boolean13 = mockitoSessionBuilderSet4.contains((java.lang.Object) mockitoSet9);3671 boolean boolean14 = mockitoSessionBuilderSet0.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet9);3672 org.junit.Assert.assertNotNull(objArray2);3673 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray2), "[]");3674 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray2), "[]");3675 org.junit.Assert.assertNotNull(mockitoSessionBuilder5);3676 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray6);3677 org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);3678 org.junit.Assert.assertNotNull(mockitoSet9);3679 org.junit.Assert.assertNotNull(mockitoStream10);3680 org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);3681 org.junit.Assert.assertNotNull(mockitoSpliterator12);3682 org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);3683 org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);3684 }3685 @Test3686 public void test379() throws Throwable {3687 if (debug)3688 System.out.format("%n%s%n", "TestGroup100Case0.test379");3689 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = org.mockito.ArgumentMatchers.isNull();3690 org.junit.Assert.assertNull(mockitoSessionBuilderSet0);3691 }3692 @Test3693 public void test380() throws Throwable {3694 if (debug)3695 System.out.format("%n%s%n", "TestGroup100Case0.test380");3696 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3697 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};3698 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3699 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3700 loadingStrategyArrayHolder0.set(loadingStrategyArray1);3701 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray5 = loadingStrategyArrayHolder0.get();3702 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray6 = loadingStrategyArrayHolder0.get();3703 // The following exception was thrown during execution in test generation3704 try {3705 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder7 = org.mockito.Mockito.verify(loadingStrategyArrayHolder0);3706 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Holder 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();");3707 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3708 // Expected exception.3709 }3710 org.junit.Assert.assertNotNull(loadingStrategyArray1);3711 org.junit.Assert.assertNotNull(loadingStrategyArray5);3712 org.junit.Assert.assertNotNull(loadingStrategyArray6);3713 }3714 @Test3715 public void test381() throws Throwable {3716 if (debug)3717 System.out.format("%n%s%n", "TestGroup100Case0.test381");3718 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.CONSUMER_SIDE;3719 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "consumer" + "'", str0, "consumer");3720 }3721 @Test3722 public void test382() throws Throwable {3723 if (debug)3724 System.out.format("%n%s%n", "TestGroup100Case0.test382");3725 java.util.Comparator<java.lang.Object> objComparator0 = org.mockito.ArgumentMatchers.isNull();3726 org.junit.Assert.assertNull(objComparator0);3727 }3728 @Test3729 public void test383() throws Throwable {3730 if (debug)3731 System.out.format("%n%s%n", "TestGroup100Case0.test383");3732 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet1 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>(2147483647);3733 java.lang.String str2 = mockitoSessionBuilderSet1.toString();3734 org.junit.Assert.assertEquals("'" + str2 + "' != '" + "[]" + "'", str2, "[]");3735 }3736 @Test3737 public void test384() throws Throwable {3738 if (debug)3739 System.out.format("%n%s%n", "TestGroup100Case0.test384");3740 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3741 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();3742 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);3743 boolean boolean3 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder1);3744 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet4 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3745 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder5 = org.mockito.Mockito.mockitoSession();3746 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder6 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder5);3747 boolean boolean7 = mockitoSessionBuilderSet4.add(mockitoSessionBuilder5);3748 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.Mockito.mockitoSession();3749 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray9 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder1, mockitoSessionBuilder5, mockitoSessionBuilder8 };3750 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet10 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3751 boolean boolean11 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet10, mockitoSessionBuilderArray9);3752 java.util.Iterator<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderItor12 = mockitoSessionBuilderSet10.iterator();3753 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);3754 org.junit.Assert.assertNull(mockitoSessionBuilder2);3755 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);3756 org.junit.Assert.assertNotNull(mockitoSessionBuilder5);3757 org.junit.Assert.assertNull(mockitoSessionBuilder6);3758 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);3759 org.junit.Assert.assertNotNull(mockitoSessionBuilder8);3760 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray9);3761 org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);3762 org.junit.Assert.assertNotNull(mockitoSessionBuilderItor12);3763 }3764 @Test3765 public void test385() throws Throwable {3766 if (debug)3767 System.out.format("%n%s%n", "TestGroup100Case0.test385");3768 java.lang.String str0 = org.apache.dubbo.common.constants.CommonConstants.ANYHOST_VALUE;3769 org.junit.Assert.assertEquals("'" + str0 + "' != '" + "0.0.0.0" + "'", str0, "0.0.0.0");3770 }3771 @Test3772 public void test386() throws Throwable {3773 if (debug)3774 System.out.format("%n%s%n", "TestGroup100Case0.test386");3775 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.description("Can't create adaptive extension");3776 org.mockito.verification.VerificationMode verificationMode3 = org.mockito.Mockito.calls(3);3777 // The following exception was thrown during execution in test generation3778 try {3779 org.mockito.verification.VerificationMode verificationMode4 = org.mockito.Mockito.verify(verificationMode1, verificationMode3);3780 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type Description 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();");3781 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3782 // Expected exception.3783 }3784 org.junit.Assert.assertNotNull(verificationMode1);3785 org.junit.Assert.assertNotNull(verificationMode3);3786 }3787 @Test3788 public void test387() throws Throwable {3789 if (debug)3790 System.out.format("%n%s%n", "TestGroup100Case0.test387");3791 org.mockito.verification.VerificationAfterDelay verificationAfterDelay2 = org.mockito.Mockito.after((long) '#');3792 org.mockito.verification.VerificationMode verificationMode3 = org.mockito.Mockito.atMostOnce();3793 java.lang.Class<?> wildcardClass4 = verificationMode3.getClass();3794 java.lang.String[] strArray10 = new java.lang.String[] { "true", "dubbo.migration.file", "s*[,]+s*", "Can't create adaptive extension", "org.apache" };3795 java.lang.reflect.Type type11 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.Type) wildcardClass4, strArray10);3796 org.mockito.verification.VerificationAfterDelay verificationAfterDelay12 = org.mockito.ArgumentMatchers.refEq(verificationAfterDelay2, strArray10);3797 // The following exception was thrown during execution in test generation3798 try {3799 java.lang.CharSequence charSequence13 = org.mockito.Mockito.verify((java.lang.CharSequence) "check", (org.mockito.verification.VerificationMode) verificationAfterDelay2);3800 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();");3801 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3802 // Expected exception.3803 }3804 org.junit.Assert.assertNotNull(verificationAfterDelay2);3805 org.junit.Assert.assertNotNull(verificationMode3);3806 org.junit.Assert.assertNotNull(wildcardClass4);3807 org.junit.Assert.assertNotNull(strArray10);3808 org.junit.Assert.assertNull(type11);3809 org.junit.Assert.assertNull(verificationAfterDelay12);3810 }3811 @Test3812 public void test388() throws Throwable {3813 if (debug)3814 System.out.format("%n%s%n", "TestGroup100Case0.test388");3815 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3816 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};3817 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3818 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3819 loadingStrategyArrayHolder0.set(loadingStrategyArray1);3820 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray5 = loadingStrategyArrayHolder0.get();3821 org.mockito.verification.VerificationMode verificationMode7 = org.mockito.Mockito.atMost((int) ',');3822 // The following exception was thrown during execution in test generation3823 try {3824 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray8 = org.mockito.Mockito.verify(loadingStrategyArray5, verificationMode7);3825 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.NotAMockException; message: ?Argument passed to verify() is of type LoadingStrategy[] 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();");3826 } catch (org.mockito.exceptions.misusing.NotAMockException e) {3827 // Expected exception.3828 }3829 org.junit.Assert.assertNotNull(loadingStrategyArray1);3830 org.junit.Assert.assertNotNull(loadingStrategyArray5);3831 org.junit.Assert.assertNotNull(verificationMode7);3832 }3833 @Test3834 public void test389() throws Throwable {3835 if (debug)3836 System.out.format("%n%s%n", "TestGroup100Case0.test389");3837 java.util.Set<java.lang.reflect.Type> typeSet0 = org.mockito.ArgumentMatchers.anySet();3838 org.junit.Assert.assertNotNull(typeSet0);3839 }3840 @Test3841 public void test390() throws Throwable {3842 if (debug)3843 System.out.format("%n%s%n", "TestGroup100Case0.test390");3844 java.lang.Comparable<java.lang.String> strComparable1 = org.mockito.ArgumentMatchers.eq((java.lang.Comparable<java.lang.String>) "servlet");3845 org.junit.Assert.assertNull(strComparable1);3846 }3847 @Test3848 public void test391() throws Throwable {3849 if (debug)3850 System.out.format("%n%s%n", "TestGroup100Case0.test391");3851 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet1 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>(0);3852 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet2 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3853 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder3 = org.mockito.Mockito.mockitoSession();3854 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder4 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder3);3855 boolean boolean5 = mockitoSessionBuilderSet2.add(mockitoSessionBuilder3);3856 java.util.Set<org.mockito.Mockito> mockitoSet6 = org.mockito.ArgumentMatchers.anySet();3857 java.util.stream.Stream<org.mockito.Mockito> mockitoStream7 = mockitoSet6.parallelStream();3858 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator8 = mockitoSet6.spliterator();3859 boolean boolean9 = mockitoSessionBuilderSet2.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet6);3860 java.util.Set<org.mockito.Mockito> mockitoSet10 = org.mockito.ArgumentMatchers.eq(mockitoSet6);3861 // The following exception was thrown during execution in test generation3862 try {3863 boolean boolean11 = mockitoSessionBuilderSet1.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet10);3864 org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");3865 } catch (java.lang.NullPointerException e) {3866 // Expected exception.3867 }3868 org.junit.Assert.assertNotNull(mockitoSessionBuilder3);3869 org.junit.Assert.assertNull(mockitoSessionBuilder4);3870 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);3871 org.junit.Assert.assertNotNull(mockitoSet6);3872 org.junit.Assert.assertNotNull(mockitoStream7);3873 org.junit.Assert.assertNotNull(mockitoSpliterator8);3874 org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);3875 org.junit.Assert.assertNull(mockitoSet10);3876 }3877 @Test3878 public void test392() throws Throwable {3879 if (debug)3880 System.out.format("%n%s%n", "TestGroup100Case0.test392");3881 java.util.List<java.util.Spliterator<org.mockito.Mockito>> mockitoSpliteratorList0 = org.mockito.ArgumentMatchers.anyList();3882 org.junit.Assert.assertNotNull(mockitoSpliteratorList0);3883 }3884 @Test3885 public void test393() throws Throwable {3886 if (debug)3887 System.out.format("%n%s%n", "TestGroup100Case0.test393");3888 java.util.List<java.util.HashSet<org.mockito.session.MockitoSessionBuilder>> mockitoSessionBuilderSetList0 = org.mockito.ArgumentMatchers.anyList();3889 org.junit.Assert.assertNotNull(mockitoSessionBuilderSetList0);3890 }3891 @Test3892 public void test394() throws Throwable {3893 if (debug)3894 System.out.format("%n%s%n", "TestGroup100Case0.test394");3895 char char1 = org.mockito.ArgumentMatchers.eq('\000');3896 org.junit.Assert.assertTrue("'" + char1 + "' != '" + '\000' + "'", char1 == '\000');3897 }3898 @Test3899 public void test395() throws Throwable {3900 if (debug)3901 System.out.format("%n%s%n", "TestGroup100Case0.test395");3902 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3903 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMostOnce();3904 boolean boolean2 = mockitoSessionBuilderSet0.contains((java.lang.Object) verificationMode1);3905 java.util.Iterator<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderItor3 = mockitoSessionBuilderSet0.iterator();3906 org.junit.Assert.assertNotNull(verificationMode1);3907 org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);3908 org.junit.Assert.assertNotNull(mockitoSessionBuilderItor3);3909 }3910 @Test3911 public void test396() throws Throwable {3912 if (debug)3913 System.out.format("%n%s%n", "TestGroup100Case0.test396");3914 long long1 = org.mockito.ArgumentMatchers.eq((long) '\000');3915 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);3916 }3917 @Test3918 public void test397() throws Throwable {3919 if (debug)3920 System.out.format("%n%s%n", "TestGroup100Case0.test397");3921 byte byte1 = org.mockito.ArgumentMatchers.eq((byte) 100);3922 org.junit.Assert.assertTrue("'" + byte1 + "' != '" + (byte) 0 + "'", byte1 == (byte) 0);3923 }3924 @Test3925 public void test398() throws Throwable {3926 if (debug)3927 System.out.format("%n%s%n", "TestGroup100Case0.test398");3928 long long1 = org.mockito.ArgumentMatchers.eq((long) (short) 10);3929 org.junit.Assert.assertTrue("'" + long1 + "' != '" + 0L + "'", long1 == 0L);3930 }3931 @Test3932 public void test399() throws Throwable {3933 if (debug)3934 System.out.format("%n%s%n", "TestGroup100Case0.test399");3935 org.mockito.stubbing.Answer<java.lang.Object> objAnswer0 = org.mockito.Mockito.RETURNS_SELF;3936 // The following exception was thrown during execution in test generation3937 try {3938 org.mockito.stubbing.Stubber stubber1 = org.mockito.Mockito.doAnswer((org.mockito.stubbing.Answer) objAnswer0);3939 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.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.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.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.?");3940 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {3941 // Expected exception.3942 }3943 org.junit.Assert.assertTrue("'" + objAnswer0 + "' != '" + org.mockito.Answers.RETURNS_SELF + "'", objAnswer0.equals(org.mockito.Answers.RETURNS_SELF));3944 }3945 @Test3946 public void test400() throws Throwable {3947 if (debug)3948 System.out.format("%n%s%n", "TestGroup100Case0.test400");3949 java.util.regex.Pattern pattern0 = org.mockito.ArgumentMatchers.notNull();3950 org.junit.Assert.assertNull(pattern0);3951 }3952 @Test3953 public void test401() throws Throwable {3954 if (debug)3955 System.out.format("%n%s%n", "TestGroup100Case0.test401");3956 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();3957 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};3958 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3959 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3960 loadingStrategyArrayHolder0.set(loadingStrategyArray1);3961 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3962 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);3963 org.junit.Assert.assertNotNull(loadingStrategyArray1);3964 }3965 @Test3966 public void test402() throws Throwable {3967 if (debug)3968 System.out.format("%n%s%n", "TestGroup100Case0.test402");3969 float float1 = org.mockito.ArgumentMatchers.eq(0.0f);3970 org.junit.Assert.assertTrue("'" + float1 + "' != '" + 0.0f + "'", float1 == 0.0f);3971 }3972 @Test3973 public void test403() throws Throwable {3974 if (debug)3975 System.out.format("%n%s%n", "TestGroup100Case0.test403");3976 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3977 mockitoSessionBuilderSet0.clear();3978 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.Mockito.mockitoSession();3979 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray3 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder2 };3980 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet4 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();3981 boolean boolean5 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet4, mockitoSessionBuilderArray3);3982 boolean boolean7 = mockitoSessionBuilderSet4.equals((java.lang.Object) "anyhost");3983 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder8 = org.mockito.Mockito.mockitoSession();3984 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray9 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder8 };3985 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList10 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();3986 boolean boolean11 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList10, mockitoSessionBuilderArray9);3987 java.util.Set<org.mockito.Mockito> mockitoSet12 = org.mockito.ArgumentMatchers.anySet();3988 java.util.stream.Stream<org.mockito.Mockito> mockitoStream13 = mockitoSet12.parallelStream();3989 boolean boolean14 = mockitoSessionBuilderList10.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet12);3990 boolean boolean15 = mockitoSessionBuilderSet4.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet12);3991 boolean boolean16 = mockitoSessionBuilderSet0.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet12);3992 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet17 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();3993 boolean boolean19 = mockitoSessionBuilderSet17.remove((java.lang.Object) "$echo");3994 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder20 = org.mockito.Mockito.mockitoSession();3995 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray21 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder20 };3996 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList22 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();3997 boolean boolean23 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList22, mockitoSessionBuilderArray21);3998 java.util.Set<org.mockito.Mockito> mockitoSet24 = org.mockito.ArgumentMatchers.anySet();3999 java.util.stream.Stream<org.mockito.Mockito> mockitoStream25 = mockitoSet24.parallelStream();4000 boolean boolean26 = mockitoSessionBuilderList22.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet24);4001 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator27 = mockitoSet24.spliterator();4002 boolean boolean28 = mockitoSessionBuilderSet17.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet24);4003 boolean boolean29 = mockitoSessionBuilderSet0.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet24);4004 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet30 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4005 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder31 = org.mockito.Mockito.mockitoSession();4006 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder32 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder31);4007 boolean boolean33 = mockitoSessionBuilderSet30.add(mockitoSessionBuilder31);4008 java.util.Set<org.mockito.Mockito> mockitoSet34 = org.mockito.ArgumentMatchers.anySet();4009 java.util.stream.Stream<org.mockito.Mockito> mockitoStream35 = mockitoSet34.parallelStream();4010 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator36 = mockitoSet34.spliterator();4011 boolean boolean37 = mockitoSessionBuilderSet30.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet34);4012 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator38 = mockitoSet34.spliterator();4013 java.util.stream.Stream<org.mockito.Mockito> mockitoStream39 = mockitoSet34.stream();4014 boolean boolean40 = mockitoSessionBuilderSet0.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet34);4015 org.junit.Assert.assertNotNull(mockitoSessionBuilder2);4016 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray3);4017 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);4018 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);4019 org.junit.Assert.assertNotNull(mockitoSessionBuilder8);4020 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray9);4021 org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);4022 org.junit.Assert.assertNotNull(mockitoSet12);4023 org.junit.Assert.assertNotNull(mockitoStream13);4024 org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);4025 org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);4026 org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);4027 org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);4028 org.junit.Assert.assertNotNull(mockitoSessionBuilder20);4029 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray21);4030 org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);4031 org.junit.Assert.assertNotNull(mockitoSet24);4032 org.junit.Assert.assertNotNull(mockitoStream25);4033 org.junit.Assert.assertTrue("'" + boolean26 + "' != '" + true + "'", boolean26 == true);4034 org.junit.Assert.assertNotNull(mockitoSpliterator27);4035 org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + false + "'", boolean28 == false);4036 org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);4037 org.junit.Assert.assertNotNull(mockitoSessionBuilder31);4038 org.junit.Assert.assertNull(mockitoSessionBuilder32);4039 org.junit.Assert.assertTrue("'" + boolean33 + "' != '" + true + "'", boolean33 == true);4040 org.junit.Assert.assertNotNull(mockitoSet34);4041 org.junit.Assert.assertNotNull(mockitoStream35);4042 org.junit.Assert.assertNotNull(mockitoSpliterator36);4043 org.junit.Assert.assertTrue("'" + boolean37 + "' != '" + false + "'", boolean37 == false);4044 org.junit.Assert.assertNotNull(mockitoSpliterator38);4045 org.junit.Assert.assertNotNull(mockitoStream39);4046 org.junit.Assert.assertTrue("'" + boolean40 + "' != '" + true + "'", boolean40 == true);4047 }4048 @Test4049 public void test404() throws Throwable {4050 if (debug)4051 System.out.format("%n%s%n", "TestGroup100Case0.test404");4052 java.util.Map<java.util.stream.Stream<org.mockito.Mockito>, java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>> mockitoStreamMap0 = org.mockito.ArgumentMatchers.anyMap();4053 org.junit.Assert.assertNotNull(mockitoStreamMap0);4054 }4055 @Test4056 public void test405() throws Throwable {4057 if (debug)4058 System.out.format("%n%s%n", "TestGroup100Case0.test405");4059 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4060 boolean boolean2 = mockitoSessionBuilderSet0.remove((java.lang.Object) "$echo");4061 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder3 = org.mockito.Mockito.mockitoSession();4062 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray4 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder3 };4063 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList5 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();4064 boolean boolean6 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList5, mockitoSessionBuilderArray4);4065 java.util.Set<org.mockito.Mockito> mockitoSet7 = org.mockito.ArgumentMatchers.anySet();4066 java.util.stream.Stream<org.mockito.Mockito> mockitoStream8 = mockitoSet7.parallelStream();4067 boolean boolean9 = mockitoSessionBuilderList5.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet7);4068 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder10 = org.mockito.Mockito.mockitoSession();4069 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray11 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder10 };4070 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet12 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();4071 boolean boolean13 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet12, mockitoSessionBuilderArray11);4072 boolean boolean15 = mockitoSessionBuilderSet12.equals((java.lang.Object) "anyhost");4073 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder16 = org.mockito.Mockito.mockitoSession();4074 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray17 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder16 };4075 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList18 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();4076 boolean boolean19 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList18, mockitoSessionBuilderArray17);4077 java.util.Set<org.mockito.Mockito> mockitoSet20 = org.mockito.ArgumentMatchers.anySet();4078 java.util.stream.Stream<org.mockito.Mockito> mockitoStream21 = mockitoSet20.parallelStream();4079 boolean boolean22 = mockitoSessionBuilderList18.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet20);4080 boolean boolean23 = mockitoSessionBuilderSet12.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet20);4081 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet24 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4082 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder25 = org.mockito.Mockito.mockitoSession();4083 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder26 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder25);4084 boolean boolean27 = mockitoSessionBuilderSet24.add(mockitoSessionBuilder25);4085 java.util.Set<org.mockito.Mockito> mockitoSet28 = org.mockito.ArgumentMatchers.anySet();4086 java.util.stream.Stream<org.mockito.Mockito> mockitoStream29 = mockitoSet28.parallelStream();4087 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator30 = mockitoSet28.spliterator();4088 boolean boolean31 = mockitoSessionBuilderSet24.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet28);4089 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet32 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4090 mockitoSessionBuilderSet32.clear();4091 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder34 = org.mockito.Mockito.mockitoSession();4092 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray35 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder34 };4093 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet36 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();4094 boolean boolean37 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet36, mockitoSessionBuilderArray35);4095 boolean boolean39 = mockitoSessionBuilderSet36.equals((java.lang.Object) "anyhost");4096 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder40 = org.mockito.Mockito.mockitoSession();4097 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray41 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder40 };4098 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList42 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();4099 boolean boolean43 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList42, mockitoSessionBuilderArray41);4100 java.util.Set<org.mockito.Mockito> mockitoSet44 = org.mockito.ArgumentMatchers.anySet();4101 java.util.stream.Stream<org.mockito.Mockito> mockitoStream45 = mockitoSet44.parallelStream();4102 boolean boolean46 = mockitoSessionBuilderList42.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet44);4103 boolean boolean47 = mockitoSessionBuilderSet36.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet44);4104 boolean boolean48 = mockitoSessionBuilderSet32.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet44);4105 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet49 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4106 mockitoSessionBuilderSet49.clear();4107 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder51 = org.mockito.Mockito.mockitoSession();4108 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray52 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder51 };4109 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet53 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();4110 boolean boolean54 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet53, mockitoSessionBuilderArray52);4111 boolean boolean56 = mockitoSessionBuilderSet53.equals((java.lang.Object) "anyhost");4112 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder57 = org.mockito.Mockito.mockitoSession();4113 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray58 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder57 };4114 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList59 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();4115 boolean boolean60 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList59, mockitoSessionBuilderArray58);4116 java.util.Set<org.mockito.Mockito> mockitoSet61 = org.mockito.ArgumentMatchers.anySet();4117 java.util.stream.Stream<org.mockito.Mockito> mockitoStream62 = mockitoSet61.parallelStream();4118 boolean boolean63 = mockitoSessionBuilderList59.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet61);4119 boolean boolean64 = mockitoSessionBuilderSet53.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet61);4120 boolean boolean65 = mockitoSessionBuilderSet49.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet61);4121 java.util.AbstractCollection[] abstractCollectionArray67 = new java.util.AbstractCollection[5];4122 @SuppressWarnings("unchecked")4123 java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>[] mockitoSessionBuilderCollectionArray68 = (java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>[]) abstractCollectionArray67;4124 mockitoSessionBuilderCollectionArray68[0] = mockitoSessionBuilderList5;4125 mockitoSessionBuilderCollectionArray68[1] = mockitoSessionBuilderSet12;4126 mockitoSessionBuilderCollectionArray68[2] = mockitoSessionBuilderSet24;4127 mockitoSessionBuilderCollectionArray68[3] = mockitoSessionBuilderSet32;4128 mockitoSessionBuilderCollectionArray68[4] = mockitoSessionBuilderSet49;4129 java.util.AbstractCollection<org.mockito.session.MockitoSessionBuilder>[] mockitoSessionBuilderCollectionArray79 = mockitoSessionBuilderSet0.toArray(mockitoSessionBuilderCollectionArray68);4130 // The following exception was thrown during execution in test generation4131 try {4132 org.mockito.Mockito.verifyZeroInteractions((java.lang.Object[]) mockitoSessionBuilderCollectionArray79);4133 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.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)?-> at sun.reflect.GeneratedMethodAccessor7.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.?");4134 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4135 // Expected exception.4136 }4137 org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);4138 org.junit.Assert.assertNotNull(mockitoSessionBuilder3);4139 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray4);4140 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);4141 org.junit.Assert.assertNotNull(mockitoSet7);4142 org.junit.Assert.assertNotNull(mockitoStream8);4143 org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);4144 org.junit.Assert.assertNotNull(mockitoSessionBuilder10);4145 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray11);4146 org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);4147 org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);4148 org.junit.Assert.assertNotNull(mockitoSessionBuilder16);4149 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray17);4150 org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + true + "'", boolean19 == true);4151 org.junit.Assert.assertNotNull(mockitoSet20);4152 org.junit.Assert.assertNotNull(mockitoStream21);4153 org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + true + "'", boolean22 == true);4154 org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);4155 org.junit.Assert.assertNotNull(mockitoSessionBuilder25);4156 org.junit.Assert.assertNull(mockitoSessionBuilder26);4157 org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + true + "'", boolean27 == true);4158 org.junit.Assert.assertNotNull(mockitoSet28);4159 org.junit.Assert.assertNotNull(mockitoStream29);4160 org.junit.Assert.assertNotNull(mockitoSpliterator30);4161 org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + false + "'", boolean31 == false);4162 org.junit.Assert.assertNotNull(mockitoSessionBuilder34);4163 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray35);4164 org.junit.Assert.assertTrue("'" + boolean37 + "' != '" + true + "'", boolean37 == true);4165 org.junit.Assert.assertTrue("'" + boolean39 + "' != '" + false + "'", boolean39 == false);4166 org.junit.Assert.assertNotNull(mockitoSessionBuilder40);4167 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray41);4168 org.junit.Assert.assertTrue("'" + boolean43 + "' != '" + true + "'", boolean43 == true);4169 org.junit.Assert.assertNotNull(mockitoSet44);4170 org.junit.Assert.assertNotNull(mockitoStream45);4171 org.junit.Assert.assertTrue("'" + boolean46 + "' != '" + true + "'", boolean46 == true);4172 org.junit.Assert.assertTrue("'" + boolean47 + "' != '" + true + "'", boolean47 == true);4173 org.junit.Assert.assertTrue("'" + boolean48 + "' != '" + true + "'", boolean48 == true);4174 org.junit.Assert.assertNotNull(mockitoSessionBuilder51);4175 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray52);4176 org.junit.Assert.assertTrue("'" + boolean54 + "' != '" + true + "'", boolean54 == true);4177 org.junit.Assert.assertTrue("'" + boolean56 + "' != '" + false + "'", boolean56 == false);4178 org.junit.Assert.assertNotNull(mockitoSessionBuilder57);4179 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray58);4180 org.junit.Assert.assertTrue("'" + boolean60 + "' != '" + true + "'", boolean60 == true);4181 org.junit.Assert.assertNotNull(mockitoSet61);4182 org.junit.Assert.assertNotNull(mockitoStream62);4183 org.junit.Assert.assertTrue("'" + boolean63 + "' != '" + true + "'", boolean63 == true);4184 org.junit.Assert.assertTrue("'" + boolean64 + "' != '" + true + "'", boolean64 == true);4185 org.junit.Assert.assertTrue("'" + boolean65 + "' != '" + true + "'", boolean65 == true);4186 org.junit.Assert.assertNotNull(abstractCollectionArray67);4187 org.junit.Assert.assertNotNull(mockitoSessionBuilderCollectionArray68);4188 org.junit.Assert.assertNotNull(mockitoSessionBuilderCollectionArray79);4189 }4190 @Test4191 public void test406() throws Throwable {4192 if (debug)4193 System.out.format("%n%s%n", "TestGroup100Case0.test406");4194 org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]> loadingStrategyArrayHolder0 = new org.apache.dubbo.common.utils.Holder<org.apache.dubbo.common.extension.LoadingStrategy[]>();4195 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray1 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};4196 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);4197 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray1);4198 loadingStrategyArrayHolder0.set(loadingStrategyArray1);4199 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray5 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};4200 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray5);4201 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray5);4202 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray5);4203 loadingStrategyArrayHolder0.set(loadingStrategyArray5);4204 org.apache.dubbo.common.extension.LoadingStrategy[] loadingStrategyArray10 = new org.apache.dubbo.common.extension.LoadingStrategy[] {};4205 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray10);4206 org.apache.dubbo.common.extension.ExtensionLoader.setLoadingStrategies(loadingStrategyArray10);4207 loadingStrategyArrayHolder0.set(loadingStrategyArray10);4208 org.junit.Assert.assertNotNull(loadingStrategyArray1);4209 org.junit.Assert.assertNotNull(loadingStrategyArray5);4210 org.junit.Assert.assertNotNull(loadingStrategyArray10);4211 }4212 @Test4213 public void test407() throws Throwable {4214 if (debug)4215 System.out.format("%n%s%n", "TestGroup100Case0.test407");4216 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();4217 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray1 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0 };4218 java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet2 = new java.util.LinkedHashSet<org.mockito.session.MockitoSessionBuilder>();4219 boolean boolean3 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderSet2, mockitoSessionBuilderArray1);4220 boolean boolean5 = mockitoSessionBuilderSet2.equals((java.lang.Object) "anyhost");4221 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder6 = org.mockito.Mockito.mockitoSession();4222 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray7 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder6 };4223 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList8 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();4224 boolean boolean9 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList8, mockitoSessionBuilderArray7);4225 java.util.Set<org.mockito.Mockito> mockitoSet10 = org.mockito.ArgumentMatchers.anySet();4226 java.util.stream.Stream<org.mockito.Mockito> mockitoStream11 = mockitoSet10.parallelStream();4227 boolean boolean12 = mockitoSessionBuilderList8.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet10);4228 boolean boolean13 = mockitoSessionBuilderSet2.containsAll((java.util.Collection<org.mockito.Mockito>) mockitoSet10);4229 java.lang.Object[] objArray14 = mockitoSessionBuilderSet2.toArray();4230 // The following exception was thrown during execution in test generation4231 try {4232 org.mockito.Mockito.verifyNoMoreInteractions(objArray14);4233 org.junit.Assert.fail("Expected exception of type org.mockito.exceptions.misusing.InvalidUseOfMatchersException; message: ?Misplaced or misused argument matcher detected here:??-> at sun.reflect.GeneratedMethodAccessor7.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.?");4234 } catch (org.mockito.exceptions.misusing.InvalidUseOfMatchersException e) {4235 // Expected exception.4236 }4237 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);4238 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray1);4239 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);4240 org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);4241 org.junit.Assert.assertNotNull(mockitoSessionBuilder6);4242 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray7);4243 org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);4244 org.junit.Assert.assertNotNull(mockitoSet10);4245 org.junit.Assert.assertNotNull(mockitoStream11);4246 org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);4247 org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);4248 org.junit.Assert.assertNotNull(objArray14);4249 }4250 @Test4251 public void test408() throws Throwable {4252 if (debug)4253 System.out.format("%n%s%n", "TestGroup100Case0.test408");4254 org.mockito.verification.VerificationWithTimeout verificationWithTimeout1 = org.mockito.Mockito.timeout((long) (short) 1);4255 org.junit.Assert.assertNotNull(verificationWithTimeout1);4256 }4257 @Test4258 public void test409() throws Throwable {4259 if (debug)4260 System.out.format("%n%s%n", "TestGroup100Case0.test409");4261 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4262 mockitoSessionBuilderSet0.clear();4263 java.util.Iterator<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderItor2 = mockitoSessionBuilderSet0.iterator();4264 org.junit.Assert.assertNotNull(mockitoSessionBuilderItor2);4265 }4266 @Test4267 public void test410() throws Throwable {4268 if (debug)4269 System.out.format("%n%s%n", "TestGroup100Case0.test410");4270 java.util.Collection<org.mockito.ArgumentMatchers> argumentMatchersCollection0 = org.mockito.ArgumentMatchers.anyCollection();4271 org.junit.Assert.assertNotNull(argumentMatchersCollection0);4272 }4273 @Test4274 public void test411() throws Throwable {4275 if (debug)4276 System.out.format("%n%s%n", "TestGroup100Case0.test411");4277 java.util.stream.Stream<org.mockito.Mockito> mockitoStream0 = org.mockito.ArgumentMatchers.notNull();4278 org.junit.Assert.assertNull(mockitoStream0);4279 }4280 @Test4281 public void test412() throws Throwable {4282 if (debug)4283 System.out.format("%n%s%n", "TestGroup100Case0.test412");4284 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder0 = org.mockito.Mockito.mockitoSession();4285 org.mockito.session.MockitoSessionBuilder[] mockitoSessionBuilderArray1 = new org.mockito.session.MockitoSessionBuilder[] { mockitoSessionBuilder0 };4286 java.util.ArrayList<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderList2 = new java.util.ArrayList<org.mockito.session.MockitoSessionBuilder>();4287 boolean boolean3 = java.util.Collections.addAll((java.util.Collection<org.mockito.session.MockitoSessionBuilder>) mockitoSessionBuilderList2, mockitoSessionBuilderArray1);4288 java.util.Set<org.mockito.Mockito> mockitoSet4 = org.mockito.ArgumentMatchers.anySet();4289 java.util.stream.Stream<org.mockito.Mockito> mockitoStream5 = mockitoSet4.parallelStream();4290 boolean boolean6 = mockitoSessionBuilderList2.retainAll((java.util.Collection<org.mockito.Mockito>) mockitoSet4);4291 java.lang.Object[] objArray7 = mockitoSessionBuilderList2.toArray();4292 org.junit.Assert.assertNotNull(mockitoSessionBuilder0);4293 org.junit.Assert.assertNotNull(mockitoSessionBuilderArray1);4294 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);4295 org.junit.Assert.assertNotNull(mockitoSet4);4296 org.junit.Assert.assertNotNull(mockitoStream5);4297 org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);4298 org.junit.Assert.assertNotNull(objArray7);4299 org.junit.Assert.assertEquals(java.util.Arrays.deepToString(objArray7), "[]");4300 org.junit.Assert.assertEquals(java.util.Arrays.toString(objArray7), "[]");4301 }4302 @Test4303 public void test413() throws Throwable {4304 if (debug)4305 System.out.format("%n%s%n", "TestGroup100Case0.test413");4306 org.mockito.verification.VerificationMode verificationMode1 = org.mockito.Mockito.atMost((int) (byte) 0);4307 org.junit.Assert.assertNotNull(verificationMode1);4308 }4309 @Test4310 public void test414() throws Throwable {4311 if (debug)4312 System.out.format("%n%s%n", "TestGroup100Case0.test414");4313 java.util.List<java.util.stream.Stream<org.mockito.Mockito>> mockitoStreamList0 = org.mockito.ArgumentMatchers.anyList();4314 org.junit.Assert.assertNotNull(mockitoStreamList0);4315 }4316 @Test4317 public void test415() throws Throwable {4318 if (debug)4319 System.out.format("%n%s%n", "TestGroup100Case0.test415");4320 org.mockito.verification.VerificationWithTimeout verificationWithTimeout0 = org.mockito.ArgumentMatchers.isNotNull();4321 org.junit.Assert.assertNull(verificationWithTimeout0);4322 }4323 @Test4324 public void test416() throws Throwable {4325 if (debug)4326 System.out.format("%n%s%n", "TestGroup100Case0.test416");4327 java.lang.Object[] objArray0 = org.mockito.ArgumentMatchers.any();4328 org.junit.Assert.assertNull(objArray0);4329 }4330 @Test4331 public void test417() throws Throwable {4332 if (debug)4333 System.out.format("%n%s%n", "TestGroup100Case0.test417");4334 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4335 boolean boolean2 = mockitoSessionBuilderSet0.remove((java.lang.Object) "$echo");4336 boolean boolean4 = mockitoSessionBuilderSet0.contains((java.lang.Object) "async-thread-num");4337 org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);4338 org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);4339 }4340 @Test4341 public void test418() throws Throwable {4342 if (debug)4343 System.out.format("%n%s%n", "TestGroup100Case0.test418");4344 java.util.Set<org.mockito.Mockito> mockitoSet0 = org.mockito.ArgumentMatchers.anySet();4345 java.util.stream.Stream<org.mockito.Mockito> mockitoStream1 = mockitoSet0.stream();4346 org.junit.Assert.assertNotNull(mockitoSet0);4347 org.junit.Assert.assertNotNull(mockitoStream1);4348 }4349 @Test4350 public void test419() throws Throwable {4351 if (debug)4352 System.out.format("%n%s%n", "TestGroup100Case0.test419");4353 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4354 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();4355 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);4356 boolean boolean3 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder1);4357 java.util.Set<org.mockito.Mockito> mockitoSet4 = org.mockito.ArgumentMatchers.anySet();4358 java.util.stream.Stream<org.mockito.Mockito> mockitoStream5 = mockitoSet4.parallelStream();4359 java.util.Spliterator<org.mockito.Mockito> mockitoSpliterator6 = mockitoSet4.spliterator();4360 boolean boolean7 = mockitoSessionBuilderSet0.removeAll((java.util.Collection<org.mockito.Mockito>) mockitoSet4);4361 java.lang.String str8 = mockitoSessionBuilderSet0.toString();4362 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);4363 org.junit.Assert.assertNull(mockitoSessionBuilder2);4364 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);4365 org.junit.Assert.assertNotNull(mockitoSet4);4366 org.junit.Assert.assertNotNull(mockitoStream5);4367 org.junit.Assert.assertNotNull(mockitoSpliterator6);4368 org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);4369 }4370 @Test4371 public void test420() throws Throwable {4372 if (debug)4373 System.out.format("%n%s%n", "TestGroup100Case0.test420");4374 org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder> mockitoSessionBuilderSet0 = new org.apache.dubbo.common.utils.ConcurrentHashSet<org.mockito.session.MockitoSessionBuilder>();4375 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder1 = org.mockito.Mockito.mockitoSession();4376 org.mockito.session.MockitoSessionBuilder mockitoSessionBuilder2 = org.mockito.ArgumentMatchers.eq(mockitoSessionBuilder1);4377 boolean boolean3 = mockitoSessionBuilderSet0.add(mockitoSessionBuilder1);4378 org.mockito.verification.VerificationMode verificationMode4 = org.mockito.Mockito.atMostOnce();4379 java.lang.Class<?> wildcardClass5 = verificationMode4.getClass();4380 java.lang.String[] strArray11 = new java.lang.String[] { "true", "dubbo.migration.file", "s*[,]+s*", "Can't create adaptive extension", "org.apache" };4381 java.lang.reflect.Type type12 = org.mockito.ArgumentMatchers.refEq((java.lang.reflect.Type) wildcardClass5, strArray11);4382 // The following exception was thrown during execution in test generation4383 try {4384 java.lang.CharSequence[] charSequenceArray13 = mockitoSessionBuilderSet0.toArray((java.lang.CharSequence[]) strArray11);4385 org.junit.Assert.fail("Expected exception of type java.lang.ArrayStoreException; message: org.mockito.internal.session.DefaultMockitoSessionBuilder");4386 } catch (java.lang.ArrayStoreException e) {4387 // Expected exception.4388 }4389 org.junit.Assert.assertNotNull(mockitoSessionBuilder1);4390 org.junit.Assert.assertNull(mockitoSessionBuilder2);4391 org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);4392 org.junit.Assert.assertNotNull(verificationMode4);4393 org.junit.Assert.assertNotNull(wildcardClass5);4394 org.junit.Assert.assertNotNull(strArray11);4395 org.junit.Assert.assertNull(type12);4396 }4397 @Test4398 public void test421() throws Throwable {4399 if (debug)...

Full Screen

Full Screen

Source:StaticMockitoSessionBuilder.java Github

copy

Full Screen

...17import org.mockito.MockSettings;18import org.mockito.Mockito;19import org.mockito.exceptions.misusing.UnfinishedMockingSessionException;20import org.mockito.quality.Strictness;21import org.mockito.session.MockitoSessionBuilder;22import org.mockito.session.MockitoSessionLogger;23import org.mockito.stubbing.Answer;24import java.util.ArrayList;25import static org.mockito.Mockito.CALLS_REAL_METHODS;26import static org.mockito.Mockito.withSettings;27/**28 * Same as {@link MockitoSessionBuilder} but adds the ability to stub static methods29 * calls via {@link #mockStatic(Class)}, {@link #mockStatic(Class, Answer)}, and30 * {@link #mockStatic(Class, MockSettings)};31 * <p>All mocks/spies will be reset once the session is finished.32 */33@UnstableApi34public class StaticMockitoSessionBuilder implements MockitoSessionBuilder {35 private final ArrayList<StaticMocking> staticMockings = new ArrayList<>(0);36 private MockitoSessionBuilder instanceSessionBuilder;37 StaticMockitoSessionBuilder(MockitoSessionBuilder instanceSessionBuilder) {38 this.instanceSessionBuilder = instanceSessionBuilder;39 }40 /**41 * Sets up mocking for all static methods of a class. All methods will return the default value.42 * <p>This changes the behavior of <u>all</u> static methods calls for <u>all</u>43 * invocations. In most cases using {@link #spyStatic(Class)} and stubbing only a few44 * methods can be used.45 *46 * @param clazz The class to set up static mocking for47 * @return This builder48 */49 @UnstableApi50 public <T> StaticMockitoSessionBuilder mockStatic(Class<T> clazz) {51 staticMockings.add(new StaticMocking<>(clazz, () -> Mockito.mock(clazz)));52 return this;53 }54 /**55 * Sets up mocking for sall tatic methods of a class. All methods will call the {@code56 * defaultAnswer}.57 * <p>This changes the behavior of <u>all</u> static methods calls for <u>all</u>58 * invocations. In most cases using {@link #spyStatic(Class)} and stubbing only a few59 * methods can be used.60 *61 * @param clazz The class to set up static mocking for62 * @param defaultAnswer The answer to return by default63 * @return This builder64 */65 @UnstableApi66 public <T> StaticMockitoSessionBuilder mockStatic(Class<T> clazz, Answer defaultAnswer) {67 staticMockings.add(new StaticMocking<>(clazz, () -> Mockito.mock(clazz, defaultAnswer)));68 return this;69 }70 /**71 * Sets up mocking for all static methods of a class with custom {@link MockSettings}.72 * <p>This changes the behavior of <u>all</u> static methods calls for <u>all</u>73 * invocations. In most cases using {@link #spyStatic(Class)} and stubbing only a few74 * methods can be used.75 *76 * @param clazz The class to set up static mocking for77 * @param settings Settings used to set up the mock.78 * @return This builder79 */80 @UnstableApi81 public <T> StaticMockitoSessionBuilder mockStatic(Class<T> clazz, MockSettings settings) {82 staticMockings.add(new StaticMocking<>(clazz, () -> Mockito.mock(clazz, settings)));83 return this;84 }85 /**86 * Sets up spying for static methods of a class.87 *88 * @param clazz The class to set up static spying for89 * @return This builder90 */91 @UnstableApi92 public <T> StaticMockitoSessionBuilder spyStatic(Class<T> clazz) {93 staticMockings.add(new StaticMocking<>(clazz, () -> Mockito.mock(clazz, withSettings()94 .defaultAnswer(CALLS_REAL_METHODS))));95 return this;96 }97 @Override98 public StaticMockitoSessionBuilder initMocks(Object testClassInstance) {99 instanceSessionBuilder = instanceSessionBuilder.initMocks(testClassInstance);100 return this;101 }102 @Override103 public StaticMockitoSessionBuilder initMocks(Object... testClassInstances) {104 instanceSessionBuilder = instanceSessionBuilder.initMocks(testClassInstances);105 return this;106 }107 @Override108 public StaticMockitoSessionBuilder name(String name) {109 instanceSessionBuilder = instanceSessionBuilder.name(name);110 return this;111 }112 @Override113 public StaticMockitoSessionBuilder strictness(Strictness strictness) {114 instanceSessionBuilder = instanceSessionBuilder.strictness(strictness);115 return this;116 }117 @Override118 public StaticMockitoSessionBuilder logger(MockitoSessionLogger logger) {119 instanceSessionBuilder = instanceSessionBuilder.logger(logger);120 return this;121 }122 @Override123 public StaticMockitoSession startMocking() throws UnfinishedMockingSessionException {124 StaticMockitoSession session125 = new StaticMockitoSession(instanceSessionBuilder.startMocking());126 try {127 for (StaticMocking mocking : staticMockings) {128 session.mockStatic((StaticMocking<?>) mocking);129 }130 } catch (Throwable t) {131 try {132 session.finishMocking();...

Full Screen

Full Screen

Source:DefaultMockitoSessionBuilder.java Github

copy

Full Screen

...10import org.mockito.internal.configuration.plugins.Plugins;11import org.mockito.internal.framework.DefaultMockitoSession;12import org.mockito.plugins.MockitoLogger;13import org.mockito.quality.Strictness;14import org.mockito.session.MockitoSessionBuilder;15import org.mockito.session.MockitoSessionLogger;16public class DefaultMockitoSessionBuilder implements MockitoSessionBuilder {17 private final List<Object> testClassInstances = new ArrayList<Object>();18 private String name;19 private Strictness strictness;20 private MockitoSessionLogger logger;21 @Override22 public MockitoSessionBuilder initMocks(Object testClassInstance) {23 if (testClassInstance != null) {24 this.testClassInstances.add(testClassInstance);25 }26 return this;27 }28 @Override29 public MockitoSessionBuilder initMocks(Object... testClassInstances) {30 if (testClassInstances != null) {31 for (Object instance : testClassInstances) {32 initMocks(instance);33 }34 }35 return this;36 }37 @Override38 public MockitoSessionBuilder name(String name) {39 this.name = name;40 return this;41 }42 @Override43 public MockitoSessionBuilder strictness(Strictness strictness) {44 this.strictness = strictness;45 return this;46 }47 @Override48 public MockitoSessionBuilder logger(MockitoSessionLogger logger) {49 this.logger = logger;50 return this;51 }52 @Override53 public MockitoSession startMocking() {54 // Configure default values55 List<Object> effectiveTestClassInstances;56 String effectiveName;57 if (testClassInstances.isEmpty()) {58 effectiveTestClassInstances = emptyList();59 effectiveName = this.name == null ? "<Unnamed Session>" : this.name;60 } else {61 effectiveTestClassInstances = new ArrayList<>(testClassInstances);62 Object lastTestClassInstance = testClassInstances.get(testClassInstances.size() - 1);...

Full Screen

Full Screen

Source:MockitoSessionBuilder.java Github

copy

Full Screen

...3import org.mockito.MockitoSession;4import org.mockito.exceptions.misusing.UnfinishedMockingSessionException;5import org.mockito.quality.Strictness;6@Incubating7public interface MockitoSessionBuilder {8 @Incubating9 MockitoSessionBuilder initMocks(Object obj);10 @Incubating11 MockitoSessionBuilder initMocks(Object... objArr);12 @Incubating13 MockitoSessionBuilder logger(MockitoSessionLogger mockitoSessionLogger);14 @Incubating15 MockitoSessionBuilder name(String str);16 @Incubating17 MockitoSession startMocking() throws UnfinishedMockingSessionException;18 @Incubating19 MockitoSessionBuilder strictness(Strictness strictness);20}...

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSessionBuilder;2import org.mockito.session.MockitoSession;3import org.mockito.quality.Strictness;4import org.mockito.Mockito;5public class 1 {6 public static void main(String[] args) {7 MockitoSessionBuilder mockitoSessionBuilder = Mockito.mockitoSession();8 MockitoSession mockitoSession = mockitoSessionBuilder.initMocks(this).strictness(Strictness.LENIENT).startMocking();9 mockitoSession.finishMocking();10 }11}12Related posts: Mockito – MockitoSessionBuilder class Mockito – MockitoSessionBuilder initMocks() method Mockito – MockitoSessionBuilder strictness() method Mockito – MockitoSessionBuilder startMocking() method Mockito – MockitoSessionBuilder logLevel() method Mockito – MockitoSessionBuilder name() method Mockito – MockitoSessionBuilder print() method Mockito – MockitoSessionBuilder listeners() method Mockito – MockitoSessionBuilder globalListeners() method Mockito – MockitoSessionBuilder verboseLogging() method Mockito – MockitoSessionBuilder addListener() method Mockito – MockitoSessionBuilder addGlobalListener() method Mockito – MockitoSessionBuilder build() method Mockito – MockitoSessionBuilder buildMockingDetails() method Mockito – MockitoSessionBuilder buildStrictness() method Mockito – MockitoSessionBuilder buildName() method Mockito – MockitoSessionBuilder buildListeners() method Mockito – MockitoSessionBuilder buildGlobalListeners() method Mockito – MockitoSessionBuilder buildPrint() method Mockito – MockitoSessionBuilder buildLogLevel() method Mockito – MockitoSessionBuilder buildVerboseLogging() m

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1package com.ack.mockito.session;2import org.junit.Test;3import org.mockito.Mockito;4import org.mockito.MockitoSession;5import org.mockito.quality.Strictness;6import java.util.List;7public class MockitoSessionBuilderTest {8 public void testMockitoSessionBuilder() {9 MockitoSessionBuilder mockitoSessionBuilder = Mockito.mockitoSession();10 mockitoSessionBuilder.initMocks( this )11 .strictness( Strictness.STRICT_STUBS );12 MockitoSession mockitoSession = mockitoSessionBuilder.startMocking();13 List mockList = mockitoSession.getMocks();14 Mockito.verifyNoMoreInteractions( mockList );15 }16}

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSession;2import org.mockito.session.MockitoSessionBuilder;3import org.mockito.quality.Strictness;4import org.mockito.exceptions.misusing.UnfinishedVerificationException;5import org.mockito.exceptions.misusing.UnfinishedStubbingException;6import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;7import org.mockito.exceptions.misusing.MissingMethodInvocationException;8import org.mockito.exceptions.misusing.PotentialStubbingProblem;9import org.mockito.exceptions.misusing.UnnecessaryStubbingException;10import org.mockito.exceptions.misusing.MockitoException;11import org.mockito.exceptions.Reporter;12import org.mockito.exceptions.base.MockitoAssertionError;13import org.mockito.exceptions.base.MockitoException;14import org.mockito.exceptions.base.MockitoInitializationException;15import org.mockito.exceptions.base.MockitoException;16import org.mockito.exceptions.verification.NoInteractionsWanted;17import org.mockito.exceptions.verification.TooLittleActualInvocations;18import org.mockito.exceptions.verification.TooManyActualInvocations;19import org.mockito.exceptions.verification.WantedButNotInvoked;20import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;21import org.mockito.exceptions.verification.junit.JUnitTool;22import org.mockito.exceptions.verification.junit.TooManyActualInvocations;23import org.mockito.exceptions.verification.junit.TooLittleActualInvocations;24import org.mockito.exceptions.verification.junit.WantedButNotInvoked;25import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;26import org.mockito.exceptions.verification.junit.JUnitTool;27import org.mockito.exceptions.verification.junit.TooManyActualInvocations;28import org.mockito.exceptions.verification.junit.TooLittleActualInvocations;29import org.mockito.exceptions.verification.junit.WantedButNotInvoked;30import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;31import org.mockito.exceptions.verification.junit.JUnitTool;32import org.mockito.exceptions.verification.junit.TooManyActualInvocations;33import org.mockito.exceptions.verification.junit.TooLittleActualInvocations;34import org.mockito.exceptions.verification.junit.WantedButNotInvoked;35import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;36import org.mockito.exceptions.verification.junit.JUnitTool;37import org.mockito.exceptions.verification.junit.TooManyActualInvocations;38import org.mockito.exceptions.verification.junit.TooLittleActualInvocations;39import org.mockito.exceptions.verification.junit.WantedButNotInvoked;40import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;41import org.mockito.exceptions.verification.junit.JUnitTool;42import org.mockito.exceptions.verification.junit.TooManyActualInvocations;43import org.mockito.exceptions

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1package com.ack.j2se.mockito;2import org.junit.Test;3import org.mockito.Mockito;4import org.mockito.MockitoSession;5import org.mockito.quality.Strictness;6import java.util.List;7import static org.mockito.Mockito.mock;8public class MockitoSessionBuilderTest {9 public void testMockitoSessionBuilder() {10 MockitoSession mockitoSession = Mockito.mockitoSession()11 .initMocks( this )12 .strictness( Strictness.STRICT_STUBS )13 .startMocking();14 List list = mock( List.class );15 list.add( "test" );16 Mockito.verify( list ).add( "test" );17 mockitoSession.finishMocking();18 }19}20Following stubbings are unnecessary (click to navigate to relevant line of code):21 1. -> at com.ack.j2se.mockito.MockitoSessionBuilderTest.testMockitoSessionBuilder(MockitoSessionBuilderTest.java:22)22-> at com.ack.j2se.mockito.MockitoSessionBuilderTest.testMockitoSessionBuilder(MockitoSessionBuilderTest.java:22)23 when(mock.isOk()).thenReturn(true);24 when(mock.isOk()).thenThrow(exception);25 doThrow(exception).when(mock).someVoidMethod();26 at org.mockito.internal.junit.JUnitRule$1.evaluate(JUnitRule.java:44)27 at org.junit.rules.RunRules.evaluate(RunRules.java:20)28 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)29 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)30 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)31 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)32 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSessionBuilder;2import org.mockito.session.MockitoSession;3import org.mockito.quality.Strictness;4import org.mockito.plugins.MockMaker;5import org.mockito.plugins.MockitoLogger;6import org.mockito.plugins.MockitoPlugins;7import org.mockito.plugins.InstantiatorProvider;8import org.mockito.plugins.AnnotationEngine;9import org.mockito.plugins.MockitoConfiguration;10import org.mockito.plugins.StackTraceCleanerProvider;11import org.mockito.plugins.InlineMockMaker;12import org.mockito.plugins.MockitoState;13import org.mockito.plugins.MockitoDebugger;14import org.mockito.plugins.MockitoValidationListener;15import org.mockito.plugins.InstantiatorProvider2;16import org.mockito.plugins.BaseMockMaker;17import org.mockito.plugins.InlineMockMaker2;18import org.mockito.plugins.InlineMockMaker3;19import org.mockito.plugins.InlineMockMaker4;20import org.mockito.plugins.InlineMockMaker5;21import org.mockito.plugins.InlineMockMaker6;22import org.mockito.plugins.InlineMockMaker7;23import org.mockito.plugins.InlineMockMaker8;24import org.mockito.plugins.InlineMockMaker9;25import org.mockito.plugins.InlineMockMaker10;26import org.mockito.plugins.InlineMockMaker11;27import org.mockito.plugins.InlineMockMaker12;28import org.mockito.plugins.InlineMockMaker13;29import org.mockito.plugins.InlineMockMaker14;30import org.mockito.plugins.InlineMockMaker15;31import org.mockito.plugins.InlineMockMaker16;32import org.mockito.plugins.InlineMockMaker17;33import org.mockito.plugins.InlineMockMaker18;34import org.mockito.plugins.InlineMockMaker19;35import org.mockito.plugins.InlineMockMaker20;36import org.mockito.plugins.InlineMockMaker21;37import org.mockito.plugins.InlineMockMaker22;38import org.mockito.plugins.InlineMockMaker23;39import org.mockito.plugins.InlineMockMaker24;40import org.mockito.plugins.InlineMockMaker25;41import org.mockito.plugins.InlineMockMaker26;42import org.mockito.plugins.InlineMockMaker27;43import org.mockito.plugins.InlineMockMaker28;44import org.mockito.plugins.InlineMockMaker29;45import org.mockito.plugins.InlineMockMaker30;46import org.mockito.plugins.InlineMockMaker31;47import org.mockito.plugins.InlineMockMaker32;48import org.mockito.plugins.InlineMockMaker33;49import org.mockito.plugins.InlineMockMaker34;50import org.mockito.plugins.InlineMockMaker35;51import org.mockito.plugins.InlineMockMaker36;52import org.mockito.plugins.InlineMockMaker37;53import org.mockito.plugins.InlineMockMaker38;54import org.mockito.plugins

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSession;2import org.mockito.session.MockitoSessionBuilder;3class 1 {4 public static void main(String[] args) {5 MockitoSessionBuilder mockitoSessionBuilder = Mockito.mockitoSession();6 MockitoSession mockitoSession = mockitoSessionBuilder.initMocks(this).startMocking();7 }8}9Mockito | MockitoSessionBuilder initMocks(Object) method10Mockito | MockitoSessionBuilder strictness(Strictness) method11Mockito | MockitoSessionBuilder logLevel(LogLevel) method12Mockito | MockitoSessionBuilder name(String) method13Mockito | MockitoSessionBuilder print(Consumer) method14Mockito | MockitoSessionBuilder print(Consumer, LogLevel) method15Mockito | MockitoSessionBuilder print(Consumer, LogLevel, VerificationMode) method16Mockito | MockitoSessionBuilder print(Consumer, VerificationMode) method17Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, LogLevel) method18Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, LogLevel, VerificationMode) method19Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode) method20Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, LogLevel) method21Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, LogLevel, VerificationMode) method22Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode) method23Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, LogLevel) method24Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, LogLevel, VerificationMode) method25Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, VerificationMode) method26Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, VerificationMode, LogLevel) method27Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, VerificationMode, LogLevel, VerificationMode) method28Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, Verification

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1package org.mockito.session;2import org.junit.Test;3import org.mockito.Mockito;4public class MockitoSessionBuilderTest {5 public void testMockitoSessionBuilder() {6 MockitoSessionBuilder mockitoSessionBuilder = Mockito.mockitoSession();7 MockitoSession mockitoSession = mockitoSessionBuilder.initMocks(this).startMocking();8 mockitoSession.finishMocking();9 }10}

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSession;2import org.mockito.session.MockitoSessionBuilder;3import org.mockito.quality.Strictness;4import org.mockito.Mockito;5import org.mockito.Mock;6import org.mockito.MockitoAnnotations;7import org.mockito.ArgumentMatchers;8import org.mockito.Mockito;9import org.mockito.InOrder;10import org.mockito.exceptions.verification.NoInteractionsWanted;11import org.mockito.exceptions.verification.WantedButNotInvoked;12import org.mockito.exceptions.verification.NeverWantedButInvoked;13import org.mockito.exceptions.verification.TooLittleActualInvocations;14import org.mockito.exceptions.verification.TooManyActualInvocations;15import org.mockito.exceptions.verification.VerificationInOrderFailure;16import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;17import org.mockito.exceptions.verification.junit.JUnitTooManyActualInvocations;18import org.mockito.exceptions.verification.junit.JUnitTooLittleActualInvocations;19import org.mockito.exceptions.verification.junit.JUnitWantedButNotInvoked;20import org.mockito.exceptions.verification.junit.JUnitWantedButNotInvokedInOrder;21import org.mockito.exceptions.verification.junit.JUnitWrongNumberOfInvocations;22import org.mockito.exceptions.verification.junit.JUnitWrongTypeOfReturnValue;23import org.mockito.exceptions.verification.junit.JUnitNoInteractionsWanted;24import org25import org.mockito.plugins.InlineMockMaker20;26import org.mockito.plugins.InlineMockMaker21;27import org.mockito.plugins.InlineMockMaker22;28import org.mockito.plugins.InlineMockMaker23;29import org.mockito.plugins.InlineMockMaker24;30import org.mockito.plugins.InlineMockMaker25;31import org.mockito.plugins.InlineMockMaker26;32import org.mockito.plugins.InlineMockMaker27;33import org.mockito.plugins.InlineMockMaker28;34import org.mockito.plugins.InlineMockMaker29;35import org.mockito.plugins.InlineMockMaker30;36import org.mockito.plugins.InlineMockMaker31;37import org.mockito.plugins.InlineMockMaker32;38import org.mockito.plugins.InlineMockMaker33;39import org.mockito.plugins.InlineMockMaker34;40import org.mockito.plugins.InlineMockMaker35;41import org.mockito.plugins.InlineMockMaker36;42import org.mockito.plugins.InlineMockMaker37;43import org.mockito.plugins.InlineMockMaker38;44import org.mockito.plugins

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSession;2import org.mockito.session.MockitoSessionBuilder;3class 1 {4 public static void main(String[] args) {5 MockitoSessionBuilder mockitoSessionBuilder = Mockito.mockitoSession();6 MockitoSession mockitoSession = mockitoSessionBuilder.initMocks(this).startMocking();7 }8}9Mockito | MockitoSessionBuilder initMocks(Object) method10Mockito | MockitoSessionBuilder strictness(Strictness) method11Mockito | MockitoSessionBuilder logLevel(LogLevel) method12Mockito | MockitoSessionBuilder name(String) method13Mockito | MockitoSessionBuilder print(Consumer) method14Mockito | MockitoSessionBuilder print(Consumer, LogLevel) method15Mockito | MockitoSessionBuilder print(Consumer, LogLevel, VerificationMode) method16Mockito | MockitoSessionBuilder print(Consumer, VerificationMode) method17Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, LogLevel) method18Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, LogLevel, VerificationMode) method19Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode) method20Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, LogLevel) method21Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, LogLevel, VerificationMode) method22Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode) method23Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, LogLevel) method24Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, LogLevel, VerificationMode) method25Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, VerificationMode) method26Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, VerificationMode, LogLevel) method27Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, VerificationMode, VerificationMode, VerificationMode, LogLevel, VerificationMode) method28Mockito | MockitoSessionBuilder print(Consumer, VerificationMode, Verification

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1package org.mockito.session;2import org.junit.Test;3import org.mockito.Mockito;4public class MockitoSessionBuilderTest {5 public void testMockitoSessionBuilder() {6 MockitoSessionBuilder mockitoSessionBuilder = Mockito.mockitoSession();7 MockitoSession mockitoSession = mockitoSessionBuilder.initMocks(this).startMocking();8 mockitoSession.finishMocking();9 }10}

Full Screen

Full Screen

MockitoSessionBuilder

Using AI Code Generation

copy

Full Screen

1import org.mockito.session.MockitoSession;2import org.mockito.session.MockitoSessionBuilder;3import org.mockito.quality.Strictness;4import org.mockito.Mockito;5import org.mockito.Mock;6import org.mockito.MockitoAnnotations;7import org.mockito.ArgumentMatchers;8import org.mockito.Mockito;9import org.mockito.InOrder;10import org.mockito.exceptions.verification.NoInteractionsWanted;11import org.mockito.exceptions.verification.WantedButNotInvoked;12import org.mockito.exceptions.verification.NeverWantedButInvoked;13import org.mockito.exceptions.verification.TooLittleActualInvocations;14import org.mockito.exceptions.verification.TooManyActualInvocations;15import org.mockito.exceptions.verification.VerificationInOrderFailure;16import org.mockito.exceptions.verification.junit.ArgumentsAreDifferent;17import org.mockito.exceptions.verification.junit.JUnitTooManyActualInvocations;18import org.mockito.exceptions.verification.junit.JUnitTooLittleActualInvocations;19import org.mockito.exceptions.verification.junit.JUnitWantedButNotInvoked;20import org.mockito.exceptions.verification.junit.JUnitWantedButNotInvokedInOrder;21import org.mockito.exceptions.verification.junit.JUnitWrongNumberOfInvocations;22import org.mockito.exceptions.verification.junit.JUnitWrongTypeOfReturnValue;23import org.mockito.exceptions.verification.junit.JUnitNoInteractionsWanted;24import org

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Mockito automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Test Your Web Or Mobile Apps On 3000+ Browsers

Signup for free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful