Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testConnect (1.34 sec)

  1. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

        }
    
        /**
         * Test that connect() calls connect() on the underlying connection.
         * @throws IOException
         */
        @Test
        void testConnect() throws Exception {
            // Act
            ntlmConnection.connect();
    
            // Assert
            verify(mockConnection).connect();
            // Connection should be established after connect
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. 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)
Back to top