Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 168 for EX (0.07 sec)

  1. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            // Arrange & Act
            SMBSignatureValidationException ex = new SMBSignatureValidationException();
    
            // Assert
            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            // Arrange & Act
            SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException();
    
            // Assert
            assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage(),
                    "Default message should match the class contract");
            assertNull(ex.getCause(), "No cause expected from default constructor");
            assertTrue(ex instanceof SmbException, "Should be an SmbException");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            // Act & Assert: both UnknownHostException and IOException should become CIFSException (SmbException)
            CIFSException ex = assertThrows(CIFSException.class, () -> trace.connectWrapException(loc));
            assertTrue(ex.getMessage() != null && ex.getMessage().contains("Failed to connect to server"));
            assertSame(thrown, ex.getCause());
        }
    
        @Test
        @DisplayName("connectWrapException: rethrows SmbException unchanged")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/Handler.java

                            try {
                                handlerClass = Class.forName(className);
                            } catch (final Exception ex) {
                                log.debug("Failed to load handler class " + className, ex);
                            }
                            if (handlerClass == null) {
                                handlerClass = ClassLoader.getSystemClassLoader().loadClass(className);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        void getSessionKey_throws() throws CIFSException {
            doThrow(new CIFSException("session key failure")).when(session).getSessionKey();
    
            CIFSException ex = assertThrows(CIFSException.class, () -> session.getSessionKey());
            assertTrue(ex.getMessage().contains("failure"));
            verify(session).getSessionKey();
        }
    
        // Happy path: transport is returned and verified
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            // Act + Assert: exception is propagated with message
            CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved());
            assertEquals("DFS resolution failed", ex.getMessage());
            verify(handle, times(1)).ensureDFSResolved();
        }
    
        @ParameterizedTest
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryHolder.java

                        exceptions.add(e);
                    }
                }
            }
            if (!exceptions.isEmpty()) {
                IllegalStateException ex = new IllegalStateException("Could not close commandRegistries");
                exceptions.forEach(ex::addSuppressed);
                throw ex;
            }
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 17 09:50:45 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top