Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for testRoundtrip (0.5 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/CertificatesTest.kt

     * limitations under the License.
     */
    package okhttp3.tls
    
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Test
    
    class CertificatesTest {
      @Test fun testRoundtrip() {
        val certificateString =
          """
          -----BEGIN CERTIFICATE-----
          MIIBmjCCAQOgAwIBAgIBATANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDEwhjYXNo
          LmFwcDAeFw03MDAxMDEwMDAwMDBaFw03MDAxMDEwMDAwMDFaMBMxETAPBgNVBAMT
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/CertificatesJavaTest.java

    import java.security.cert.X509Certificate;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    public class CertificatesJavaTest {
      @Test
      public void testRoundtrip() {
        String certificateString = ""
          + "-----BEGIN CERTIFICATE-----\n"
          + "MIIBmjCCAQOgAwIBAgIBATANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDEwhjYXNo\n"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Nov 20 02:23:18 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

      }
    
      private val bytesOut = Buffer()
      private val hpackWriter = Hpack.Writer(out = bytesOut)
    
      @ParameterizedTest
      @ArgumentsSource(StoriesTestProvider::class)
      fun testRoundTrip(story: Story) {
        assumeFalse(
          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
    
        val newCases = mutableListOf<Case>()
        for (case in story.cases) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          String string = HashCode.fromBytes(expected.bytes).toString();
          assertEquals(expected.toString, string);
          assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

            assertEquals(2, target.getVersioning().getSnapshot().getBuildNumber());
        }
        /*-- END test "groupId/artifactId/version" metadata ---*/
    
        @Test
        void testRoundtrip() throws Exception {
            Metadata source = new Metadata(org.apache.maven.api.metadata.Metadata.newBuilder(
                            createMetadataFromArtifact(artifact).getDelegate(), true)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          String string = HashCode.fromBytes(expected.bytes).toString();
          assertEquals(expected.toString, string);
          assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. src/archive/tar/tar_test.go

    	}
    	if g, e := h.Linkname, target; g != e {
    		t.Errorf("Linkname = %q; want %q", g, e)
    	}
    	if g, e := h.Typeflag, byte(TypeSymlink); g != e {
    		t.Errorf("Typeflag = %v; want %v", g, e)
    	}
    }
    
    func TestRoundTrip(t *testing.T) {
    	data := []byte("some file contents")
    
    	var b bytes.Buffer
    	tw := NewWriter(&b)
    	hdr := &Header{
    		Name:       "file.txt",
    		Uid:        1 << 21, // Too big for 8 octal digits
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top