Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 145 for simulate (0.04 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

         * Should correctly parse the raw bytes.
         */
        @Test
        void testAvSingleHostRawConstructor() {
            byte[] rawData = new byte[48]; // 8 (size/zero) + 8 (customData) + 32 (machineId)
            // Simulate some data
            rawData[0] = 48; // size
            rawData[16] = 0x01; // machineId start
            rawData[17] = 0x02;
    
            AvSingleHost avSingleHost = new AvSingleHost(rawData);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

         */
        @Test
        void testResetUpdatesStateAndParameters() {
            // Given
            Trans2FindNext2 next = new Trans2FindNext2(0x0001, 0x0AAA0BBB, "old");
            next.flags2 = 0xFFFF; // simulate non-zero flags2
    
            // When
            next.reset(0x11121314, "last.dat");
    
            // Then
            assertEquals(0, next.flags2, "flags2 should be reset to 0");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          val sleepUntil = nanoTime + durationNanos
          yieldUntil { nanoTime >= sleepUntil }
        }
      }
    
      /**
       * Artificially stall until manually resumed by the test thread with [runTasks]. Use this to
       * simulate races in tasks that doesn't have a deterministic sequence.
       */
      fun yield() {
        taskRunner.assertLockNotHeld()
        taskRunner.withLock {
          yieldUntil()
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            assertEquals(expected, result);
        }
    
        @Test
        void testReadString_Oem() {
            response.useUnicode = false;
            String expected = "test";
            // Simulate OEM encoding with a null terminator
            byte[] src = (expected + "\0").getBytes(StandardCharsets.UTF_8);
            String result = response.readString(src, 0, src.length);
            // The method should remove the null terminator
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-utils_test.go

    		fi.ModTime = basefi.ModTime.Add(time.Duration(i) * time.Second)
    		if err := xl.AddVersion(fi); err != nil {
    			t.Fatalf("%d: Failed to add version %v", i+1, err)
    		}
    
    		if i > 3 {
    			// Simulate transition of a version
    			transfi := fi
    			transfi.TransitionStatus = lifecycle.TransitionComplete
    			transfi.TransitionTier = "MINIO-TIER"
    			transfi.TransitionedObjName = mustGetUUID()
    			xl.DeleteVersion(transfi)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            @Override
            protected int writeHeaderWireFormat(byte[] dst, int dstIndex) {
                return 64; // Simulate header writing
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                // We need to override the parent ServerMessageBlock2's encode
                // to properly simulate setting the length field
                int start = dstIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/WinErrorTest.java

        @Mock
        Handler handler;
    
        @Test
        @DisplayName("Interaction: handler called with each code/message pair")
        void interaction_with_mock_handler_is_as_expected() {
            // Interaction test: simulate passing each code/message to a collaborator
            for (int i = 0; i < WinError.WINERR_CODES.length; i++) {
                handler.handle(WinError.WINERR_CODES[i], WinError.WINERR_MESSAGES[i]);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                            assertNotNull(buffer, "Buffer should not be null");
                            assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have correct size");
    
                            // Simulate some work
                            buffer[0] = (byte) i;
    
                            // Release buffer
                            BufferCache.releaseBuffer(buffer);
                            successCount.incrementAndGet();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            // Test exception in a more complex scenario
            InvalidAccessTokenException exception = null;
            String expectedType = "Bearer";
            String expectedMessage = "Token has expired";
    
            // Simulate a token validation scenario
            boolean tokenValid = false;
            if (!tokenValid) {
                exception = new InvalidAccessTokenException(expectedType, expectedMessage);
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

            }
    
            @Override
            public void encode_in(NdrBuffer buf) throws NdrException {
                // Simulate encoding some data
                buf.enc_ndr_long(12345);
            }
    
            @Override
            public void decode_out(NdrBuffer buf) throws NdrException {
                // Simulate decoding some data
                buf.dec_ndr_long();
            }
        }
    
        @BeforeEach
        void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top