- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for simulate (0.15 sec)
-
src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaConnection.java
} try { // In real implementation, this would perform RDMA read into the buffer // For skeleton implementation, simulate reading the requested amount int bytesToRead = Math.min(length, buffer.remaining()); // Simulate RDMA read operation log.debug("DiSNI RDMA read request: {} bytes from remote address 0x{}", bytesToRead, Long.toHexString(remoteAddress));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
import jcifs.CIFSException; import jcifs.Configuration; import jcifs.NameServiceClient; import jcifs.smb.NtlmPasswordAuthentication; /** * Tests for the NtlmServlet class. * This class uses Mockito to simulate a servlet environment and test authentication logic. */ @ExtendWith(MockitoExtension.class) class NtlmServletTest { // A concrete implementation of the abstract NtlmServlet for testing purposes.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
byte[] src = new byte[10]; int srcIndex = 0; // Simulate groupName = false (0x00), nodeType = 0 (0x00) -> src[srcIndex] = 0x00 src[srcIndex] = (byte) 0x00; src[srcIndex + 1] = (byte) 0x00; // Reserved/padding byte // Simulate address = 192.168.1.1 (0xC0A80101) src[srcIndex + 2] = (byte) 0xC0; src[srcIndex + 3] = (byte) 0xA8;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) { paramWordsWritten = 10; // Simulate writing parameter words return paramWordsWritten; } @Override protected int writeBytesWireFormat(byte[] dst, int dstIndex) { bytesWritten = 20; // Simulate writing bytes return bytesWritten; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/SIDTest.java
* Test getting the domain SID. * * @throws SmbException if the SID string is invalid */ @Test void testGetDomainSid() throws SmbException { // Create a mock RPC SID to simulate a user SID rpc.sid_t rpcSid = new rpc.sid_t(); rpcSid.revision = 1; rpcSid.sub_authority_count = 5; // Fixed: should be 5 for domain SID with RID
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
byte[] encodeBufferOut = new byte[1024]; NdrBuffer dstOut = new NdrBuffer(encodeBufferOut, 0); // Simulate info pointer (non-null) dstOut.enc_ndr_long(1); // Non-null pointer for info info.encode(dstOut); // Encode the info structure // Simulate totalentries pointer (non-null) dstOut.enc_ndr_long(1); // Non-null pointer for totalentries
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.Configuration; /** * Integration tests for witness protocol implementation. * Uses mock services to simulate witness behavior. */ @ExtendWith(MockitoExtension.class) public class WitnessIntegrationTest { @Mock private CIFSContext mockContext; @Mock private Configuration mockConfig;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
} @Nested @DisplayName("Integration Pattern Tests") class IntegrationPatternTests { @Test @DisplayName("Should simulate usage in Smb2CreateRequest context") void testSimulatedUsagePattern() { // Simulate the pattern from Smb2CreateRequest CreateContextRequest[] contexts = new CreateContextRequest[3];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
SmbTree tree = new SmbTree(session, "testShare", "testService"); // Mock transport.connect() to succeed doNothing().when(transport).connect(); // Simulate failed tree connect doThrow(new SmbException("Connection failed")).when(session).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0)