Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for getters (0.04 sec)

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

    /**
     * Tests for the {@link AllocInfo} interface.
     * Since {@code AllocInfo} only declares getters, the tests focus on
     * verifying that implementations honour the contract.
     */
    @ExtendWith(MockitoExtension.class)
    public class AllocInfoTest {
    
        @Mock
        AllocInfo mockAllocInfo;
    
        /**
         * Happy path – verifies that getters return the values supplied by the
         * implementation.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertNotNull(defaultConfig.getMachineId(), "Machine ID should not be null");
        }
    
        @Test
        @DisplayName("Test network configuration getters")
        void testNetworkConfigurationGetters() {
            assertEquals(0, config.getLocalPort());
            assertEquals(SmbConstants.DEFAULT_CONN_TIMEOUT, config.getConnTimeout());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/smb/FileEntryTest.java

        }
    
        @ParameterizedTest(name = "Int getter {2} returns {1}")
        @MethodSource("intGetterProvider")
        void intGetters_edgeCases(IntGetter getter, int value, String label) {
            // Arrange
            FileEntry e = new TestFileEntry("n", value, value, 0L, 0L, 0L, 0L, value);
            // Act
            int actual = getter.apply(e);
            // Assert
            assertEquals(value, actual, label);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. docs/smb3-features/06-witness-protocol-design.md

        private String serverAddress;
        private int flags;
        
        // Getters and setters...
    }
    
    class WitnessRegisterResponse {
        private String registrationId;
        private int returnCode;
        
        public boolean isSuccess() { return returnCode == 0; }
        public String getError() { return "Error code: " + returnCode; }
        // Getters and setters...
    }
    
    class WitnessUnregisterRequest {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/SpnegoTokenTest.java

            // Current behavior of test impl: returns same reference
            assertSame(raw, t.toByteArray(), "should return the same reference as mechanismToken");
        }
    
        @Test
        @DisplayName("Setters accept null and getters return null")
        void settersAcceptNull() {
            TestSpnegoToken t = new TestSpnegoToken();
            t.setMechanismToken(null);
            t.setMechanismListMIC(null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. 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());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            // Verify that the object was created
            assertNotNull(pacString, "The PacUnicodeString object should not be null.");
    
            // Verify that the getters return the correct values
            assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java

                throw new RuntimeException("Failed to access protected fields via reflection", e);
            }
    
            // Since SamrOpenAlias's constructor parameters are not directly exposed via getters in MsrpcSamrOpenAlias,
            // we cannot directly verify them here without reflection or extending SamrOpenAlias for testing.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java

            return data;
        }
    
        /**
         * Get size of this message
         *
         * @return size in bytes (32)
         */
        public static int size() {
            return 32;
        }
    
        // Getters and setters
    
        /**
         * Get the minimum SMB Direct protocol version
         *
         * @return minimum protocol version
         */
        public int getMinVersion() {
            return minVersion;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top