- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 167 for EX (0.02 sec)
-
src/test/java/jcifs/smb/SIDTest.java
void testTextualConstructorInvalid() { // Arrange String bad = "S-1"; // fewer than 3 tokens // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> new SID(bad)); assertTrue(ex.getMessage().contains("Bad textual SID format")); } @Test @DisplayName("Textual constructor null throws NullPointerException")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
throw new SmbAuthException(NtStatus.NT_STATUS_LOGON_FAILURE); } if (ex != null) { throw ex; } uid = response.uid; if (request.digest != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(handle.isValid()).thenReturn(false); SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0, false); SmbException ex = assertThrows(SmbException.class, sut::watch, "Expected SmbException when handle invalid"); assertTrue(ex.getMessage().contains("Watch was broken by tree disconnect")); } // Happy path for SMB2: a response is received and the list is returned; tree is closed @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/MethodUtil.java
} catch (final InvocationTargetException ex) { final Throwable t = ex.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } if (t instanceof Error) { throw (Error) t; } throw new InvocationTargetRuntimeException(method.getDeclaringClass(), ex); } catch (final IllegalAccessException ex) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
for (CircuitBreakerListener listener : listeners) { try { listener.onCallRejected(this); } catch (Exception ex) { log.warn("Listener threw exception", ex); } } throw new CircuitOpenException("Circuit breaker '" + name + "' is open"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
android/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/test/java/jcifs/smb/SmbTreeHandleImplTest.java
// Exception path when(treeConnection.hasCapability(999)).thenThrow(new SmbException("Not connected")); SmbException ex = assertThrows(SmbException.class, () -> handle.hasCapability(999)); assertTrue(ex.getMessage().contains("Not connected")); } @Test @DisplayName("getTreeId delegates") void getTreeIdDelegates() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
byte[] domain = {}; if (domainStr != null) { try { domain = domainStr.getBytes(UNI_ENCODING); } catch (final IOException ex) { log.debug("Failed to get domain bytes", ex); } } final int domainLength = domain.length; byte[] server = {}; final String host = tc.getNameServiceClient().getLocalHost().getHostName();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
void rejectsNonIpcShare(String url) { // Arrange & Act & Assert MalformedURLException ex = assertThrows(MalformedURLException.class, () -> new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx())); assertEquals("Named pipes are only valid on IPC$", ex.getMessage()); } @Test @DisplayName("Null context throws NPE (invalid input)")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
// Act SMBProtocolDecodingException ex = assertThrows(SMBProtocolDecodingException.class, () -> resp.readBytesWireFormat(buffer, 0), "Should throw when structure size != 4"); // Assert: message is meaningful assertEquals("Structure size is not 4", ex.getMessage()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0)