- Sort Score
- Num 10 results
- Language All
Results 1241 - 1250 of 3,637 for throwIf (0.05 seconds)
-
android/guava/src/com/google/common/hash/BloomFilter.java
* <b>Warning:</b> the funnel provided <b>must</b> behave identically to the one used to populate * the original Bloom filter! * * @throws IOException if the InputStream throws an {@code IOException}, or if its data does not * appear to be a BloomFilter serialized using the {@linkplain #writeTo(OutputStream)} method. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 10 22:28:12 GMT 2026 - 27.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java
return OptionalThing.ofNullable(subject, () -> { throw new IllegalStateException("Subject not found"); }); } @Override public OptionalThing<String> getSavedPlainText() { return OptionalThing.ofNullable(plainText, () -> { throw new IllegalStateException("Plain text not found"); }); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 20K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
interceptorThrowsRuntimeExceptionSynchronous(true) } /** * When an interceptor throws an unexpected exception, synchronous callers can catch it and deal * with it. */ private fun interceptorThrowsRuntimeExceptionSynchronous(network: Boolean) { addInterceptor(network) { chain: Interceptor.Chain? -> throw RuntimeException("boom!") } val request = Request .Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeTest.java
* Verifies that unwrap can throw exceptions when appropriate. */ @Test void testUnwrap_throwsException() { when(smbTree.unwrap(any())).thenThrow(new ClassCastException("Cannot unwrap to specified type")); assertThrows(ClassCastException.class, () -> smbTree.unwrap(CustomSmbTree.class), "Should throw ClassCastException when type is incompatible"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/PluginHelperTest.java
throw new IORuntimeException(e); } } else if (url.contains("plugin/repo2")) { try (InputStream is = ResourceUtil.getResourceAsStream(url)) { return new String(InputStreamUtil.getBytes(is), Constants.UTF_8); } catch (IOException e) { throw new IORuntimeException(e); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 22.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/HMACT64Test.java
byte[] result1 = hmac1.engineDigest(); byte[] result2 = hmac2.engineDigest(); assertArrayEquals(result1, result2); } @Test void testHMACT64WithKnownTestVector() throws NoSuchAlgorithmException { // Test with known test vector // Using test vector from RFC 2104 adapted for HMACT64 byte[] key = new byte[16]; Arrays.fill(key, (byte) 0x0b);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.1K bytes - Click Count (0) -
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt
assertThat(request.method).isEqualTo("GET") assertThat(request.url.toString()).isEqualTo("http://example.com/") assertThat(request.body).isNull() } @Test @Throws(IOException::class) fun put() { val request = fromArgs("-X", "PUT", "-d", "foo", "http://example.com").createRequest() assertThat(request.method).isEqualTo("PUT")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java
*/ @J2ktIncompatible // threads @GwtIncompatible // threads @NullUnmarked public class AtomicLongMapBasherTest extends TestCase { private final Random random = new Random(301); public void testModify_basher() throws Exception { int nTasks = 3000; int nThreads = 100; int getsPerTask = 1000; int deltaRange = 10000; String key = "key"; AtomicLongMap<String> map = AtomicLongMap.create();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java
@Override Object writeReplace() { return new EntrySetSerializedForm<>(map()); } @GwtIncompatible @J2ktIncompatible private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use EntrySetSerializedForm"); } @GwtIncompatible @J2ktIncompatible private static final class EntrySetSerializedForm<K, V> implements Serializable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 3.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/ShareEnumIterator.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.5K bytes - Click Count (0)