Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 187 for simulate (0.05 seconds)

  1. src/test/java/jcifs/netbios/LmhostsTest.java

            // Test that #INCLUDE directive is handled (even if the include fails)
            String content = "#INCLUDE \\\\server\\share\\lmhosts\n" + "192.168.1.100 MAINHOST\n";
    
            // Mock SmbFileInputStream to simulate include file
            try (MockedConstruction<SmbFileInputStream> mockedConstruction =
                    Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Host is empty -> triggers master browser path
                URL anyUrlWithEmptyHost = new URL("file:/");
                when(locator.getURL()).thenReturn(anyUrlWithEmptyHost);
                // Simulate failure to find master browser (UnknownHost wrapped in CIFSException)
                when(locator.getAddress()).thenThrow(new CIFSException("no master", new UnknownHostException("MB")));
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  3. 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()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/stream-data.md

    その後、path operation 関数で `response_class=PNGStreamingResponse` としてこの新しいクラスを使用できます:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
    
    ### ファイルを模擬する { #simulate-a-file }
    
    この例では `io.BytesIO` でファイルを模擬しています。これはメモリ上だけに存在するファイルライクオブジェクトですが、通常のファイルと同じインターフェースを提供します。
    
    例えば、ファイルと同様にイテレートして内容を読み出せます。
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[1:27] hl[3,12:13,25] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:55:22 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

                    readings.add(text.toUpperCase());
                } else {
                    for (String lang : langs) {
                        if (japaneseMode && "ja".equals(lang)) {
                            // Simulate Japanese conversion
                            if ("東京".equals(text)) {
                                readings.add("トウキョウ");
                            } else {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.4K bytes
    - Click Count (1)
  7. src/test/java/jcifs/smb/SIDCacheImplTest.java

            SID s3 = sid("S-1-5-21-10-11-12-1003");
            jcifs.SID[] arr = new jcifs.SID[] { s1, s2, s3 };
    
            // First call should resolve two (offset=0,length=2)
            doAnswer(inv -> {
                // Simulate resolve call by setting names/types and thus enabling cache population
                Object[] args = inv.getArguments();
                String server = (String) args[0];
                CIFSContext c = (CIFSContext) args[1];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            }
        }
    
        @Test
        public void testRdmaStatisticsTracking() throws Exception {
            RdmaStatistics stats = new RdmaStatistics();
    
            // Simulate various RDMA operations
            stats.recordRdmaRead(1024, 1000000); // 1KB in 1ms
            stats.recordRdmaWrite(2048, 2000000); // 2KB in 2ms
            stats.recordRdmaSend(512, 500000); // 512B in 0.5ms
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 13.8K bytes
    - Click Count (0)
  9. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  10. 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)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12K bytes
    - Click Count (0)
Back to Top