- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 150 for simulate (0.55 sec)
-
src/test/java/jcifs/context/AbstractCIFSContextTest.java
assertFalse(result); // AbstractCIFSContext always returns false for close() assertTrue(context.isCloseCalled()); } @Test void testRun_successfulClose() throws CIFSException { // Simulate the shutdown hook being run context.run(); assertTrue(context.isCloseCalled()); // Verify close() was called } @Test void testRun_closeThrowsException() throws CIFSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java
import jcifs.internal.smb2.rdma.RdmaNegotiateRequest; import jcifs.internal.smb2.rdma.RdmaNegotiateResponse; /** * TCP-based RDMA connection implementation. * * Uses regular TCP sockets to simulate RDMA operations. * This provides a fallback when real RDMA hardware is not available. */ public class TcpRdmaConnection extends RdmaConnection {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
// Test case: Constructor with DCERPC_FAULT_OP_RNG_ERROR, should fallback to MsrpcSamrConnect2 String server = "testServer"; int access = 123; // Simulate DCERPC_FAULT_OP_RNG_ERROR for MsrpcSamrConnect4 doThrow(new DcerpcException("Operation range error") { @Override public int getErrorCode() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K 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) -
cmd/erasure-multipart-conditional_test.go
t.Fatal(err) } // Get object info to capture the ETag objInfo, err := obj.GetObjectInfo(ctx, bucket, object, ObjectOptions{}) if err != nil { t.Fatal(err) } existingETag := objInfo.ETag // Simulate read quorum failure by taking enough disks offline // With 16 disks (EC 8+8), read quorum is 9. Taking 8 disks offline leaves only 8, // which is below read quorum. erasureDisks := xl.getDisks()
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:31 UTC 2025 - 6.9K 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) -
cmd/metrics-v2_test.go
}, { val: 0.79, label: labels[2], }, } ticker := time.NewTicker(1 * time.Millisecond) defer ticker.Stop() for _, obs := range observations { // Send observations once every 1ms, to simulate delay between // observations. This is to test the channel based // synchronization used internally. <-ticker.C ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val) }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 6.8K bytes - Viewed (0)