Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for assertPing (0.39 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        data.write("8a00".decodeHex()) // Pong
        data.write("80026c6f".decodeHex()) // lo
        clientReader.processNextFrame()
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertTextMessage("Hello")
      }
    
      @Test fun clientTwoFrameCompressedHelloWithPongs() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

      }
    
      fun assertBinaryMessage(payload: ByteString?) {
        assertThat(nextEvent()).isEqualTo(Message(payload))
      }
    
      fun assertPing(payload: ByteString) {
        assertThat(nextEvent()).isEqualTo(Ping(payload))
      }
    
      fun assertPong(payload: ByteString) {
        assertThat(nextEvent()).isEqualTo(Pong(payload))
      }
    
      fun assertClosing(
        code: Int,
        reason: String,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. cmd/object-api-multipart_test.go

    			}
    		}
    		// Passes as expected, but asserting the results.
    		if actualErr == nil && testCase.shouldPass {
    			expectedResult := testCase.expectedResult
    			// Asserting the MaxUploads.
    			if actualResult.MaxUploads != expectedResult.MaxUploads {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    			},
    		},
    		// ListObjectsResult-5.
    		// Used for Asserting prefixes.
    		// Used for test case with prefix "new", (testCase 27-29).
    		5: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "newPrefix0"},
    				{Name: "newPrefix1"},
    				{Name: "newzen/zen/recurse/again/again/again/pics"},
    			},
    		},
    		// ListObjectsResult-6.
    		// Used for Asserting prefixes.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/object-api-putobject_test.go

    			continue
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    		if actualErr == nil {
    			// Asserting whether the md5 output is correct.
    			if expectedMD5, ok := testCase.inputMeta["etag"]; ok && expectedMD5 != objInfo.ETag {
    				t.Errorf("Test %d: %s: Calculated Md5 different from the actual one %s.", i, instanceType, objInfo.ETag)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A series of tests that support asserting that collections cannot be modified, either through
     * direct or indirect means.
     *
     * @author Robert Konigsberg
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class UnmodifiableCollectionTests {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A series of tests that support asserting that collections cannot be modified, either through
     * direct or indirect means.
     *
     * @author Robert Konigsberg
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class UnmodifiableCollectionTests {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  8. cmd/bucket-policy-handlers_test.go

    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    		},
    	}
    
    	// Iterating over the test cases, calling the function under test and asserting the response.
    	for i, testCase := range testCases {
    		// obtain the put bucket policy request body.
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  9. cmd/server_test.go

    		0, nil, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	// Asserting the error response with the expected values.
    	verifyError(c, response, "NoSuchKey", "The specified key does not exist.", http.StatusNotFound)
    
    	objectName = "testObject1"
    	// content for the object to be uploaded.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

     * the same structure:
     *
     *  * prepare a set of plans, each with a predictable connect delay
     *  * attempt to find a connection
     *  * step through time, asserting that the expected side effects are performed.
     */
    internal class FastFallbackExchangeFinderTest {
      private val taskFaker = TaskFaker()
      private val taskRunner = taskFaker.taskRunner
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top