Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 399 for 8100 (0.01 sec)

  1. src/main/java/jcifs/util/PathValidator.java

         */
        private String sanitizeForLog(String path) {
            if (path == null) {
                return "null";
            }
    
            // Truncate long paths
            if (path.length() > 100) {
                path = path.substring(0, 100) + "...";
            }
    
            // Remove control characters for safe logging
            return path.replaceAll("[\\x00-\\x1F\\x7F]", "?");
        }
    
        /**
         * Get blacklisted paths
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                int result2 = response.decode(buffer, 90, 10);
                assertEquals(10, result2);
    
                // Test full buffer
                int result3 = response.decode(buffer, 0, 100);
                assertEquals(100, result3);
            }
    
            @Test
            @DisplayName("Should handle concurrent decode calls")
            void testConcurrentDecoding() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                assertEquals((chunkCount - 1) * 1000L, SMBUtil.readInt8(buffer, offset));
                assertEquals((chunkCount - 1) * 2000L, SMBUtil.readInt8(buffer, offset + 8));
                assertEquals((chunkCount - 1) * 100, SMBUtil.readInt4(buffer, offset + 16));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

                response.readBytesWireFormat(buffer, 0);
            });
    
            assertTrue(exception.getMessage().contains("Invalid negotiate context count: 1000"));
            assertTrue(exception.getMessage().contains("must be 0-100"));
        }
    
        /**
         * Test validation of negative negotiate context count.
         */
        @Test
        public void testNegativeNegotiateContextCount() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ContiguousSet.java

      @GwtIncompatible // NavigableSet
      ImmutableSortedSet<C> createDescendingSet() {
        return new DescendingImmutableSortedSet<>(this);
      }
    
      /** Returns a shorthand representation of the contents such as {@code "[1..100]"}. */
      @Override
      public String toString() {
        return range().toString();
      }
    
      /**
       * Not supported. {@code ContiguousSet} instances are constructed with {@link #create}. This
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            int result = response.readSetupWireFormat(buffer, 0, 100);
            assertEquals(0, result);
    
            // Test with different parameters
            result = response.readSetupWireFormat(buffer, 10, 50);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat with valid data")
        void testReadParametersWireFormat() throws Exception {
            byte[] buffer = new byte[8];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SmbCircuitBreaker.java

         *
         * @return success rate as percentage (0-100)
         */
        private double calculateSuccessRate() {
            long total = totalRequests.get();
            if (total == 0) {
                return 100.0;
            }
            return (totalSuccesses.get() * 100.0) / total;
        }
    
        /**
         * Calculate availability
         *
         * @return availability as percentage (0-100)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        /* Read in various values in LITTLE ENDIAN FORMAT */
        byte[] b = new byte[2];
        in.readFully(b);
        assertEquals(-100, b[0]);
        assertEquals(100, b[1]);
        assertEquals(true, in.readBoolean());
        assertEquals(false, in.readBoolean());
        assertEquals(100, in.readByte());
        assertEquals(-100, in.readByte());
        assertEquals(200, in.readUnsignedByte());
        assertEquals('\u6100', in.readChar());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        }
      }
    
      @Test
      fun failedDribbledCallEventSequence() {
        server.enqueue(
          MockResponse
            .Builder()
            .body("0123456789")
            .throttleBody(2, 100, TimeUnit.MILLISECONDS)
            .onResponseBody(CloseSocket())
            .build(),
        )
        client =
          client
            .newBuilder()
            .protocols(listOf<Protocol>(Protocol.HTTP_1_1))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            // Test that writeSetupWireFormat returns 0
            byte[] dst = new byte[100];
            int result = response.writeSetupWireFormat(dst, 10);
            assertEquals(0, result);
        }
    
        @Test
        void testWriteParametersWireFormat() {
            // Test that writeParametersWireFormat returns 0
            byte[] dst = new byte[100];
            int result = response.writeParametersWireFormat(dst, 20);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top