- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 160 for EX (0.01 sec)
-
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ListeningScheduledExecutorService service = listeningDecorator(delegate); RuntimeException ex = new RuntimeException(); ListenableFuture<?> future = service.schedule(new ThrowingRunnable(0, ex), 1, MILLISECONDS); assertExecutionException(future, ex); assertEquals(0, delegate.getQueue().size()); } public void testListeningDecorator_schedulePeriodic() throws Exception {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 28K bytes - Viewed (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
SpnegoContext ctx = newContext(); // Invalid first byte should be rejected by token parsing CIFSException ex = assertThrows(CIFSException.class, () -> ctx.initSecContext(new byte[] { firstByte }, 0, 1)); assertEquals("Invalid token", ex.getMessage()); // Ensure mechContext was not engaged due to early failure
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
f.set("foo"); } public void testExecutorSuccess() { CountingSameThreadExecutor ex = new CountingSameThreadExecutor(); SettableFuture<String> f = SettableFuture.create(); MockCallback callback = new MockCallback("foo"); Futures.addCallback(f, callback, ex); f.set("foo"); assertEquals(1, ex.runCount); } // Error cases public void testSameThreadExecutionException() {
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/main/java/jcifs/smb/SmbSessionImpl.java
initializeMultiChannel(); // Initialize witness support for fast failover initializeWitnessSupport(); if (ex != null) { throw ex; } return (T) (response != null ? response.getNextResponse() : null); } } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
CIFSException boom = new CIFSException("tree-fail"); when(handle.ensureTreeConnected()).thenThrow(boom); // Act + Assert CIFSException ex = assertThrows(CIFSException.class, out::ensureTreeConnected); assertEquals("tree-fail", ex.getMessage()); verify(handle, times(1)).ensureTreeConnected(); } @Test @DisplayName("ensureOpen delegates and returns the file handle")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
doThrow(new CIFSException("Close failed")).when(delegate).close(); TestIterator iterator = new TestIterator(null); CIFSException ex = assertThrows(CIFSException.class, iterator::close); assertEquals("Close failed", ex.getMessage()); } @Test @DisplayName("Remove delegates to underlying iterator") void removeDelegation() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
byte[] data = new byte[] { 0 }; when(gssContext.getMIC(any(), anyInt(), anyInt(), any())).thenThrow(new GSSException(GSSException.FAILURE)); CIFSException ex = assertThrows(CIFSException.class, () -> ctx.calculateMIC(data)); assertTrue(ex.getMessage().contains("Failed to calculate MIC")); } @Test @DisplayName("calculateMIC with null data throws NPE") void calculateMIC_nullData() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/Handler.java
} catch (final Exception ex) {} if (handlerClass == null) { handlerClass = ClassLoader.getSystemClassLoader().loadClass(className); } handler = (URLStreamHandler) handlerClass.newInstance(); break; } catch (final Exception ex) {} } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type1Message.java
writeSecurityBuffer(type1, 24, 32 + domain.length, workstation); } return type1; } catch (final IOException ex) { throw new IllegalStateException(ex.getMessage()); } } @Override public String toString() { final String suppliedDomain = getSuppliedDomain();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
RuntimeException re = new RuntimeException(iae); IllegalStateException ex = new IllegalStateException(re); assertThat(getCausalChain(ex)).containsExactly(ex, re, iae, sue).inOrder(); assertSame(sue, Iterables.getOnlyElement(getCausalChain(sue))); List<Throwable> causes = getCausalChain(ex); assertThrows(UnsupportedOperationException.class, () -> causes.add(new RuntimeException())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0)