Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

                    Arguments.of(-1, -2L, -3L, -4L, -5L) // negative values
            );
        }
    
        // --- Mockito interaction: verify each getter is invoked and returns stubbed values ---
        @Test
        void mockitoMock_verifiesGetterInteractions() {
            // Arrange: mock and stub each getter with distinct values
            SmbBasicFileInfo mock = Mockito.mock(SmbBasicFileInfo.class);
            Mockito.when(mock.getAttributes()).thenReturn(7);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/spnego/NegTokenTargTest.java

            // Act – serialise and parse back
            byte[] bytes = original.toByteArray();
            NegTokenTarg roundTrip = new NegTokenTarg(bytes);
    
            // Assert – all getters match the original values
            assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip");
            assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

            assertEquals(12, qos.length);
            assertEquals(2, qos.impersonation_level);
            assertEquals(1, qos.context_mode);
            assertEquals(0, qos.effective_only);
    
            // Assert ptype and flags using getters
            assertEquals(0, msrpcLsarOpenPolicy2.getPtype());
            assertEquals(MsrpcLsarOpenPolicy2.DCERPC_FIRST_FRAG | MsrpcLsarOpenPolicy2.DCERPC_LAST_FRAG, msrpcLsarOpenPolicy2.getFlags());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessRegistration.java

         * @return true if the registration is expired
         */
        public boolean isExpired(long timeoutMs) {
            return System.currentTimeMillis() - lastHeartbeat > timeoutMs;
        }
    
        // Getters and setters
    
        /**
         * Gets the last heartbeat timestamp.
         *
         * @return the last heartbeat timestamp in milliseconds
         */
        public long getLastHeartbeat() {
            return lastHeartbeat;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessNotification.java

         *
         * @param address the old IP address
         */
        public void addOldIPAddress(InetAddress address) {
            oldIPAddresses.add(new WitnessIPAddress(address));
        }
    
        // Getters and Setters
    
        /**
         * Gets the event type.
         *
         * @return the event type
         */
        public WitnessEventType getEventType() {
            return eventType;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top