Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 576 for 50 (0.01 seconds)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            @DisplayName("Should return 0 for writeSetupWireFormat with offset")
            void testWriteSetupWireFormatWithOffset() {
                byte[] dst = new byte[100];
                int result = response.writeSetupWireFormat(dst, 50);
    
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should return 0 for writeParametersWireFormat")
            void testWriteParametersWireFormat() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            // Set structure size to 9 (valid)
            SMBUtil.writeInt2(9, buffer, bufferIndex);
            // Set buffer offset (relative to header start)
            SMBUtil.writeInt2(50, buffer, bufferIndex + 2);
            // Set buffer length
            SMBUtil.writeInt4(8, buffer, bufferIndex + 4);
    
            // Mock getHeaderStart
            response = spy(response);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.5K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            transaction.setTotalParameterCount(100);
            transaction.setTotalDataCount(200);
            transaction.setMaxParameterCount(1024);
            transaction.setMaxDataCountForTest(2048);
            transaction.setParameterCount(50);
            transaction.setParameterOffset(80);
            transaction.setDataCount(150);
            transaction.setDataOffset(130);
            transaction.setSetupCount(1);
            transaction.setSetupWireFormatReturn(4);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/compression/CompressionService.java

         *
         * @param data the data to analyze
         * @param algorithm the compression algorithm
         * @return estimated compression ratio (0.0 to 1.0, where 0.5 means 50% size reduction)
         */
        double estimateCompressionRatio(byte[] data, int algorithm);
    
        /**
         * Gets the minimum data size threshold for compression.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/filter/LoadControlFilterTest.java

        @Test
        public void test_doFilter_webBelowThreshold() throws IOException, ServletException {
            setConfig(80, 100);
            testableFilter.setCpuPercent((short) 50);
            mockRequest.setRequestURI("/search");
    
            testableFilter.doFilter(mockRequest, mockResponse, mockFilterChain);
    
            assertTrue(mockFilterChain.wasDoFilterCalled());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            // Write structure header (9 bytes)
            SMBUtil.writeInt2(9, buffer, offset); // Structure size
            SMBUtil.writeInt2(80 - 64, buffer, offset + 2); // Buffer offset (relative to header)
            SMBUtil.writeInt4(50, buffer, offset + 4); // Total length of notification data
    
            // Write notification data at buffer offset 80
            int notifyOffset = 80;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/llm/LlmMessageTest.java

            final LlmMessage message = new LlmMessage("user", longContent.toString());
            final String str = message.toString();
            assertTrue(str.contains("..."));
            assertTrue(str.length() < longContent.length() + 50);
        }
    
        @Test
        public void test_toStringNullContent() {
            final LlmMessage message = new LlmMessage("user", null);
            final String str = message.toString();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            assertEquals(0, read);
        }
    
        @Test
        void testToString() {
            // Test toString method
            when(mockConfig.getListSize()).thenReturn(50);
    
            trans2FindNext2 = new Trans2FindNext2(mockConfig, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
            String result = trans2FindNext2.toString();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/math/IntMathTest.java

        for (int n = 0; n <= 50; n++) {
          for (int k = 0; k <= n; k++) {
            BigInteger expectedBig = BigIntegerMath.binomial(n, k);
            int expectedInt = fitsInInt(expectedBig) ? expectedBig.intValue() : Integer.MAX_VALUE;
            assertEquals(expectedInt, IntMath.binomial(n, k));
          }
        }
      }
    
      public void testBinomialOutside() {
        for (int i = 0; i <= 50; i++) {
          int n = i;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        void testWriteWireFormat() {
            packet.type = SessionServicePacket.SESSION_MESSAGE;
            packet.trailerLength = 10; // Mock trailer will write 10 bytes
    
            byte[] dst = new byte[50];
            int totalWritten = packet.writeWireFormat(dst, 0);
    
            assertEquals(14, totalWritten); // 4 header + 10 trailer
            assertEquals((byte) SessionServicePacket.SESSION_MESSAGE, dst[0]);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.5K bytes
    - Click Count (0)
Back to Top