Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,054 for throws (0.04 sec)

  1. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPrefix() throws Exception {
            final CopyOptions option = new CopyOptions();
            assertThat(option.prefix(BeanNames.search_()), is(sameInstance(option)));
            assertThat(option.prefix, is("search_"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testBeanDelimiter() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                // Then
                assertNotNull(cancel);
                assertEquals(mid, cancel.getMid());
            }
    
            @Test
            @DisplayName("Should throw NullPointerException when config is null")
            void testNullConfigurationThrowsException() throws Exception {
                // Given
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NetServerEnumIterator.java

            this.treeHandle.send(this.request, this.response);
            checkStatus();
            final FileEntry n = advance();
            if (n == null) {
                doClose();
            }
            return n;
        }
    
        /**
         * @throws SmbException
         */
        private void checkStatus() throws SmbException {
            final int status = this.response.getStatus();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                    try {
                        customCb.executeWithCircuitBreaker(() -> {
                            throw new RuntimeException("non-critical error");
                        }, isFailure);
                        fail("Should have thrown exception");
                    } catch (CIFSException e) {
                        // Expected - exception is thrown but not counted as failure
                    }
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbCopyUtil.java

         */
        private SmbCopyUtil() {
        }
    
        /**
         * @param dest
         * @return
         * @throws SmbException
         * @throws SmbAuthException
         */
        static SmbFileHandleImpl openCopyTargetFile(final SmbFile dest, final int attrs, final boolean alsoRead) throws CIFSException {
            try {
                return dest.openUnshared(SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

        void testFallbackWhenOpen() throws Exception {
            // Open the circuit
            circuitBreaker.tripBreaker();
    
            String result = circuitBreaker.call(() -> "primary", () -> "fallback");
    
            assertEquals("fallback", result);
        }
    
        @Test
        @DisplayName("Test transition to HALF_OPEN after timeout")
        void testTransitionToHalfOpen() throws Exception {
            // Open the circuit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbFileHandleTest.java

         *
         * @throws CIFSException
         */
        @Test
        void testClose_success() throws CIFSException {
            smbFileHandle.close();
            verify(smbFileHandle, times(1)).close();
        }
    
        /**
         * Test close() when a CIFSException is thrown.
         *
         * @throws CIFSException
         */
        @Test
        void testClose_throwsCIFSException() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DosFileFilterTest.java

         * {@link SmbFile#getAttributes()} throws it.
         * @throws SmbException if an SMB error occurs.
         */
        @Test
        void testAccept_ThrowsSmbException() throws SmbException {
            // Given a filter
            dosFileFilter = new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE);
            // and a mock file that throws an exception when getAttributes is called
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbWatchHandleTest.java

                        throw new CIFSException("Watch interrupted");
                    }
                    return Collections.emptyList();
                }
    
                @Override
                public List<FileNotifyInformation> call() throws CIFSException {
                    return watch();
                }
    
                @Override
                public void close() throws CIFSException {
                    // Do nothing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top