Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 050 (0.01 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                when(mockSmbPipeHandleInternal.sendrecv(buf, 0, 50, inB, 4280)).thenReturn(40);
    
                int result = handle.doSendReceiveFragment(buf, 0, 50, inB);
                assertEquals(40, result);
                verify(mockSmbPipeHandleInternal).sendrecv(buf, 0, 50, inB, 4280);
            }
    
            @Test
            @DisplayName("Should handle multiple receives for fragment")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                MockCreateContextResponse mock = new MockCreateContextResponse("TEST");
                byte[] buffer = new byte[100];
    
                int result = mock.decode(buffer, 0, 50);
                assertEquals(0, result);
            }
    
            @ParameterizedTest
            @ValueSource(strings = { "", "SHORT", "VERY_LONG_CONTEXT_NAME_FOR_TESTING", "特殊字符" })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

            1,
            3,
            new long[] {GREATEST - 1, GREATEST - 2, 1, 2});
      }
    
      public void testDivide() {
        assertThat(UnsignedLongs.divide(14, 5)).isEqualTo(2);
        assertThat(UnsignedLongs.divide(0, 50)).isEqualTo(0);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)).isEqualTo(1);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)).isEqualTo(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            byte[] buffer = new byte[100];
    
            assertThrows(NullPointerException.class, () -> nullBufferResponse.readDataWireFormat(buffer, 0, 50));
        }
    
        @Test
        void testReadDataWireFormatEmptyOutputBuffer() throws SMBProtocolDecodingException {
            // Test with empty outputBuffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                Trans2QueryPathInformationResponse resp = new Trans2QueryPathInformationResponse(0x999);
    
                byte[] buffer = new byte[100];
                int result = resp.readDataWireFormat(buffer, 0, 50);
                assertEquals(0, result);
                assertNull(resp.info);
            }
        }
    
        @Nested
        @DisplayName("Mock Interaction Tests")
        class MockInteractionTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Fill test pattern
            for (int i = 0; i < buffer.length; i++) {
                buffer[i] = (byte) (i % 256);
            }
    
            int bytesConsumed = response.decode(buffer, 0, 50);
    
            assertEquals(28, bytesConsumed, "Should consume exactly 28 bytes regardless of extra length");
    
            byte[] resumeKey = response.getResumeKey();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        @DisplayName("readSetupWireFormat with various parameters should return 0")
        void testReadSetupWireFormatVariousParams() {
            // Test with different buffer sizes and offsets
            int[][] testCases = { { 0, 50 }, // No offset, 50 bytes
                    { 10, 90 }, // 10 byte offset, 90 bytes
                    { 50, 50 }, // 50 byte offset, 50 bytes
                    { 0, 0 }, // Empty buffer
                    { 100, 100 } // Large values
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    		metricsGroupOpts: opts,
    	}
    	mg.RegisterRead(func(ctx context.Context) (metrics []MetricV2) {
    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return
    		}
    
    		metrics = make([]MetricV2, 0, 50)
    		dataUsageInfo, err := loadDataUsageFromBackend(ctx, objLayer)
    		if err != nil {
    			metricsLogIf(ctx, err)
    			return
    		}
    
    		// data usage has not captured any data yet.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 133.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/QueryResponseListTest.java

            qrList.calculatePageInfo();
    
            // start=10, offset=5, so startWithOffset = 10-5 = 5
            // currentPageNumber = start / pageSize + 1 = 10 / 20 + 1 = 1
            // existPrevPage = startWithOffset > 0 = 5 > 0 = true
            assertEquals(1, qrList.getCurrentPageNumber());
            assertTrue(qrList.isExistNextPage());
            assertTrue(qrList.isExistPrevPage());
            assertEquals(11, qrList.getCurrentStartRecordNumber());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 39.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            void testSignSignatureExceedsBuffer() {
                byte[] data = new byte[50]; // Too small for signature field
                assertThrows(IllegalArgumentException.class, () -> digest.sign(data, 0, 50, request, response),
                        "Should throw IllegalArgumentException when signature field exceeds buffer");
            }
    
            @Test
            @DisplayName("Should handle null data buffer in verify method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
Back to top