- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 145 for simulate (0.05 sec)
-
docs/smb3-features/02-persistent-handles-design.md
file.createNewFile(); // Write some data try (OutputStream os = file.getOutputStream()) { os.write("test data".getBytes()); } // Simulate network disconnection file.getTree().getSession().getTransport().disconnect(); // Try to read - should trigger reconnection try (InputStream is = file.getInputStream()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/PythonJobTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpFilterTest.java
when(httpSession.getAttribute("NtlmHttpAuth")).thenReturn(null); when(httpSession.getAttribute("NtlmHttpChal")).thenReturn(null); // For this test, we'll simulate that no auth header means we should challenge // Since we can't mock the internal transport operations easily without real network, // we'll test the simpler case where no NTLM negotiation is needed
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
import jcifs.Configuration; import jcifs.NameServiceClient; import jcifs.NetbiosAddress; import jcifs.smb.NtlmPasswordAuthentication; /** * JUnit 5 tests for the NtlmSsp class. * This class uses Mockito to simulate HttpServletRequest and HttpServletResponse objects. */ @ExtendWith(MockitoExtension.class) public class NtlmSspTest { @Mock private CIFSContext mockCifsContext; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
Field negotiatedField = SmbTransportImpl.class.getDeclaredField("negotiated"); negotiatedField.setAccessible(true); negotiatedField.set(first, negotiationResponse); // Simulate session already in use by adding a session Field sessionsField = SmbTransportImpl.class.getDeclaredField("sessions"); sessionsField.setAccessible(true); @SuppressWarnings("unchecked")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
// Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(4, buffer, 0); SMBUtil.writeInt2(0, buffer, 2); // When - simulate multiple concurrent reads on same response object int read1 = response.readBytesWireFormat(buffer, 0); int read2 = response.readBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
cmd/data-scanner_test.go
} globalBucketMetadataSys.Set(bucket, meta) // Prepare lifecycle expiration workers es := newExpiryState(t.Context(), objAPI, 0) globalExpiryState = es // Prepare object versions obj := "obj-1" // Simulate objects uploaded 30 hours ago modTime := now.Add(-48 * time.Hour) uuids := make([]uuid.UUID, 5) for i := range uuids { uuids[i] = uuid.UUID([16]byte{15: uint8(i + 1)}) } fivs := make([]FileInfo, 5)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 13.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java
// Start crawling crawlerContext.setStatus(CrawlerStatus.RUNNING); crawlerContext.setActiveThreadCount(5); // Simulate crawling progress for (int i = 0; i < 100; i++) { crawlerContext.incrementAndGetAccessCount(); crawlerContext.getRobotsTxtUrlSet().add("http://site" + i + ".com/robots.txt"); }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 25.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
SrvCopychunk mockChunk1 = mock(SrvCopychunk.class); SrvCopychunk mockChunk2 = mock(SrvCopychunk.class); SrvCopychunk mockChunk3 = mock(SrvCopychunk.class); // Simulate different encode return values when(mockChunk1.encode(any(byte[].class), anyInt())).thenReturn(20); when(mockChunk2.encode(any(byte[].class), anyInt())).thenReturn(24);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0)