Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 2,770 for throwIt (0.05 sec)

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

        void ensureDFSResolved_throws() throws Exception {
            // Arrange: configure the mock to throw
            doThrow(new CIFSException("DFS resolution failed")).when(handle).ensureDFSResolved();
    
            // Act + Assert: exception is propagated with message
            CIFSException ex = assertThrows(CIFSException.class, () -> handle.ensureDFSResolved());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosToken.java

         * @param keys array of Kerberos keys for decryption
         * @throws PACDecodingException if token decoding fails
         */
        public KerberosToken(byte[] token, KerberosKey[] keys) throws PACDecodingException {
    
            if (token.length <= 0) {
                throw new PACDecodingException("Empty kerberos token");
            }
    
            byte[] content;
            try (ASN1InputStream stream = new ASN1InputStream(token)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/MIENameTest.java

            }
    
            // Act + Assert
            Throwable t = assertThrows(expected, () -> new MIEName(buf));
            // MIEName throws IllegalArgumentException without messages, so we don't assert on message presence
            assertNotNull(t, "Exception should be thrown");
        }
    
        @Nested
        @DisplayName("equals, hashCode, toString")
        class EqualityContract {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            }, "Should throw IllegalStateException after destroy");
    
            assertThrows(IllegalStateException.class, () -> {
                storage.decryptCredentials(encrypted);
            }, "Should throw IllegalStateException after destroy");
    
            // Clean up
            Arrays.fill(plaintext, '\0');
        }
    
        @Test
        public void testAutoCloseable() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/msrpc/SamrAliasHandle.java

         * @param access the desired access rights
         * @param rid the relative identifier of the alias
         * @throws IOException if an I/O error occurs during handle creation
         */
        public SamrAliasHandle(final DcerpcHandle handle, final SamrDomainHandle domainHandle, final int access, final int rid)
                throws IOException {
            this.handle = handle;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/sql/ResultSetUtil.java

                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * Moves the cursor to the specified position.
         *
         * @param resultSet
         *            The result set. Must not be {@literal null}.
         * @param index
         *            The position.
         * @return Whether the cursor successfully moved to the specified position.
         * @throws SQLRuntimeException
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

        private IntervalControlHelper intervalControlHelper;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            intervalControlHelper = new IntervalControlHelper();
        }
    
        public void test_noRule() {
            assertEquals(0, intervalControlHelper.getDelay());
        }
    
        public void test_0000() throws ParseException {
            final IntervalControlHelper intervalControlHelper = createHelper("00:00", 1);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            }
        }
    
        public void test_writeThreadDump() throws IOException {
            // Create a temporary file for testing
            Path tempFile = Files.createTempFile("test-thread-dump", ".txt");
    
            try {
                ThreadDumpUtil.writeThreadDump(tempFile.toString());
    
                // Verify the file was created and contains content
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileTest.java

                // Assert - should not throw exception when file exists
            }
        }
    
        @Nested
        class WhenHandlingConnections {
    
            @Test
            void testConnect() throws IOException {
                // Arrange
                doNothing().when(smbFile).connect();
    
                // Act
                smbFile.connect();
    
                // Assert - should not throw exception
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       * that this throws different exception types, and throws an exception if {@code null} would be
       * returned).
       *
       * @param position position of the element to return
       * @return the element at the specified position in this fluent iterable
       * @throws IndexOutOfBoundsException if {@code position} is negative or greater than or equal to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
Back to top