- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 878 for Verify (0.17 sec)
-
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
NdrShort ndrShort2 = new NdrShort(0); ndrShort2.decode(decodeBuffer); // Then: Values should match verify(encodeBuffer).enc_ndr_short(originalValue); verify(decodeBuffer).dec_ndr_short(); assertEquals(ndrShort1.value, ndrShort2.value); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.InetAddress; import java.net.UnknownHostException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
// Act aliasHandle.close(); // Assert // Verify that sendrecv was called with MsrpcSamrCloseHandle verify(mockDcerpcHandle).sendrecv(any(MsrpcSamrCloseHandle.class)); // Verify that close was called only once on the mockDcerpcHandle for MsrpcSamrCloseHandle verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcSamrCloseHandle.class)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
int bytesWritten = info.encode(buffer, 0); // Verify replaceIfExists flag assertEquals(1, buffer[0]); // Verify file name length int nameLength = SMBUtil.readInt4(buffer, 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength); // Verify file name byte[] nameBytes = new byte[nameLength];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
assertEquals(48, value.length); // Verify the size field (first 4 bytes) assertEquals(48, (value[0] & 0xFF) | ((value[1] & 0xFF) << 8) | ((value[2] & 0xFF) << 16) | ((value[3] & 0xFF) << 24)); // Verify the zero field (next 4 bytes) assertEquals(0, (value[4] & 0xFF) | ((value[5] & 0xFF) << 8) | ((value[6] & 0xFF) << 16) | ((value[7] & 0xFF) << 24)); // Verify customData part
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
// Then - verify all operations assertEquals(mid, messageBlock.getMid()); assertEquals(command, messageBlock.getCommand()); assertEquals(digest, messageBlock.getDigest()); assertEquals(response, messageBlock.getResponse()); // Reset and verify messageBlock.reset(); verify(messageBlock).reset(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
request.setOutputData(mockOutputData); int size = request.size(); // Base size 120 + 100 + 50 = 270, aligned to 8 = 272 assertEquals(272, size); verify(mockInputData).size(); verify(mockOutputData).size(); } @Test @DisplayName("Test writeBytesWireFormat without data") void testWriteBytesWireFormatWithoutData() { setupMockConfig();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
assertEquals("c", it.next().getName()); assertFalse(it.hasNext()); // Verify interactions verify(tree, times(1)).send(isA(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class)); // Verify that Trans2FindNext2 was sent twice for fetching more entries verify(tree, times(2)).send(isA(Trans2FindNext2.class), any(Trans2FindFirst2Response.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
decodedInfo.decode(decodeBuffer); // Verify the decoded data matches assertEquals(domainInfo.name.length, decodedInfo.name.length); assertEquals(domainInfo.name.maximum_length, decodedInfo.name.maximum_length); assertNotNull(decodedInfo.name.buffer); assertEquals(domainInfo.name.maximum_length / 2, decodedInfo.name.buffer.length); // Verify SID assertNotNull(decodedInfo.sid);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
String str = spy.toString(); // Verify all methods were called except toString (Mockito limitation) verify(spy).getFileInformationLevel(); verify(spy).size(); verify(spy).encode(buffer, 0); verify(spy).decode(buffer, 0, 8); // Note: Cannot verify toString() with Mockito - it's a special method // Verify return values
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)