Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for effects (6.43 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

            // Then
            // Verify that the super constructor is called with correct arguments
            // Note: Directly verifying super constructor calls is not straightforward in JUnit/Mockito.
            // We verify the effects of the super constructor by checking the fields of the created object.
    
            // Assert object_attributes fields
            assertNotNull(msrpcLsarOpenPolicy2.object_attributes);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/RequestParamTest.java

        interface EnumConsumer {
            void accept(RequestParam rp);
        }
    
        @Mock
        EnumConsumer consumer;
    
        @Test
        @DisplayName("Enum value can be passed to collaborators without side effects")
        void enumUsedWithCollaboratorHasNoSideEffects() {
            // Arrange: pick a value and a mocked consumer
            RequestParam rp = RequestParam.NO_RETRY;
    
            // Act: pass to the collaborator
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            // Given the current implementation, direct modification of the passed array affects the AvPair.
            // If this is not desired, a defensive copy should be added in the AvPair constructor.
            assertEquals(0x05, avPair.getRaw()[0],
                    "Modifying original raw array should affect AvPair's raw data if no defensive copy is made.");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/MockWitnessService.java

            // Count how many registrations this affects
            int affectedRegistrations = 0;
            for (MockRegistration reg : registrations.values()) {
                if (reg.shareName.equalsIgnoreCase(resourceName) || reg.serverAddress.equals(resourceName)) {
                    affectedRegistrations++;
                }
            }
    
            log.debug("Notification affects {} registrations", affectedRegistrations);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java

     */
    @ExtendWith(MockitoExtension.class)
    class KerberosAuthDataTest {
    
        @Mock
        private Map<Integer, KerberosKey> mockKeys;
    
        /**
         * Test parsing with an unknown auth type.
         * Expects an empty list of authorizations.
         * @throws PACDecodingException should not be thrown
         */
        @Test
        void testParseUnknownAuthType() throws PACDecodingException {
            // GIVEN an unknown auth type
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/LogStream.java

         */
        public static void setLevel(final int level) {
            LogStream.level = level;
        }
    
        /**
         * This must be called before <code>getInstance</code> is called or
         * it will have no effect.
         *
         * @param stream the PrintStream to use for logging
         */
        public static void setInstance(final PrintStream stream) {
            inst = new LogStream(stream);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbException.java

            /* Note there's a signedness error here because 0xC0000000 based values are
             * negative so it with NT_STATUS_SUCCESS (0) the binary search will not be
             * performed properly. The effect is that the code at index 1 is never found
             * (NT_STATUS_UNSUCCESSFUL). So here we factor out NT_STATUS_SUCCESS
             * as a special case (which it is).
             */
            if (errcode == 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/spnego/SpnegoTokenTest.java

            // Document current behavior: no defensive copy (reference exposed)
            data[0] = 9;
            assertEquals(9, t.getMechanismToken()[0], "no defensive copy; reflects external mutation");
        }
    
        @Test
        @DisplayName("Setter and getter for mechanismListMIC work")
        void setGetMechanismListMIC() {
            TestSpnegoToken t = new TestSpnegoToken();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtlmAuthenticator.java

            url = null;
            sae = null;
        }
    
        /**
         * Set the default <code>NtlmAuthenticator</code>. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect.
         * @param a the authenticator to set as default
         */
    
        public synchronized static void setDefault(final NtlmAuthenticator a) {
            if (auth != null) {
                return;
            }
            auth = a;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

            ByteBuffer bb2 = ByteBuffer.wrap(bytes, 8, 8).order(java.nio.ByteOrder.BIG_ENDIAN);
            long data4 = bb2.getLong();
    
            // Construct UUID from components - Java UUID expects big-endian representation
            long mostSig = ((long) data1 << 32) | ((long) (data2 & 0xFFFF) << 16) | (data3 & 0xFFFF);
            long leastSig = data4;
    
            this.guid = new UUID(mostSig, leastSig);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top