Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 160 for simili (2.74 sec)

  1. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            String url = "smb://server/IPC$/pipeName"; // Corrected URL for named pipe
            int pipeType = 1;
            SmbPipeResource mockSmbPipeResource = mock(SmbNamedPipe.class);
    
            // Similar to testGetSmbResource, we cannot directly mock `new SmbNamedPipe()`.
            // We verify that no exception is thrown for a valid URL and that it attempts to create an SmbNamedPipe.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/WinErrorTest.java

            for (int c : WinError.WINERR_CODES) {
                assertTrue(c >= 0, "Code should be non-negative: " + c);
                assertTrue(seen.add(c), "Duplicate code detected: " + c);
            }
        }
    
        // Simple collaborator to demonstrate interaction verification with Mockito
        interface Handler {
            void handle(int code, String message);
        }
    
        @Mock
        Handler handler;
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

            String lang = "en";
    
            List<AnalyzeToken> tokens = analyzer.analyze(text, field, lang);
    
            assertNotNull(tokens);
            assertEquals(8, tokens.size()); // "I'm" is split into "I" and "m" by our simple tokenizer
            assertEquals("Hello", tokens.get(0).getTerm());
            assertEquals("world", tokens.get(1).getTerm());
            assertEquals("How", tokens.get(2).getTerm());
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Assert
            verify(mockConnection).disconnect();
            // Connection should be closed after disconnect
        }
    
        /**
         * Test simple getter methods that should trigger the handshake.
         * We mock a simple 200 OK response to test the handshake is called.
         * @throws IOException
         */
        @Test
        void testGettersTriggerHandshake() throws IOException {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

     * This test class verifies the basic functionality of DirFileEntryAdapterIterator.
     * Due to the iterator's constructor calling advance() immediately, which requires
     * the adapt() method to be functional, we test the behavior using simple mock
     * scenarios that don't require complex filter setups.
     */
    @ExtendWith(MockitoExtension.class)
    class DirFileEntryAdapterIteratorTest {
    
        @Mock
        private SmbResource mockParent;
    
        @Mock
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                }
    
                final Smb2QueryDirectoryResponse qr = query.getResponse();
    
                if (qr != null && qr.isReceived() && qr.getStatus() == NtStatus.NT_STATUS_NO_SUCH_FILE) {
                    // this simply indicates an empty listing
                    doClose();
                    return null;
                }
    
                throw e;
            }
            this.fileId = createResp.getFileId();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

            assertEquals("jcifs.smb", clazz.getPackageName(), "Package must match source");
            assertEquals("SessionSetupHandler", clazz.getSimpleName(), "Simple name must match source");
        }
    
        @Test
        @DisplayName("Interface declares no methods or fields")
        void testNoMembers() {
            // Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/CredentialsInternalTest.java

    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.Credentials;
    
    @ExtendWith(MockitoExtension.class)
    class CredentialsInternalTest {
    
        @Mock
        CIFSContext mockContext;
    
        /**
         * Simple in-test implementation of CredentialsInternal to exercise the API surface.
         * It validates inputs, records calls, and delegates some behavior to collaborators
         * so we can verify interactions.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/LmhostsTest.java

            }
    
            when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath());
    
            // Use getByName to trigger populate
            // Both hosts should be added in this simple case
            assertNotNull(lmhosts.getByName("HOST1", mockContext));
            assertNotNull(lmhosts.getByName("HOST2", mockContext));
        }
    
        @Test
        void testPopulateWithInvalidIPFormat() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/searchlist/ListForm.java

        public Map<String, String[]> fields = new HashMap<>();
    
        /** The conditions. */
        public Map<String, String[]> as = new HashMap<>();
    
        /** The extra queries. */
        public String[] ex_q;
    
        /** The similar document hash. */
        public String sdh;
    
        @Override
        public String getQuery() {
            return q;
        }
    
        @Override
        public String[] getExtraQueries() {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top