- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 628 for IllegalArgumentException (0.09 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0, 1, SECONDS)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1, 1, SECONDS)); } public void testSimpleWithWait() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0, 1, SECONDS)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1, 1, SECONDS)); } public void testSimpleWithWait() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java
// Test with IllegalArgumentException IllegalArgumentException illegalArgException = new IllegalArgumentException("Invalid parameter"); SsoLoginException exception2 = new SsoLoginException(message, illegalArgException); assertEquals(message, exception2.getMessage()); assertTrue(exception2.getCause() instanceof IllegalArgumentException); // Test with NullPointerExceptionRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CollectPreconditions.java
static int checkNonnegative(int value, String name) { if (value < 0) { throw new IllegalArgumentException(name + " cannot be negative but was: " + value); } return value; } @CanIgnoreReturnValue static long checkNonnegative(long value, String name) { if (value < 0) { throw new IllegalArgumentException(name + " cannot be negative but was: " + value); } return value; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 2.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilder.java
* @param userToolchainsSource The {@link Source} pointing to the user toolchains, must not be {@code null} * @throws ToolchainsBuilderException if the project cannot be created * @throws IllegalArgumentException if an argument is {@code null} or invalid * @see #build(ToolchainsBuilderRequest) */ @Nonnull default ToolchainsBuilderResult build( @Nonnull Session session,Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Aug 22 14:47:43 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java
Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); filtered.put("a", 1); filtered.put("b", 2); assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered); assertThrows(IllegalArgumentException.class, () -> filtered.put("yyy", 3)); } public void testFilteredKeysIllegalPutAll() { Map<String, Integer> unfiltered = createUnfiltered();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java
TestScriptEngine engine = new TestScriptEngine(); try { scriptEngineFactory.add(null, engine); fail("Should throw IllegalArgumentException for null name"); } catch (IllegalArgumentException e) { assertEquals("name or scriptEngine is null.", e.getMessage()); } } // Test add method with null engine public void test_add_nullEngine() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
return certificates.single() as X509Certificate } catch (nsee: NoSuchElementException) { throw IllegalArgumentException("failed to decode certificate", nsee) } catch (iae: IllegalArgumentException) { throw IllegalArgumentException("failed to decode certificate", iae) } catch (e: GeneralSecurityException) { throw IllegalArgumentException("failed to decode certificate", e) } } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/DataConfigService.java
* by sort order and name.</p> * * @param dataConfigPager the pager containing search criteria and pagination settings * @return a list of DataConfig entities matching the search criteria * @throws IllegalArgumentException if dataConfigPager is null */ public List<DataConfig> getDataConfigList(final DataConfigPager dataConfigPager) { final PagingResultBean<DataConfig> dataConfigList = dataConfigBhv.selectPage(cb -> {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt
}, ).hasMessage("timeout < 0") assertThat( assertThrows<IllegalArgumentException> { checkDuration("timeout", 1, TimeUnit.NANOSECONDS) }, ).hasMessage("timeout too small") assertThat( assertThrows<IllegalArgumentException> { checkDuration( "timeout", 1L + Int.MAX_VALUE.toLong(), TimeUnit.MILLISECONDS,Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3K bytes - Viewed (0)