Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 145 for simulate (0.21 sec)

  1. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

                    return false;
                }
    
                // Simulate thumbnail generation
                try {
                    if (!outputFile.exists()) {
                        outputFile.createNewFile();
                    }
                    // Write some dummy content to simulate actual thumbnail
                    Files.write(outputFile.toPath(), ("thumbnail-" + thumbnailId).getBytes());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  3. 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;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. 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 = ""
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

        }
    
        @Nested
        @DisplayName("Integration Pattern Tests")
        class IntegrationPatternTests {
    
            @Test
            @DisplayName("Should simulate usage in Smb2CreateRequest context")
            void testSimulatedUsagePattern() {
                // Simulate the pattern from Smb2CreateRequest
                CreateContextRequest[] contexts = new CreateContextRequest[3];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  6. 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));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                        for (int i = 0; i < operationsPerThread; i++) {
                            // Simulate the atomic byte tracking operation
                            long start = System.nanoTime();
                            mockBytesEncrypted.addAndGet(1024); // Simulate 1KB message
                            long end = System.nanoTime();
    
                            totalTime.addAndGet(end - start);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. docs/en/docs/css/custom.css

    }
    
    /* Right to left languages */
    code {
      direction: ltr;
      display: inline-block;
    }
    
    .illustration {
      margin-top: 2em;
      margin-bottom: 2em;
    }
    
    /* Screenshots */
    /*
    Simulate a browser window frame.
    Inspired by Termynal's CSS tricks with modifications
    */
    
    .screenshot {
      display: block;
      background-color: #d3e0de;
      border-radius: 4px;
      padding: 45px 5px 5px;
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Wed Jul 17 02:12:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. cmd/naughty-disk_test.go

    import (
    	"context"
    	"io"
    	"sync"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    // naughtyDisk wraps a POSIX disk and returns programmed errors
    // specified by the developer. The purpose is to simulate errors
    // that are hard to simulate in practice like DiskNotFound.
    // Programmed errors are stored in errors field.
    type naughtyDisk struct {
    	// The real disk
    	disk StorageAPI
    	// Programmed errors: API call number => error to return
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  10. 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)
    		}()
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (1)
Back to top