Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testGetConfig (0.21 sec)

  1. src/test/java/jcifs/SmbTreeHandleTest.java

        @Mock
        private Configuration mockConfig;
    
        /**
         * Test for getConfig() method.
         * Verifies that the method returns the expected Configuration object.
         */
        @Test
        void testGetConfig() {
            when(smbTreeHandle.getConfig()).thenReturn(mockConfig);
            Configuration config = smbTreeHandle.getConfig();
            assertNotNull(config, "Configuration should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            });
            assertTrue(thrown.getMessage().contains("Invalid URL"));
            assertTrue(thrown.getCause() instanceof MalformedURLException);
        }
    
        @Test
        void testGetConfig() {
            // Test getConfig() method
            Configuration mockConfig = mock(Configuration.class);
            when(mockDelegate.getConfig()).thenReturn(mockConfig);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/CIFSContextTest.java

            // When
            mockContext.close();
    
            // Then
            verify(mockContext).close();
        }
    
        @Test
        @DisplayName("Should get Configuration")
        void testGetConfig() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/BaseContextTest.java

            assertSame(transportPool, context.getTransportPool(), "Should return same instance on multiple calls");
        }
    
        @Test
        @DisplayName("getConfig should return the provided configuration")
        void testGetConfig() {
            // When
            Configuration config = context.getConfig();
    
            // Then
            assertSame(mockConfig, config, "Should return the same configuration instance");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top