Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 773 for When (0.18 sec)

  1. src/test/java/jcifs/internal/SMBSigningDigestTest.java

    import static org.mockito.ArgumentMatchers.anyInt;
    import static org.mockito.ArgumentMatchers.eq;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            }
    
            @Test
            @DisplayName("Should return tree ID")
            void testGetTid() {
                // Given
                when(mockResponse.getTid()).thenReturn(12345);
    
                // When
                int tid = mockResponse.getTid();
    
                // Then
                assertEquals(12345, tid, "Should return the configured tree ID");
                verify(mockResponse).getTid();
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

        /** The key of the configuration. e.g. Referrer-Policy:strict-origin-when-cross-origin */
        String API_JSON_RESPONSE_HEADERS = "api.json.response.headers";
    
        /** The key of the configuration. e.g. false */
        String API_JSON_RESPONSE_EXCEPTION_INCLUDED = "api.json.response.exception.included";
    
        /** The key of the configuration. e.g. Referrer-Policy:strict-origin-when-cross-origin */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 525.7K bytes
    - Viewed (2)
  4. src/test/java/jcifs/CIFSExceptionTest.java

            // When
            CIFSException exception = new CIFSException(cause);
    
            // Then
            assertNotNull(exception);
            assertEquals(cause, exception.getCause());
            assertTrue(exception.getMessage().contains("Root cause"));
        }
    
        @Test
        @DisplayName("Should handle null message")
        void testNullMessage() {
            // When/Then
            assertDoesNotThrow(() -> {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

        /**
         * Ensure encode throws NPE when passed a null buffer.
         */
        @Test
        @DisplayName("Encode with null buffer throws NullPointerException")
        public void testEncodeNullBuffer() throws NdrException {
            NdrHyper hyper = new NdrHyper(5L);
            assertThrows(NullPointerException.class, () -> hyper.encode(null));
        }
    
        /**
         * Ensure decode throws NPE when passed a null buffer.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java

    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.security.Principal;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.junit.jupiter.params.ParameterizedTest;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                message.opnumValue = 5;
    
                when(mockBuffer.getIndex()).thenReturn(0).thenReturn(16).thenReturn(20).thenReturn(24);
                lenient().doNothing().when(mockBuffer).advance(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_short(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_small(anyInt());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacLogonInfoTest.java

            when(logonInfo.getHomeDirectory()).thenReturn("\\\\server\\\\home");
            when(logonInfo.getHomeDrive()).thenReturn("H:");
            when(logonInfo.getLogonScript()).thenReturn("logon.bat");
            when(logonInfo.getUserAccountControl()).thenReturn(0x200);
            when(logonInfo.getUserFlags()).thenReturn(0);
            when(logonInfo.getUserSid()).thenReturn(userSid);
            when(logonInfo.getGroupSid()).thenReturn(new SID("S-1-5-21-1-2-3-513"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        SmbTreeHandleImpl tree;
    
        private void stubValidTree(long treeId, boolean connected, boolean smb2) {
            lenient().when(tree.acquire()).thenReturn(tree);
            lenient().when(tree.getTreeId()).thenReturn(treeId);
            lenient().when(tree.isConnected()).thenReturn(connected);
            lenient().when(tree.isSMB2()).thenReturn(smb2);
        }
    
        @Test
        @DisplayName("Constructor with null tree throws NPE (byte[] fid variant)")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            when(ctx.getConfig()).thenReturn(config);
            when(config.getCapabilities()).thenReturn(0);
            when(config.getFlags2()).thenReturn(0);
            when(config.getMaxMpxCount()).thenReturn(1);
            when(config.getSendBufferSize()).thenReturn(4096);
            when(config.getReceiveBufferSize()).thenReturn(4096);
            when(config.getTransactionBufferSize()).thenReturn(4096);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top