Search Options

Results per page
Sort
Preferred Languages
Advance

Results 851 - 860 of 3,016 for jest (0.07 sec)

  1. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

          """
          |data:test
          |
          |data: test
          |
          |
          """.trimMargin(),
        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "test"))
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "test"))
      }
    
      @Test
      fun leadingWhitespace() {
        consumeEvents(
          """
          |data:  test
          |
          |
          """.trimMargin(),
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

    import org.bouncycastle.asn1.DEROctetString;
    import org.bouncycastle.asn1.DERSequence;
    import org.bouncycastle.asn1.DERTaggedObject;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    
    import jcifs.pac.PACDecodingException;
    
    class KerberosApRequestTest {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

         * It should always return 0.
         */
        @Test
        void testWriteSetupWireFormat() {
            byte[] dst = new byte[10];
            // The method should not write anything and return 0
            assertEquals(0, response.writeSetupWireFormat(dst, 0), "writeSetupWireFormat should return 0.");
        }
    
        /**
         * Test for the writeParametersWireFormat method.
         * It should always return 0.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/StringUtilTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.Arguments;
    import org.junit.jupiter.params.provider.MethodSource;
    import org.junit.jupiter.params.provider.ValueSource;
    
    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

    public class CustomSizeTest extends UnitFessTestCase {
    
        // Test field with CustomSize annotation for testing
        @CustomSize(minKey = "test.min", maxKey = "test.max")
        private String testField;
    
        // Test field with only minKey
        @CustomSize(minKey = "test.min.only")
        private String testFieldMinOnly;
    
        // Test field with only maxKey
        @CustomSize(maxKey = "test.max.only")
        private String testFieldMaxOnly;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        //    @Test
        //    public void testToDate_LongStyle() throws Exception {
        //        final Date date = toDate("2010/09/07 11:49:10 JST", Locale.JAPAN);
        //        final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        //        df.setTimeZone(TimeZone.getTimeZone("JST"));
        //        assertThat(df.format(date), is("2010/09/07 11:49:10"));
        //    }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

    import okhttp3.tls.internal.TlsUtil.localhost
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class MockResponseSniTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      @RegisterExtension
      val platform = PlatformRule()
    
      @StartStop
      private val server = MockWebServer()
    
      @Test
      fun clientSendsServerNameAndServerReceivesIt() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

    /* Test class for jcifs.smb1.dcerpc.ndr.NdrShort */
    package jcifs.smb1.dcerpc.ndr;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.spy;
    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. cmd/object-api-utils_test.go

    			snappyStartOffset: 0,
    		},
    	}
    	for i, test := range testCases {
    		startOffset, snappyStartOffset, firstPart, _, _ := getCompressedOffsets(test.objInfo, test.offset, nil)
    		if startOffset != test.startOffset {
    			t.Errorf("Test %d - expected startOffset %d but received %d",
    				i, test.startOffset, startOffset)
    		}
    		if snappyStartOffset != test.snappyStartOffset {
    			t.Errorf("Test %d - expected snappyOffset %d but received %d",
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

        /**
         * Edge case – constructor using the winerr flag.
         */
        @Test
        @DisplayName("Winerr code 123 – message equals 123")
        void testConstructorWithWinerr() {
            SmbException ex = new SmbException(123, true);
            assertEquals("123", ex.getMessage());
            assertEquals(123, ex.getNtStatus());
        }
    
        /**
         * Parameterised test covering many error codes.
         * - Error code 0 returns 0 (NT_STATUS_SUCCESS)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top