Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 2,324 for exception (0.03 sec)

  1. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

      }
    
      @GwtIncompatible // concurrency
    
      public void testConcurrentAdvance() throws Exception {
        FakeTicker ticker = new FakeTicker();
    
        int numberOfThreads = 64;
        runConcurrentTest(
            numberOfThreads,
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                // adds two nanoseconds to the ticker
                ticker.advance(1L);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

    import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
    import org.apache.maven.bridge.MavenRepositorySystem;
    import org.apache.maven.execution.DefaultMavenExecutionRequest;
    import org.apache.maven.execution.DefaultMavenExecutionResult;
    import org.apache.maven.execution.MavenSession;
    import org.apache.maven.impl.InternalSession;
    import org.apache.maven.impl.resolver.scopes.Maven4ScopeManagerConfiguration;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 20:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

          throws Exception {
        assertThrows(
            IllegalArgumentException.class,
            () -> getChecked(immediateFuture("x"), ExceptionWithBadConstructor.class));
      }
    
      public void testGetCheckedUntimed_badExceptionConstructor_wrapsOriginalChecked()
          throws Exception {
        assertThrows(
            IllegalArgumentException.class,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            verify(fd, never()).markClosed();
        }
    
        @Test
        @DisplayName("available() wraps SmbException to IOException")
        void available_wrapsException() throws Exception {
            // Verify exceptions from th.send are converted to IOException via seToIoe
            SmbPipeInputStream stream = newStreamWithMinimalStubs(true);
    
            when(handle.ensureOpen()).thenReturn(fd);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                    conn.disconnect(true, true);
                } catch (Exception e) {
                    log.debug("Error closing connection: {}", e.getMessage());
                }
            });
            connections.clear();
    
            nonPooledConnections.forEach(conn -> {
                try {
                    conn.disconnect(true, true);
                } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            assertFalse(capabilities.contains(RdmaCapability.RDMA_WRITE), "Should not support RDMA write");
        }
    
        @Test
        public void testCreateConnection() throws Exception {
            InetSocketAddress remote = new InetSocketAddress("localhost", 445);
            InetSocketAddress local = null;
    
            RdmaConnection connection = provider.createConnection(remote, local);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

        @BeforeEach
        public void setup() throws Exception {
            this.cfg = new BaseConfiguration(true);
        }
    
        /**
         * Sub-class of {@link BaseConfiguration} that forces {@code useUnicode()}
         * to return {@code false}. This mimics an ASCII only client
         */
        private static class OffUnicodeConfig extends BaseConfiguration {
            public OffUnicodeConfig() throws Exception {
                super(true);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        }
    
        @ParameterizedTest
        @ValueSource(booleans = { true, false })
        @DisplayName("isOpen delegates to handle.isOpen")
        void isOpen_delegates(boolean state) throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            when(handle.isOpen()).thenReturn(state);
    
            // Act
            boolean result = out.isOpen();
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                int expectedLength = (Math.min(65536, 65536) - Smb2QueryInfoResponse.OVERHEAD) & ~0x7;
                assertEquals(expectedLength, actualOutputBufferLength);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

        }
    
        /**
         * Handle channel failure
         *
         * @param failedChannel failed channel
         * @param error error that caused failure
         */
        public void handleFailure(ChannelInfo failedChannel, Exception error) {
            log.warn("Channel {} failed: {}", failedChannel.getChannelId(), error.getMessage());
    
            // Mark channel as failed
            failedChannel.setState(ChannelState.FAILED);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
Back to top