- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for EX (0.49 sec)
-
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
return connection.getDate(); } @Override public long getLastModified() { try { handshake(); } catch (final IOException ex) {} return connection.getLastModified(); } @Override public String getHeaderField(final String header) { try { handshake(); } catch (final IOException ex) {}
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
private final RuntimeException ex; private ThrowingIterator(RuntimeException ex) { this.ex = ex; } @Override public boolean hasNext() { // IteratorTester doesn't expect exceptions for hasNext(). return true; } @Override public E next() { ex.fillInStackTrace(); throw ex; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
// Using an uppercase short name (no dot) must throw an unsupported operation SmbUnsupportedOperationException ex = assertThrows(SmbUnsupportedOperationException.class, () -> auth.createContext(tc, null, "SERVER", new byte[0], false)); assertTrue(ex.getMessage().contains("Cannot use netbios/short names")); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
void hasCapability_throws() throws SmbException { doThrow(new SmbException("capability check failed")).when(transport).hasCapability(eq(42)); SmbException ex = assertThrows(SmbException.class, () -> transport.hasCapability(42)); assertTrue(ex.getMessage().contains("failed")); verify(transport).hasCapability(42); } // Edge: disconnected status toggles @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java
void byteArrayConstructor_emptyToken_throws() { // Arrange byte[] empty = new byte[0]; // Act + Assert PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(empty, new KerberosKey[0])); assertTrue(ex.getMessage().contains("Empty kerberos ApReq")); } @Test @DisplayName("byte[] ctor: malformed DER is wrapped as PACDecodingException (IOException path)")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
SmbException ex = assertThrows(SmbException.class, () -> new DirFileEntryEnumIterator1(tree, parent, "*", (ResourceNameFilter) null, 0)); assertTrue(ex.getMessage().contains("UNC must end with '\\'"), "Actual message: " + ex.getMessage()); verify(tree, times(1)).acquire(); verify(tree, times(1)).release(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
// Act + Assert SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null)); // Assert message indicates which validation failed if (expectDirSlashMsg) { assertTrue(ex.getMessage().contains("directory must end with '/'"), "Expected trailing slash message, was: " + ex.getMessage()); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
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/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)