Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 134 for expectGet (0.22 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * of throwable.
       */
      public void callAndAssertThrows(
          Class<? extends Throwable> expected, String methodName, Object... arguments)
          throws Exception {
        checkNotNull(expected);
        checkNotNull(methodName);
        checkNotNull(arguments);
        sendRequest(methodName, arguments);
        assertEquals(expected, getResponse(methodName).getThrowable().getClass());
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        try {
          final CountDownLatch latch = new CountDownLatch(1);
          RuntimeException expected =
              assertThrows(RuntimeException.class, () -> GcFinalization.await(latch));
          assertWrapsInterruptedException(expected);
        } finally {
          interruptenator.shutdown();
          Thread.interrupted();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    		t.Errorf("Expected: %v after Pop, but got: %v", highPriorityPodInfo.Pod.Name, p.Pod.Name)
    	}
    	if p, err := q.Pop(logger); err != nil || p.Pod != medPriorityPodInfo.Pod {
    		t.Errorf("Expected: %v after Pop, but got: %v", medPriorityPodInfo.Pod.Name, p.Pod.Name)
    	}
    	if p, err := q.Pop(logger); err != nil || p.Pod != unschedulablePodInfo.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  4. cmd/bucket-policy-handlers_test.go

    		if recV2.Code != testPolicy.expectedRespStatus {
    			t.Fatalf("Case %d: Expected the response status to be `%d`, but instead found `%d`", i+1, testPolicy.expectedRespStatus, recV2.Code)
    		}
    	}
    
    	// test cases with inputs and expected result for GetBucketPolicyHandler.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected output.
    		expectedBucketPolicy string
    		expectedRespStatus   int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt

        fun `initial restore is an exception`() {
            val state = InputTrackingState()
            try {
                state.restoreForCurrentThread()
                Assert.fail("Exception expected")
            } catch (ignored: IllegalStateException) {
                // Expected exception
            }
        }
    
        @Test
        fun `unmatched restore is an exception`() {
            val state = InputTrackingState()
            state.disableForCurrentThread()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. cmd/bucket-handlers_test.go

    	credentials auth.Credentials, t *testing.T,
    ) {
    	// test cases with sample input and expected output.
    	testCases := []struct {
    		bucketName string
    		accessKey  string
    		secretKey  string
    		// expected Response.
    		expectedRespStatus int
    		locationResponse   []byte
    		errorResponse      APIErrorResponse
    		shouldPass         bool
    	}{
    		// Test case - 1.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  7. src/crypto/tls/bogo_shim_test.go

    			if *expectECHAccepted && !cs.ECHAccepted {
    				log.Fatal("expected ECH to be accepted, but connection state shows it was not")
    			} else if i == 0 && *onInitialExpectECHAccepted && !cs.ECHAccepted {
    				log.Fatal("expected ECH to be accepted, but connection state shows it was not")
    			} else if i > 0 && *onResumeExpectECHAccepted && !cs.ECHAccepted {
    				log.Fatal("expected ECH to be accepted on resumption, but connection state shows it was not")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    		// ServeHTTP to execute the logic of the handler.
    		apiRouter.ServeHTTP(rec, req)
    
    		isEnc := false
    		expected := 200
    		if strings.HasPrefix(input.objectName, "enc-") {
    			isEnc = true
    			expected = 400
    		}
    		if rec.Code != expected {
    			t.Errorf("Test %d: expected code %d but got %d for object %s", i+1, expected, rec.Code, input.objectName)
    		}
    
    		contentLength := rec.Header().Get("Content-Length")
    		if isEnc {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  9. internal/http/listener_test.go

    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    					t.Fatalf("Test %d:, listenErrs[%d] error: expected = <nil>, got = %v", testIdx+1, i, listenErrs[i])
    				}
    			} else if listenErrs[i] == nil {
    				t.Fatalf("Test %d: listenErrs[%d]: expected = %v, got = <nil>", testIdx+1, i, expectedListenErr)
    			}
    		}
    		if listener != nil {
    			listener.Close()
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/listener_builder_test.go

    				if len(tt.tls) > 0 {
    					t.Fatalf("Expected tls inspector, got none")
    				}
    			} else {
    				evaluateListenerFilterPredicates(t, filters[wellknown.TLSInspector].FilterDisabled, tt.tls)
    			}
    		})
    	}
    }
    
    func evaluateListenerFilterPredicates(t testing.TB, predicate *listener.ListenerFilterChainMatchPredicate, expected map[int]bool) {
    	t.Helper()
    	for port, expect := range expected {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top