Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 3,060 for Shouldn (0.03 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            // Should still not be expired
            assertFalse(auth.isExpired());
    
            // Wait for original TTL to pass
            Thread.sleep(600);
    
            // Should still not be expired because we reset
            assertFalse(auth.isExpired());
    
            // Wait for the full TTL since reset
            Thread.sleep(500);
    
            // Now it should be expired
            assertTrue(auth.isExpired());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
                int size = request.size();
                assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
            }
    
            @ParameterizedTest
            @DisplayName("Should calculate size for various lock counts")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            assertNotNull(request);
        }
    
        @Test
        @DisplayName("Constructor should handle null filename")
        void testConstructorWithNullFilename() {
            // When & Then
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, null));
        }
    
        @Test
        @DisplayName("Constructor should handle empty filename")
        void testConstructorWithEmptyFilename() {
            // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            assertTrue(session.isInUse(), "Session should be in use initially");
            try (SmbSessionImpl autoSession = session) {
                // Session is already in use due to transport acquisition
                assertTrue(autoSession.isInUse(), "Session should be in use");
            }
    
            // Session should be automatically released
            assertFalse(session.isInUse(), "Session should be released after try-with-resources");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. cmd/signature-v4_test.go

    	accessKey := globalActiveCred.AccessKey
    
    	testCases := []struct {
    		form     http.Header
    		expected APIErrorCode
    	}{
    		// (0) It should fail if 'X-Amz-Credential' is missing.
    		{
    			form:     http.Header{},
    			expected: ErrCredMalformed,
    		},
    		// (1) It should fail if the access key is incorrect.
    		{
    			form: http.Header{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            String sessionId = "test-session-001";
            urlFilter.init(sessionId);
            // Initialization should complete without errors
            assertNotNull(urlFilter);
        }
    
        /**
         * Test initialization with null session ID
         */
        public void test_init_withNullSessionId() {
            urlFilter.init(null);
            // Should handle null session ID gracefully
            assertNotNull(urlFilter);
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbResourceTest.java

                assertNotNull(clazz.getMethod("createNewFile"), "Should have createNewFile method");
                assertNotNull(clazz.getMethod("mkdir"), "Should have mkdir method");
                assertNotNull(clazz.getMethod("mkdirs"), "Should have mkdirs method");
                assertNotNull(clazz.getMethod("delete"), "Should have delete method");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java

            NdrSmall ndrSmall = new NdrSmall(123);
            assertEquals(123, ndrSmall.value, "Value should be initialized correctly for valid input.");
        }
    
        @Test
        void testConstructor_maxValue() {
            // Test with the maximum byte value
            NdrSmall ndrSmall = new NdrSmall(255);
            assertEquals(255, ndrSmall.value, "Value should be initialized correctly for max byte value.");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                // Should throw exception for unsupported version
                assertThrows(Exception.class, () -> {
                    buffer.decode(testBuffer, 0, testBuffer.length);
                });
            }
        }
    
        @Nested
        @DisplayName("ToString Tests")
        class ToStringTests {
    
            @Test
            @DisplayName("Should return string representation with no referrals")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                    if (value == 4) {
                        // Should succeed
                        assertDoesNotThrow(() -> {
                            int result = response.readBytesWireFormat(buffer, 0);
                            assertEquals(4, result);
                        });
                    } else {
                        // Should throw exception
                        SMBProtocolDecodingException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top