Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 777 for When (0.73 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

    import static org.mockito.ArgumentMatchers.anyInt;
    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 java.nio.charset.StandardCharsets;
    import java.util.Arrays;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

        @Test
        void testInitSecContext_state2_type3Message() throws Exception {
            // Test the second step (processing Type 2 and creating Type 3 message)
            when(mockAuth.getDomain()).thenReturn(domain);
            when(mockAuth.getUsername()).thenReturn(username);
            when(mockAuth.getPassword()).thenReturn(password);
            NtlmContext context = new NtlmContext(mockAuth, true);
    
            // State 1: Generate Type 1 message
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/exception/GsaConfigException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.exception;
    
    /**
     * Exception thrown when GSA (Google Search Appliance) configuration errors occur.
     * This exception extends FessSystemException and is used to handle specific
     * configuration-related issues when working with GSA integration.
     *
     */
    public class GsaConfigException extends FessSystemException {
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

                rpc.retval = 0;
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, "server", 123);
    
            // Now, mock the behavior for MsrpcLsarClose to throw IOException
            doThrow(new IOException("Close network error")).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class));
    
            // Act & Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

    import static org.mockito.Mockito.doReturn;
    import static org.mockito.Mockito.spy;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.util.HashMap;
    
    import javax.security.auth.Subject;
    import javax.security.auth.callback.Callback;
    import javax.security.auth.callback.NameCallback;
    import javax.security.auth.callback.PasswordCallback;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/DfsTest.java

            lenient().when(UniAddress.getByName("domain.com", true)).thenReturn(uniAddress);
            lenient().when(SmbTransport.getSmbTransport(uniAddress, 0)).thenReturn(smbTransport);
    
            DfsReferral referral = new DfsReferral();
            referral.server = "dc1.domain.com";
            referral.next = referral;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbFileHandle.java

         *
         * @throws CIFSException if an error occurs while releasing the handle
         */
        void release() throws CIFSException;
    
        /**
         * Returns the initial size of the file when it was opened
         *
         * @return the file size when it was opened
         */
        long getInitialSize();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

        @BeforeEach
        void setUp() {
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.isUseMultiChannel()).thenReturn(true);
            when(mockConfig.getMaxChannels()).thenReturn(4);
            when(mockConfig.getChannelBindingPolicy()).thenReturn(1); // preferred
            when(mockConfig.getLoadBalancingStrategy()).thenReturn("adaptive");
            when(mockConfig.getChannelHealthCheckInterval()).thenReturn(10);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/UniAddressTest.java

            // Arrange
            NbtAddress nbtMock = mock(NbtAddress.class);
            when(nbtMock.nextCalledName()).thenReturn("NEXT");
            UniAddress ua = new UniAddress(nbtMock);
            // Act
            String next = ua.nextCalledName();
            // Assert
            assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            }
    
            @Test
            @DisplayName("Should return true when signed flag is not set")
            void testVerifyNoSignedFlag() {
                // Don't set the signed flag
                SMBUtil.writeInt4(0x00000000, data, 16);
    
                boolean result = digest.verify(data, 0, data.length, 0, msg);
    
                assertTrue(result, "Should return true when signed flag is not set");
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
Back to top