- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 336 for directly (1.29 sec)
-
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) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
private NdrBuffer mockNdrBuffer; @Mock private NdrBuffer mockDeferredBuffer; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
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) -
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) -
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) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/s3/S3ClientTest.java
// Verify the prefix is correct assertEquals("crawler-S3Client-", prefix); assertEquals("Temp file suffix should be '.out'", ".out", suffix); assertNull("Directory should be null", directory); return super.createTempFile(prefix, suffix, directory); } };Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 07:57:44 UTC 2025 - 20.5K bytes - Viewed (0) -
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) -
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) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
// The actual SmbFile creation is outside the scope of this wrapper's direct responsibility. // For coverage, we'll ensure the method doesn't throw MalformedURLException for a valid URL // and that it attempts to create an SmbFile. // We cannot directly mock `new SmbFile()`, so we rely on the fact that if it doesn't throw, it's working as expected.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
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)