Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 2,760 for 2test (1.29 sec)

  1. cmd/bucket-replication_test.go

    	},
    }
    
    func TestReplicationResync(t *testing.T) {
    	ctx := t.Context()
    	for i, test := range replicationConfigTests {
    		if sync := test.rcfg.Resync(ctx, test.info, test.dsc, test.tgtStatuses); sync.mustResync() != test.expectedSync {
    			t.Errorf("Test%d (%s): Resync  got %t , want %t", i+1, test.name, sync.mustResync(), test.expectedSync)
    		}
    	}
    }
    
    var (
    	start                   = UTCNow().AddDate(0, 0, -1)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt

    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.GzipSink
    import okio.buffer
    import org.junit.jupiter.api.Test
    
    class Http2Test {
      val frame = Buffer()
      val reader = Http2Reader(frame, false)
      val expectedStreamId = 15
    
      @Test fun unknownFrameTypeSkipped() {
        writeMedium(frame, 4) // has a 4-byte field
        frame.writeByte(99) // type 99
        frame.writeByte(FLAG_NONE)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

    import java.io.File;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    @Deprecated
    class DefaultPathTranslatorTest {
    
        @Test
        void testAlignToBasedirWhereBasedirExpressionIsTheCompleteValue() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

        }
    
        // Test with whitespace-only Origin header
        public void test_doFilter_whitespaceOriginHeader() throws IOException, ServletException {
            mockRequest.setHeader("Origin", "   ");
    
            corsFilter.doFilter(mockRequest, mockResponse, mockFilterChain);
    
            assertTrue(mockFilterChain.wasDoFilterCalled());
            assertFalse(corsHandlerFactory.wasGetCalled());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        }
    
        @Test
        @DisplayName("Test prepare method with valid request")
        void testPrepareWithValidRequest() {
            // Given
            doNothing().when(response).prepare(request);
    
            // When
            response.prepare(request);
    
            // Then
            verify(response).prepare(request);
        }
    
        @Test
        @DisplayName("Test prepare method with null request")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ResolverTypeTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link ResolverType} enum.
     * This class ensures that the enum constants are defined as expected.
     */
    class ResolverTypeTest {
    
        /**
         * Tests that all expected enum constants exist.
         */
        @Test
        void testEnumConstants() {
            // Verify that each enum constant exists and can be referenced
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertEquals(16, hash.length);
        }
    
        // Test unescape method
        @ParameterizedTest
        @CsvSource({ "'test%20string', 'test string'", "'test%25string', 'test%string'", "'test', 'test'", "'' , ''" })
        void testUnescape(String input, String expected) throws Exception {
            assertEquals(expected, NtlmPasswordAuthentication.unescape(input));
        }
    
        // Test getAnsiHash always returns 24 bytes regardless of lmCompatibility
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java

                return username;
            }
    
            public String getPassword() {
                return password;
            }
        }
    
        // Test getLoginCredential method
        public void test_getLoginCredential_returnsValidCredential() {
            // Setup test credential
            TestLoginCredential expectedCredential = new TestLoginCredential("testuser", "testpass");
            authenticator.setLoginCredential(expectedCredential);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            // Test interface method
            byte level = mockFileInfo.getFileInformationLevel();
            assertEquals(FileInformation.FILE_BASIC_INFO, level);
    
            // Verify interaction
            verify(mockFileInfo).getFileInformationLevel();
        }
    
        /**
         * Test FileInformation as Decodable
         */
        @Test
        @DisplayName("Test FileInformation decode method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top