- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 187 for simulate (0.05 seconds)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
@DisplayName("Test getInfo with compatible type") void testGetInfoWithCompatibleType() throws Exception { response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO); // Simulate setting info through readDataWireFormat byte[] buffer = createMockFileBasicInfoBuffer(); response.setDataCount(buffer.length); response.readDataWireFormat(buffer, 0, buffer.length);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
void noInteraction_whenExceptionOccursBeforeCall() { // Arrange Runnable r = mock(Runnable.class); // Act: simulate control flow where the exception happens before any collaborator is used try { throw new SmbUnsupportedOperationException(); } catch (SmbUnsupportedOperationException ignored) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
} @Test @DisplayName("Should handle server-side copy response") void testServerSideCopyResponse() throws SMBProtocolDecodingException { // Simulate a server-side copy operation response byte[] buffer = createValidCopyChunkResponse(32, 262144, 8388608); int bytesDecoded = response.decode(buffer, 0, buffer.length);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.8K bytes - Click Count (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
*/ @Test void testWatchTimeout() throws Exception { // Create a handle that simulates blocking operation SmbWatchHandle blockingHandle = new SmbWatchHandle() { @Override public List<FileNotifyInformation> watch() throws CIFSException { try { // Simulate blocking indefinitely Thread.sleep(Long.MAX_VALUE);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (1) -
cmd/admin-handlers_test.go
// single node setup, this degenerates to a simple function // call under the hood. globalMinioAddr = "127.0.0.1:9000" var wg sync.WaitGroup // Setting up a go routine to simulate ServerRouter's // handleServiceSignals for stop and restart commands. if cmd == restartCmd { wg.Add(1) go func() { defer wg.Done() testServiceSignalReceiver(cmd, t) }() }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.9K bytes - Click Count (1) -
tests/test_stream_cancellation.py
Returns `True` if the cancellation was delivered (i.e. it did not hang). """ chunks: list[bytes] = [] async def receive(): # type: ignore[no-untyped-def] # Simulate a client that never disconnects, rely on cancellation await anyio.sleep(float("inf")) return {"type": "http.disconnect"} # pragma: no cover async def send(message: dict) -> None: # type: ignore[type-arg]Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.7K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
* Should correctly parse the raw bytes. */ @Test void testAvSingleHostRawConstructor() { byte[] rawData = new byte[48]; // 8 (size/zero) + 8 (customData) + 32 (machineId) // Simulate some data rawData[0] = 48; // size rawData[16] = 0x01; // machineId start rawData[17] = 0x02; AvSingleHost avSingleHost = new AvSingleHost(rawData);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
@Override protected int writeHeaderWireFormat(byte[] dst, int dstIndex) { return 64; // Simulate header writing } @Override public int encode(byte[] dst, int dstIndex) { // We need to override the parent ServerMessageBlock2's encode // to properly simulate setting the length field int start = dstIndex;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/chat/ChatPhaseCallbackTest.java
} @Override public void onError(String phase, String errorMessage) { } }; // Simulate typical flow callback.onPhaseStart(ChatPhaseCallback.PHASE_INTENT, "msg"); callback.onPhaseStart(ChatPhaseCallback.PHASE_SEARCH, "msg"); callback.onPhaseStart(ChatPhaseCallback.PHASE_EVALUATE, "msg");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Jan 12 10:32:40 GMT 2026 - 7.3K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
} @Override public void encode_in(NdrBuffer buf) throws NdrException { // Simulate encoding some data buf.enc_ndr_long(12345); } @Override public void decode_out(NdrBuffer buf) throws NdrException { // Simulate decoding some data buf.dec_ndr_long(); } } @BeforeEach void setUp() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.3K bytes - Click Count (0)