Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 150 for simulate (0.12 sec)

  1. src/test/java/jcifs/SIDTest.java

         * Test getting the domain SID.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testGetDomainSid() throws SmbException {
            // Create a mock RPC SID to simulate a user SID
            rpc.sid_t rpcSid = new rpc.sid_t();
            rpcSid.revision = 1;
            rpcSid.sub_authority_count = 5; // Fixed: should be 5 for domain SID with RID
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Test that an IOException is thrown if the input stream does not provide enough bytes.
            // Simulate reading less than 6 bytes.
            when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(5); // Simulate reading only 5 bytes
    
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
            byte[] buffer = new byte[6];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. ci/official/envs/windows_x86_2022

    TFCI_WHL_AUDIT_PLAT=0
    # Tests are extremely slow at the moment
    TFCI_WHL_BAZEL_TEST_ENABLE=0
    TFCI_WHL_SIZE_LIMIT=450M
    TFCI_WHL_SIZE_LIMIT_ENABLE=1
    TFCI_WHL_IMPORT_TEST_ENABLE=1
    TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS=""
    
    # Used to simulate a T:\ drive within the container, to a limited extent,
    # via a symlink.
    # Helpful since the internal CI utilizes a T:\ drive, part of which is mounted
    # to the container, and would result in C:\<path> != T:\<path> mismatches,
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Thu Nov 06 19:44:26 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/CompositeBeanHelperPerformanceTest.java

        }
    
        @Benchmark
        public void benchmarkOriginalHelper() throws Exception {
            RealisticTestBean bean = new RealisticTestBean();
    
            // Set multiple properties to simulate real mojo configuration
            // Use direct method calls instead of reflection for fair comparison
            PlexusConfiguration nameConfig = new XmlPlexusConfiguration("name");
            nameConfig.setValue("testValue");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 17 07:40:49 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top