Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 722 for WHEN (0.56 sec)

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

            }
        }
    
        @BeforeEach
        void setUp() {
            lenient().when(fileEntry.getName()).thenReturn("test");
        }
    
        @Test
        @DisplayName("Iterator without filter - simple case")
        void iteratorWithoutFilter() {
            // Setup: constructor calls advance() once
            when(delegate.hasNext()).thenReturn(true, false);
            when(delegate.next()).thenReturn(fileEntry);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // Setup required for this test
            when(parent.getLocator()).thenReturn(locator);
            when(locator.getUNCPath()).thenReturn("\\\\server\\share\\dir\\");
            when(tree.getConfig()).thenReturn(config);
            when(config.getMaximumBufferSize()).thenReturn(65535);
            when(config.getListSize()).thenReturn(65535);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

     * at runtime. When a MIME type is not found in the mapping, a default value
     * is returned.
     */
    public class FileTypeHelper {
        /** Logger instance for this class */
        private static final Logger logger = LogManager.getLogger(FileTypeHelper.class);
    
        /** Default file type value returned when MIME type is not found in mappings */
        protected String defaultValue = "others";
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

            @Test
            @DisplayName("Should use special name when no expanded names")
            void testFromReferralWithSpecialName() {
                when(mockReferral.getTtl()).thenReturn(300);
                when(mockReferral.getRFlags()).thenReturn(Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL);
                when(mockReferral.getExpandedNames()).thenReturn(new String[0]);
                when(mockReferral.getSpecialName()).thenReturn("\\SPECIAL");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            // Test with smaller maximum buffer size
            when(mockConfig.getMaximumBufferSize()).thenReturn(8192);
            when(mockConfig.getListSize()).thenReturn(16384);
    
            request = new Smb2QueryDirectoryRequest(mockConfig);
            assertNotNull(request);
    
            // Test with smaller list size
            when(mockConfig.getMaximumBufferSize()).thenReturn(16384);
            when(mockConfig.getListSize()).thenReturn(8192);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/HandlerTest.java

            assertNotNull(connection, "Connection should not be null even when jcifs is in handler path.");
            assertTrue(connection instanceof NtlmHttpURLConnection, "Should use cached handler and wrap it.");
        }
    
        @Test
        void testOpenConnection_NullSystemProperty_UsesDefaultHandlers() throws Exception {
            // This test verifies that when the system property is null, the handler
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            when(mockHandle.getFileId()).thenReturn(new byte[16]);
    
            when(mockTree.getReceiveBufferSize()).thenReturn(0x10000);
            when(mockTree.getMaximumBufferSize()).thenReturn(0x10000);
            when(mockTree.getConfig()).thenReturn(mockConfig);
            when(mockTree.isConnected()).thenReturn(true);
            when(mockTree.getTreeId()).thenReturn(1L);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

            lenient().when(mockContext.getConfig()).thenReturn(mockConfig);
            lenient().when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockLocalHost);
            lenient().when(mockLocalHost.getHostName()).thenReturn("localhost");
            lenient().when(mockConfig.getDefaultDomain()).thenReturn("WORKGROUP");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

         */
        @Test
        void testConstructorInitializesFields() {
            // Given
            int sid = 0x2222;
            int resumeKey = 0x12345678;
            String filename = "dir\\pattern*";
    
            // When
            Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, filename);
    
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, next.command, "Command must be SMB_COM_TRANSACTION2");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top