- Sort Score
- Num 10 results
- Language All
Results 2681 - 2690 of 3,804 for throws (0.06 seconds)
-
guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
assertThat(generator.generateFresh(Currency.class)).isNotNull(); assertThat(generator.generateFresh(Currency.class)).isNotNull(); } public void testNulls() throws Exception { new ClassSanityTester() .setDefault(Method.class, FreshValueGeneratorTest.class.getDeclaredMethod("testNulls")) .testNulls(FreshValueGenerator.class); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 18.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
if (configId == null) { final String docId = DocumentUtil.getValue(doc, fessConfig.getIndexFieldId(), String.class); throw new FessSystemException("configId is null in document. docId: " + docId); } if (configId.length() < 2) { throw new FessSystemException("Invalid configId length: " + configId + ". ConfigId must be at least 2 characters long."); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 52.6K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4HttpClient.java
} catch (final CrawlerSystemException e) { closeResources(httpRequest, responseData); throw e; } catch (final Exception e) { closeResources(httpRequest, responseData); throw new CrawlerSystemException("Failed to access " + url, e); } finally { EntityUtils.consumeQuietly(httpEntity);
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Fri Jan 09 23:46:52 GMT 2026 - 54.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
assertTrue(permutations.hasNext()); permutations.next(); } assertNoMorePermutations(permutations); } public void testToStringImplWithNullEntries() throws Exception { List<@Nullable String> list = new ArrayList<>(); list.add("foo"); list.add(null); assertThat(Collections2.toStringImpl(list)).isEqualTo(list.toString()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 20.1K bytes - Click Count (0) -
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)