Search Options

Results per page
Sort
Preferred Languages
Advance

Results 561 - 570 of 3,275 for Test (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/AddressTest.kt

    import okhttp3.internal.http.RecordingProxySelector
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    class AddressTest {
      private val factory =
        TestValueFactory().apply {
          uriHost = "example.com"
          uriPort = 80
        }
    
      @AfterEach fun tearDown() {
        factory.close()
      }
    
      @Test fun equalsAndHashcode() {
        val a = factory.newAddress()
        val b = factory.newAddress()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/text/TokenizerTest.java

     */
    package org.codelibs.core.text;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author higa
     *
     */
    public class TokenizerTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testEOF() throws Exception {
            final Tokenizer tokenizer = new Tokenizer("");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertEquals("test\\?query", escaped2);
    
            // Test escaping both
            String query3 = "test*query?end";
            String escaped3 = SuggestUtil.escapeWildcardQuery(query3);
            assertEquals("test\\*query\\?end", escaped3);
    
            // Test with no wildcards
            String query4 = "test query";
            String escaped4 = SuggestUtil.escapeWildcardQuery(query4);
            assertEquals("test query", escaped4);
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            String input = "test";
            InputStream is = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8));
    
            InputStreamThread thread = new InputStreamThread(is, StandardCharsets.UTF_8, 0, null);
            thread.start();
            thread.join(1000);
    
            assertFalse(thread.contains("test"));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

        private ScriptEngine scriptEngine;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            // Create a test implementation of ScriptEngine
            scriptEngine = new TestScriptEngine();
        }
    
        // Test evaluate method with valid template and parameters
        public void test_evaluate_withValidTemplateAndParams() {
            String template = "Hello ${name}";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

        private sid_t mockSidT;
    
        private MsrpcLookupSids lookupSids;
        private jcifs.SID[] testSids;
    
        @BeforeEach
        void setUp() {
            // Setup is minimal - mocks are configured per test as needed
        }
    
        @Test
        void constructor_shouldInitializeWithValidParameters() {
            // Arrange
            jcifs.SID mockSid1 = mock(jcifs.SID.class);
            jcifs.SID mockSid2 = mock(jcifs.SID.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            assertTrue(result.contains("pipeName=null"));
        }
    
        @ParameterizedTest
        @NullAndEmptySource
        @ValueSource(strings = { "\\PIPE\\test", "testpipe", "\\\\server\\pipe\\test", " ", "pipe with spaces" })
        @DisplayName("toString should handle various pipe names")
        void testToStringWithVariousPipeNames(String pipeName) {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            assertEquals(".*\\Qwww.domain.com/test\\E.*", systemHelper.normalizeConfigPath("contains:www.domain.com/test"));
            assertEquals(".*\\Q/test/\\E.*", systemHelper.normalizeConfigPath("contains:/test/"));
            assertEquals("www.domain.com/test", systemHelper.normalizeConfigPath("www.domain.com/test"));
            assertEquals(".*domain.com/.*", systemHelper.normalizeConfigPath(".*domain.com/.*"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/TestLocking.java

            } catch (final Exception e) {
                logger.error("Error in test execution", e);
            } finally {
                numComplete++;
            }
        }
    
        /**
         * Main method to run the locking test.
         *
         * @param args command line arguments: [-t numThreads] [-i numIter] [-d delay] url
         * @throws Exception if an error occurs during test execution
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

    import static org.mockito.Mockito.verifyNoInteractions;
    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    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;
    import org.junit.jupiter.params.provider.CsvSource;
    import org.junit.jupiter.params.provider.NullAndEmptySource;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top