- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 878 for Verify (0.04 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// Verify structure size assertEquals(36, SMBUtil.readInt2(buffer, 0)); // Verify dialect count assertEquals(3, SMBUtil.readInt2(buffer, 2)); // SMB210, SMB300, SMB302 // Verify security mode assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, SMBUtil.readInt2(buffer, 4)); // Verify capabilitiesRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java
int encodedLength = request.encode(buffer, 0); // Verify encoded length matches size assertEquals(request.size(), encodedLength); // Verify capabilities (4 bytes) assertEquals(DEFAULT_CAPABILITIES, SMBUtil.readInt4(buffer, 0)); // Verify client GUID (16 bytes) byte[] extractedGuid = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
void connectLogon_invocation_isForwarded() throws Exception { // Act tree.connectLogon(context); // Assert - verify interaction with dependency verify(tree, times(1)).connectLogon(context); verify(tree, never()).close(); } @Test @DisplayName("connectLogon accepts null context but still invokes")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
// Verify interactions assertEquals(0x20, response.info.getAttributes()); assertEquals(1024L, response.info.getSize()); assertEquals(1000000L, response.info.getCreateTime()); assertEquals(2000000L, response.info.getLastWriteTime()); // Verify the mock was called verify(mockInfo).getAttributes();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
verify(smbFileHandle, times(1)).getTree(); } /** * Test isValid() when the handle is valid. */ @Test void testIsValid_whenValid() { when(smbFileHandle.isValid()).thenReturn(true); assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid."); verify(smbFileHandle, times(1)).isValid(); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
// Verify structure size (32) assertEquals(32, SMBUtil.readInt2(buffer, offset)); // Verify notify flags assertEquals(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE, SMBUtil.readInt2(buffer, offset + 2)); // Verify output buffer length assertEquals(8192, SMBUtil.readInt4(buffer, offset + 4)); // Verify file ID byte[] readFileId = new byte[16];Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
// Act handle.close(); // Assert // Verify sendrecv was called for open and then for close verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcSamrOpenDomain.class)); verify(mockDcerpcHandle, times(1)).sendrecv(closeHandleCaptor.capture()); MsrpcSamrCloseHandle capturedRpc = closeHandleCaptor.getValue();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
} }; ComponentUtil.register(mockSearchLogHelper, "searchLogHelper"); // Execute the job String result = aggregateLogJob.execute(); // Verify result is empty string on success assertNotNull(result); assertEquals("", result); } public void test_execute_withException() { // Setup mock SearchLogHelper that throws exceptionRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
assertTrue(ex.getMessage().contains("failure")); verify(session).getSessionKey(); } // Happy path: transport is returned and verified @Test @DisplayName("getTransport returns mocked transport") void getTransport_happy() { when(session.getTransport()).thenReturn(transport); assertSame(transport, session.getTransport()); verify(session).getTransport(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0)