Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 145 for simulate (0.21 sec)

  1. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

            // Create a hook that simulates an exception scenario
            AtomicBoolean exceptionHandled = new AtomicBoolean(false);
    
            FessCurtainFinallyHook customHook = new FessCurtainFinallyHook() {
                @Override
                public void hook(final FwAssistantDirector assistantDirector) {
                    try {
                        // Simulate a scenario where the method exists but invocation fails
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

    import jcifs.internal.smb2.rdma.RdmaNegotiateRequest;
    import jcifs.internal.smb2.rdma.RdmaNegotiateResponse;
    
    /**
     * TCP-based RDMA connection implementation.
     *
     * Uses regular TCP sockets to simulate RDMA operations.
     * This provides a fallback when real RDMA hardware is not available.
     */
    public class TcpRdmaConnection extends RdmaConnection {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            // Test case: Constructor with DCERPC_FAULT_OP_RNG_ERROR, should fallback to MsrpcSamrConnect2
            String server = "testServer";
            int access = 123;
    
            // Simulate DCERPC_FAULT_OP_RNG_ERROR for MsrpcSamrConnect4
            doThrow(new DcerpcException("Operation range error") {
                @Override
                public int getErrorCode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            byte[] src = new byte[10];
            int srcIndex = 0;
    
            // Simulate groupName = false (0x00), nodeType = 0 (0x00) -> src[srcIndex] = 0x00
            src[srcIndex] = (byte) 0x00;
            src[srcIndex + 1] = (byte) 0x00; // Reserved/padding byte
    
            // Simulate address = 192.168.1.1 (0xC0A80101)
            src[srcIndex + 2] = (byte) 0xC0;
            src[srcIndex + 3] = (byte) 0xA8;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. 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 Sep 09 12:39:10 UTC 2025
    - Last Modified: Wed Mar 19 00:58:54 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                paramWordsWritten = 10; // Simulate writing parameter words
                return paramWordsWritten;
            }
    
            @Override
            protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
                bytesWritten = 20; // Simulate writing bytes
                return bytesWritten;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. cmd/metrics-v2_test.go

    		},
    		{
    			val:   0.79,
    			label: labels[2],
    		},
    	}
    	ticker := time.NewTicker(1 * time.Millisecond)
    	defer ticker.Stop()
    	for _, obs := range observations {
    		// Send observations once every 1ms, to simulate delay between
    		// observations. This is to test the channel based
    		// synchronization used internally.
    		<-ticker.C
    		ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java

        }
    
        // Test handling of processing exception
        public void test_execute_withProcessingException() {
            // Create a mock that returns 0 to simulate processing error
            SearchEngineClient errorClient = new SearchEngineClient() {
                @Override
                public long updateByQuery(String index,
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top