Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 388 for 100 (0.03 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]", "?");
        }
    
        /**
    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/SIDTest.java

         */
        @Test
        void testByteArrayConstructorTooManySubAuthorities() {
            byte[] badSid = new byte[10];
            badSid[1] = 101; // sub_authority_count > 100
            assertThrows(RuntimeCIFSException.class, () -> new SID(badSid, 0));
        }
    
        /**
         * Test constructor that combines a domain SID and an RID.
         *
         * @throws SmbException if the SID string is invalid
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

            assertFalse(result);
        }
    
        /**
         * Test thread safety of enum
         */
        public void test_threadSafety() throws Exception {
            final int threadCount = 100;
            final int iterationsPerThread = 1000;
            final Set<Exception> exceptions = new HashSet<>();
    
            Thread[] threads = new Thread[threadCount];
            for (int i = 0; i < threadCount; i++) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            Name mockRecordName = new Name(mockConfig);
            recordNameField.set(nameQueryResponse, mockRecordName);
    
            // Prepare a byte array with valid NetBIOS name format
            byte[] src = new byte[100];
            int srcIndex = 0;
    
            // Start with compressed name pointer (0xC0) to use questionName
            src[srcIndex] = (byte) 0xC0;
            src[srcIndex + 1] = 0x0C; // Pointer offset
            // recordType (2 bytes)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java

            assertFalse(robotsTxt.allows("/test/", "TestBot"));
        }
    
        public void testParse_negativeCrawlDelay() {
            String robotsTxtContent = "User-agent: TestBot\n" + "Crawl-delay: -100\n" + "Disallow: /test/\n";
    
            RobotsTxt robotsTxt;
            final InputStream in = new java.io.ByteArrayInputStream(robotsTxtContent.getBytes());
            try {
                robotsTxt = robotsTxtHelper.parse(in);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SIDTest.java

            @Test
            @DisplayName("Binary constructor with invalid sub_authority_count throws RuntimeCIFSException")
            void testBinaryConstructorInvalidCount() {
                // Arrange: second byte is sub_authority_count > 100
                byte[] bytes = new byte[1 + 1 + 6];
                bytes[0] = 1; // revision
                bytes[1] = (byte) 101; // invalid count
    
                // Act + Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            // Test when sd_size doesn't match actual array size
            srvsvc.ShareInfo502 info502 = new srvsvc.ShareInfo502();
            info502.security_descriptor = new byte[] { 1, 2, 3, 4 };
            info502.sd_size = 100; // Mismatched size - SecurityDescriptor will try to read beyond array bounds
    
            // Replace info field
            Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

        @Test
        @DisplayName("Test size method")
        void testSize() {
            request = new Smb2SetInfoRequest(mockConfig);
            Encodable mockInfo = mock(Encodable.class);
            when(mockInfo.size()).thenReturn(100);
            request.setInfo(mockInfo);
    
            int size = request.size();
    
            // Expected size calculation: size8(SMB2_HEADER_LENGTH + 32 + info.size())
            // size8 rounds up to nearest multiple of 8
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/curl/CurlRequest.java

                    if (url.indexOf('?') == -1) {
                        sp = '?';
                    } else {
                        sp = '&';
                    }
                    final StringBuilder urlBuf = new StringBuilder(100);
                    for (final String param : paramList) {
                        urlBuf.append(sp).append(param);
                        if (sp == '?') {
                            sp = '&';
                        }
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        }
    
        @Test
        @DisplayName("Should test writeBytesWireFormat directly")
        void testWriteBytesWireFormatDirect() {
            // Given
            byte[] buffer = new byte[512];
            int offset = 100;
    
            // First encode to set headerStart
            byte[] tempBuffer = new byte[512];
            request.encode(tempBuffer, 50);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top