Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for directly (0.3 sec)

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

            // are passed up. Mockito cannot directly verify super() calls without PowerMock,
            // which is not ideal for simple constructor tests.
            // The primary responsibility of this constructor is setting ptype and flags,
            // which are directly verifiable.
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java

            // Although we cannot directly verify the super constructor call with Mockito for a real class,
            // we can infer its correct behavior if the object is successfully constructed and its own fields are correct.
            // The super constructor is called with (domainHandle, 0, acct_flags, null, 0)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

            assertEquals(2, lsarSidArrayX.sids.length, "sids array length should match");
            assertEquals(mockSid1, lsarSidArrayX.sids[0].sid, "First SID should be assigned directly");
            assertEquals(mockSid2, lsarSidArrayX.sids[1].sid, "Second SID should be assigned directly");
        }
    
        @Test
        void testConstructorWithEmptySIDArray() {
            jcifs.SID[] sids = {};
            LsarSidArrayX lsarSidArrayX = new LsarSidArrayX(sids);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. 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.
            // However, the primary responsibility of MsrpcSamrOpenAlias's constructor is to call the super constructor
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

            bb.putShort(data2); // data2 (2 bytes, little-endian)
            bb.putShort(data3); // data3 (2 bytes, little-endian)
    
            // Last 8 bytes (data4) written directly as big-endian bytes
            // Extract individual bytes from leastSig and write them directly
            for (int i = 0; i < 8; i++) {
                result[8 + i] = (byte) (leastSig >>> (56 - i * 8));
            }
    
            return result;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

            MsrpcLsarOpenPolicy2 msrpcLsarOpenPolicy2 = new MsrpcLsarOpenPolicy2(server, access, mockPolicyHandle);
    
            // 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcEnumerateAliasesInDomainTest.java

            assertEquals(mockSamArray, request.sam, "The sam array should be set correctly.");
            // ptype and flags are protected fields in DcerpcMessage, cannot test directly
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

            MsrpcQueryInformationPolicy policy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    
            // Verify that the super constructor was called with the correct arguments
            // Note: Mockito cannot directly verify super constructor calls.
            // We assume if the object is created, the super constructor was called.
            // We can verify the state of the object after construction.
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/MsrpcLsarCloseTest.java

            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, msrpcLsarClose.getFlags(),
                    "flags should be DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
    
            // Although we cannot directly assert that super(handle) was called with Mockito for a constructor,
            // the fact that the object is successfully created and its inherited fields are accessible
            // implies the super constructor was invoked.
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PacCredentialTypeTest.java

        }
    
        /**
         * Tests the isCredentialTypeCorrect method with a null byte array.
         * This test is indirect as the constructor would throw an exception.
         * We can't instantiate the class with null, so we can't directly test this method's behavior with null.
         * However, the constructor logic `!isCredentialTypeCorrect()` covers this.
         * If `new PacCredentialType(null)` throws, it implies `isCredentialTypeCorrect()` returned false for null.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top