Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 773 for When (2.79 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                Info mockInfo = mock(Info.class);
    
                // Set up mock behavior
                when(mockInfo.getAttributes()).thenReturn(0x20);
                when(mockInfo.getSize()).thenReturn(1024L);
                when(mockInfo.getCreateTime()).thenReturn(1000000L);
                when(mockInfo.getLastWriteTime()).thenReturn(2000000L);
    
                // Use the mock
                response.info = mockInfo;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
    
            when(mockFile2.getName()).thenReturn("subfolder");
            when(mockFile2.length()).thenReturn(0L);
            when(mockFile2.lastModified()).thenReturn(System.currentTimeMillis() - 1800000);
            when(mockFile2.isDirectory()).thenReturn(true);
            when(mockFile2.getAttributes()).thenReturn(0x10); // FILE_ATTRIBUTE_DIRECTORY
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

        void testRenewCredentials_NtlmAuthenticatorReturnsNull() {
            try (MockedStatic<NtlmAuthenticator> mockedNtlmAuthenticator = mockStatic(NtlmAuthenticator.class)) {
                mockedNtlmAuthenticator.when(NtlmAuthenticator::getDefault).thenReturn(mockNtlmAuthenticator);
                mockedNtlmAuthenticator.when(
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for {@link SmbFileFilter}. The filter interface is small; the
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

            jcifs.SID mockSid1 = mock(jcifs.SID.class);
            jcifs.SID mockSid2 = mock(jcifs.SID.class);
            jcifs.SID mockSid3 = mock(jcifs.SID.class);
            when(mockSid1.unwrap(sid_t.class)).thenReturn(mockSidT);
            when(mockSid2.unwrap(sid_t.class)).thenReturn(mockSidT);
            when(mockSid3.unwrap(sid_t.class)).thenReturn(mockSidT);
            testSids = new jcifs.SID[] { mockSid1, mockSid2, mockSid3 };
    
            // Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            // Current implementation throws NullPointerException when string is null
            assertThrows(NullPointerException.class, () -> {
                pacString.check(testString);
            }, "A NullPointerException is thrown when checking a null string.");
        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a non-empty string when the pointer is zero.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/joblog/EditForm.java

         */
        public String scriptResult;
    
        /**
         * The timestamp when the job started execution.
         * This is a required field indicating when the job began.
         */
        @Required
        public String startTime;
    
        /**
         * The timestamp when the job completed execution.
         * This field indicates when the job finished, if it has completed.
         */
        public String endTime;
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/NbtAddressTest.java

            NetbiosAddress mockNetbiosAddress20 = mock(NetbiosAddress.class);
            when(mockNetbiosAddress20.getNameType()).thenReturn(0x20);
            when(mockNetbiosAddress20.getHostName()).thenReturn("ACTUAL_SERVER_NAME");
    
            NetbiosAddress[] nodeStatusResponse = { mock(NetbiosAddress.class), mockNetbiosAddress20 };
            when(mockNameServiceClient.getNodeStatus(nbtAddress)).thenReturn(nodeStatusResponse);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/transport/ResponseTest.java

            // Simulate granted credits
            when(mockResponse.getGrantedCredits()).thenReturn(100);
            assertEquals(100, mockResponse.getGrantedCredits());
    
            // Verify the method was called
            verify(mockResponse, times(1)).getGrantedCredits();
        }
    
        @Test
        void testGetErrorCode() {
            // Simulate error code
            when(mockResponse.getErrorCode()).thenReturn(-1);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

        void createContext_forceFallback_triggersNtlmAndFailsOnNonNtlmToken() throws CIFSException {
            when(tc.getConfig()).thenReturn(config);
            when(config.isAllowNTLMFallback()).thenReturn(true);
            when(config.isUseRawNTLM()).thenReturn(false);
    
            // Enable NTLM fallback by providing NTLM creds in constructor
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top