- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,947 for threw (0.02 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java
// permitted not to throw because it would be a no-op } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES) public void testReplace_absentNullKeyUnsupported() { try { getMap().replace(null, v3()); } catch (NullPointerException tolerated) { // permitted not to throw because it would be a no-op } expectUnchanged();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java
*/ static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) { // URL escapers should throw null pointer exceptions for null input try { e.escape((String) null); fail("Escaping null string should throw exception"); } catch (NullPointerException x) { // pass } // All URL escapers should leave 0-9, A-Z, a-z unescaped
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java
public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Job execution failed"; boolean exceptionCaught = false; try { throw new ScheduledJobException(expectedMessage); } catch (ScheduledJobException e) { exceptionCaught = true; assertEquals(expectedMessage, e.getMessage()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java
} public void test_throwAndCatchException() { // Test throwing and catching the exception String expectedMessage = "Storage failure"; try { throw new StorageException(expectedMessage); } catch (StorageException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
FutureCallback<String> callback = new FutureCallback<String>() { @Override public void onSuccess(String result) { successCalls[0]++; throw exception; } @Override public void onFailure(Throwable t) { failureCalls[0]++; } }; addCallback(future, callback, directExecutor());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacUnicodeStringTest.java
} /** * Tests the {@link PacUnicodeString#check(String)} method with a non-empty string when the pointer is zero. * This is an invalid state and should throw an exception. */ @Test void testCheck_withNonNullStringAndZeroPointer_throwsException() { // A zero pointer should mean the string is nullRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/graph/InvalidatableSet.java
this.validator = validator; this.errorMessage = errorMessage; } // Override hashCode() to access delegate directly (so that it doesn't trigger the validate() call // via delegate()); it seems inappropriate to throw ISE on this method. @Override public int hashCode() { return delegate.hashCode(); } private void validate() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/base/AbstractIterator.java
public final T next() { if (!hasNext()) { throw new NoSuchElementException(); } state = State.NOT_READY; // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`. T result = uncheckedCastNullableTToT(next); next = null; return result; } @Override public final void remove() { throw new UnsupportedOperationException(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandle.java
server = "\\\\"; } final MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this); handle.sendrecv(rpc); if (rpc.retval != 0) { throw new SmbException(rpc.retval, false); } } /** * Closes the LSA policy handle. * * @throws IOException if an I/O error occurs */ public void close() throws IOException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
*/ public void test_throwAndCatch() { try { throw new CrawlerSystemException("Test throw"); } catch (CrawlerSystemException e) { assertEquals("Test throw", e.getMessage()); assertNull(e.getCause()); } try { throw new CrawlerSystemException("Test with cause", new IllegalArgumentException("Cause"));Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0)