- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for simulate (1.28 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 10.2K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/model/PropertiesTest.java
assertEquals("first", keys.get(1)); assertEquals("second", keys.get(2)); } @Test void testPropertiesOrderPreservedInMutableModel() { // Create ordered map to simulate properties with specific order Map<String, String> orderedMap = new LinkedHashMap<>(); orderedMap.put("z-property", "z"); orderedMap.put("a-property", "a");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jun 12 07:26:53 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD)); } /** * Simulate some of the races that can happen on add. We can't easily simulate the race that * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where * the putIfAbsent returns a non-null value, and the case where the replace() of an observed zero * fails. */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 16.3K 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: Sat Dec 20 13:44:44 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 RIDRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/CompositeBeanHelperPerformanceTest.java
} @Benchmark public void benchmarkOriginalHelper() throws Exception { RealisticTestBean bean = new RealisticTestBean(); // Set multiple properties to simulate real mojo configuration // Use direct method calls instead of reflection for fair comparison PlexusConfiguration nameConfig = new XmlPlexusConfiguration("name"); nameConfig.setValue("testValue");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jul 17 07:40:49 UTC 2025 - 16.6K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0)