- Sort Score
- Num 10 results
- Language All
Results 2121 - 2130 of 3,014 for throws (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
HashMap.class, Appendable.class, StringBuilder.class, StringBuffer.class, Throwable.class, Exception.class); } public void testGet_io() throws IOException { assertEquals(-1, ArbitraryInstances.get(InputStream.class).read()); assertEquals(-1, ArbitraryInstances.get(ByteArrayInputStream.class).read());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
* assertions about all the public instance methods of {@link LinearTransformation}, including an * assertion that {@link LinearTransformation#transform} and {@link LinearTransformation#slope} on * its inverse throws as expected. */ static void assertHorizontalLinearTransformation(LinearTransformation transformation, double y) { assertThat(transformation.isHorizontal()).isTrue();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
DfsReferralDataInternal result = mockReferralData.combine(null); assertNotNull(result); // Test with concrete implementation - combine with null throws NPE assertThrows(NullPointerException.class, () -> concreteImplementation.combine(null)); } @Test @DisplayName("Should handle null in append") void testAppendWithNull() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 28.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PurgeLogJobTest.java
@Override public void deleteBefore(long time) { throw new RuntimeException("Crawling error"); } }; SearchLogService searchLogService = new SearchLogService() { @Override public void deleteBefore(int days) { throw new RuntimeException("Search error"); } };Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 32.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
assertThat(set.size()).isAtMost(max); } /** * A {@link Set} that throws {@link NullPointerException} and {@link ClassCastException} from * {@link #contains}. */ private static final class SetContainsThrows extends AbstractSet<Void> { @Override public boolean contains(@Nullable Object o) { throw o == null ? new NullPointerException() : new ClassCastException(); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
void testToStringWithNullFileId() throws Exception { // Set oplockLevel but leave fileId as null Field oplockLevelField = Smb2OplockBreakNotification.class.getDeclaredField("oplockLevel"); oplockLevelField.setAccessible(true); oplockLevelField.set(notification, (byte) 0x01); // The implementation calls Hexdump.toHexString which throws NPE on null
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
public boolean isEmpty() { return end == start; } /** * Returns the {@code long} value present at the given index. * * @throws IndexOutOfBoundsException if {@code index} is negative, or greater than or equal to * {@link #length} */ public long get(int index) { Preconditions.checkElementIndex(index, length());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 22K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
this.sameSite = sameSite } fun build(): Cookie = Cookie( name ?: throw NullPointerException("builder.name == null"), value ?: throw NullPointerException("builder.value == null"), expiresAt, domain ?: throw NullPointerException("builder.domain == null"), path, secure, httpOnly, persistent, hostOnly,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 23.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
.put("foo", 1) .put("bar", 2) .put("foo", 3) .build(); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(ImmutableSetMultimap.class); tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 28.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameTest.java
lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); } @Test void constructor_withConfigOnly_shouldInitializeFields() throws Exception { Name name = new Name(mockConfig); Field configField = Name.class.getDeclaredField("config"); configField.setAccessible(true); assertSame(mockConfig, configField.get(name));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0)