Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 277 for samme (0.86 sec)

  1. src/test/java/jcifs/http/NtlmHttpServletRequestTest.java

        @Test
        void testGetUserPrincipal() {
            // Act: Call the method under test
            Principal actualPrincipal = ntlmRequest.getUserPrincipal();
    
            // Assert: Verify that the returned principal is the same as the one provided in the constructor
            assertSame(mockPrincipal, actualPrincipal, "getUserPrincipal should return the principal object.");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/WinErrorTest.java

            @Test
            void arraysHaveSameLength() {
                assertEquals(WinError.WINERR_CODES.length, WinError.WINERR_MESSAGES.length,
                        "WINERR_CODES and WINERR_MESSAGES should have the same length");
            }
    
            @Test
            void messagesAlignWithCodes() {
                for (int i = 0; i < WinError.WINERR_CODES.length; i++) {
                    int code = WinError.WINERR_CODES[i];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/AddressTest.java

            when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);
    
            // When & Then
            Address unwrapped = mockAddress.unwrap(Address.class);
            assertSame(mockAddress, unwrapped, "Should return same instance for supported type");
        }
    
        @Test
        @DisplayName("getHostName should return valid hostname or address")
        void testGetHostNameContract() {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbResource.java

         * bitset by bitwise ORing the <code>ATTR_*</code> constants. Setting the
         * value returned by <code>getAttributes</code> will result in both files
         * having the same attributes.
         *
         * @param attrs
         *            attribute flags
         *
         * @throws CIFSException if an error occurs modifying the resource
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

            // Whitespace
            testRule.setRuleId("  rule with spaces  ");
            assertEquals("  rule with spaces  ", testRule.getRuleId());
        }
    
        /**
         * Test multiple registrations of same rule
         */
        public void test_multipleRegistrations() {
            testRule.setRuleId("multiRegRule");
    
            // Register multiple times
            testRule.register(0);
            testRule.register(0);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  6. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

                fail("Should handle null targetIndices: " + e.getMessage());
            }
        }
    
        /**
         * Test: prepareStreamSearch delegates to prepareSearch
         * Verifies that both methods return the same result
         */
        @Test
        public void testPrepareStreamSearchDelegatesToPrepareSearch() {
            final SearchRequestBuilder mockBuilder = mock(SearchRequestBuilder.class);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java

            NtlmHttpServletRequest request = new NtlmHttpServletRequest(mockRequest, mockPrincipal);
            assertEquals("NTLM", request.getAuthType());
            // Verify it returns the same value on multiple calls
            assertEquals("NTLM", request.getAuthType());
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            int referent1 = Encdec.dec_uint32le(buffer, 0);
            assertTrue(referent1 > 0); // Should be a positive referent ID
    
            ndrBuffer.reset();
            ndrBuffer.enc_ndr_referent(obj1, 2); // Same object, should get same referent
            assertEquals(4, ndrBuffer.getIndex());
            assertEquals(referent1, Encdec.dec_uint32le(buffer, 0));
    
            ndrBuffer.reset();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            assertNotNull(handle, "Handle must not be null");
            assertSame(pipe, handle.getPipe(), "Handle should reference originating pipe");
            assertSame(handle, handle.unwrap(SmbPipeHandle.class), "unwrap should return same instance for interface type");
        }
    
        @ParameterizedTest
        @DisplayName("getPipeType echoes constructor input (edge values)")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

    import org.junit.jupiter.params.provider.MethodSource;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for {@link SmbComClose}.
     * <p>
     * All tests are written in the same package as the class under test so
     * that package-private fields and constants can be accessed directly.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbComCloseTest {
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top