Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testGetters (0.07 sec)

  1. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            });
            // Exception is thrown, but cause may or may not be set depending on implementation
            assertNotNull(e.getMessage()); // Should have an error message
        }
    
        @Test
        void testGetters() {
            // Simple test for getter methods
            NtlmContext context = new NtlmContext(mockAuth, true);
            assertFalse(context.isEstablished());
            assertNull(context.getServerChallenge());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            assertEquals("Malformed PAC", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test getters return expected values using mocks")
        void testGetters() throws Exception {
            // Use mocking to test getters without complex PAC data creation
            PacLogonInfo logonInfo = mock(PacLogonInfo.class);
    
            // Setup mock responses
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

            }
        }
    
        @Nested
        @DisplayName("Getter Tests")
        class GetterTests {
    
            @Test
            @DisplayName("Should return correct values from getters")
            void testGetters() throws CIFSException {
                // When/Then: All getters should return expected values
                assertEquals(mockBinding, handle.getBinding());
                assertTrue(handle.getMaxRecv() > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/ReferralTest.java

            assertEquals(expectedPath, referral.getRpath());
            assertNull(referral.getAltPath());
            assertNull(referral.getNode());
        }
    
        // Getter Tests
    
        @Test
        public void testGetters() {
            // Setup a complete referral
            ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
            bb.putShort((short) 3);
            bb.putShort((short) 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top