- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 145 for simulate (0.26 sec)
-
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
public int dec_ndr_long() { // Simulate decoding a long offset += 4; return 0; // Return a dummy value } @Override public void enc_ndr_short(int v) { // Simulate encoding a short offset += 2; } @Override public int dec_ndr_short() { // Simulate decoding a short offset += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 60.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
int writeParameterWordsWireFormat(byte[] dst, int dstIndex) { paramWordsWritten = 10; // simulate write of 10 bytes of parameter words return paramWordsWritten; } @Override int writeBytesWireFormat(byte[] dst, int dstIndex) { bytesWritten = 20; // simulate 20 bytes of data return bytesWritten; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
// Step 4: Initially no cached listing assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath)); // Step 5: Simulate directory enumeration and update cache List<SmbFile> files = Arrays.asList(mockFile1, mockFile2); directoryLeaseManager.updateDirectoryCache(directoryPath, files);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
} @Test void testMultipleFailuresExceedRetryLimit() { IOException error = new IOException("Connection failed"); // Simulate multiple failures for (int i = 0; i < 5; i++) { failover.handleFailure(failedChannel, error); } // Should eventually remove the channel
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
@Nested @DisplayName("Integration Pattern Tests") class IntegrationPatternTests { @Test @DisplayName("Should simulate usage in Smb2CreateResponse context") void testSimulatedUsagePattern() throws SMBProtocolDecodingException { // Simulate the pattern from Smb2CreateResponse byte[] nameBytes = "SMB2_CREATE_CONTEXT".getBytes(StandardCharsets.UTF_8);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (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) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
String sessionId = "test-session-3"; byte[] salt = preauthService.generatePreauthSalt(); preauthService.initializeSession(sessionId, salt, PreauthIntegrityService.HASH_ALGO_SHA512); // Simulate message exchange preauthService.updatePreauthHash(sessionId, "Message1".getBytes()); preauthService.updatePreauthHash(sessionId, "Message2".getBytes());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0)