- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 187 for simulate (0.05 seconds)
-
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
// Test that an IOException is thrown if the input stream does not provide enough bytes. // Simulate reading less than 6 bytes. when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(5); // Simulate reading only 5 bytes SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket(); byte[] buffer = new byte[6];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (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 RIDCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.5K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 30.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java
} // Test handling of processing exception @Test public void test_execute_withProcessingException() { // Create a mock that returns 0 to simulate processing error SearchEngineClient errorClient = new SearchEngineClient() { @Override public long updateByQuery(String index,Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.6K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 9.8K bytes - Click Count (0) -
tensorflow/c/eager/c_api_remote_test_util.h
#define TENSORFLOW_C_EAGER_C_API_REMOTE_TEST_UTIL_H_ // Run a function containing a MatMul op and check its output. // If heavy_load_on_streaming_rpc is true, send some rpc requests before the one // which creates a remote input, to simulate a scenario that the remote input // is not ready when we start running an op or a function. void TestRemoteExecuteSilentCopies(bool async, bool remote, bool func, bool heavy_load_on_streaming_rpc,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Dec 11 22:56:03 GMT 2020 - 1.4K bytes - Click Count (0) -
cmd/xl-storage-free-version_test.go
"00000000-0000-0000-0000-0000000000f1", "00000000-0000-0000-0000-0000000000f2", } // Simulate overwrite of null version newtierfi := tierfi newtierfi.SetTierFreeVersionID(fvIDs[0]) fatalErr(xl.AddFreeVersion(newtierfi)) report() fatalErr(xl.AddVersion(newtierfi)) report() // Simulate removal of null version newtierfi.TransitionTier = "" newtierfi.TransitionedObjName = ""
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Mar 02 05:11:03 GMT 2024 - 7.8K bytes - Click Count (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()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:31 GMT 2025 - 6.9K bytes - Click Count (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));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.2K bytes - Click Count (0) -
docs/en/docs/advanced/stream-data.md
Then you can use this new class in `response_class=PNGStreamingResponse` in your *path operation function*: {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *} ### Simulate a File { #simulate-a-file } In this example, we are simulating a file with `io.BytesIO`, which is a file-like object that lives only in memory, but lets us use the same interface.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 5.4K bytes - Click Count (0)