- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,187 for EXPECTED (0.07 sec)
-
guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
UncheckedExecutionException expected = assertThrows( UncheckedExecutionException.class, () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class)); assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); } public void testGetCheckedUntimed_executionExceptionError() throws TwoArgConstructorException { ExecutionError expected = assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersTest.kt
}.also { expected -> assertThat(expected.message) .isEqualTo("Unexpected char 0xe9 at 1 in header name: héader1") } } @Test fun builderRejectsUnicodeInHeaderValue() { assertFailsWith<IllegalArgumentException> { Headers.Builder().add("header1", "valué1") }.also { expected -> assertThat(expected.message)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java
value = "Fess,フェス"; expected = Arrays.asList("Fess", "フェス"); actual = Arrays.asList(KuromojiCSVUtil.parse(value)); assertThat(actual, is(expected)); value = "\"Fess,FESS\""; expected = Arrays.asList("\"Fess,FESS\""); actual = Arrays.asList(KuromojiCSVUtil.parse(value)); assertThat(actual, is(expected)); value = " ";
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.2K bytes - Viewed (0) -
internal/config/etcd/etcd_test.go
if err != nil && testCase.success { t.Errorf("expected to succeed but failed with %s", err) } if !testCase.success && err == nil { t.Error("expected failure but succeeded instead") } if testCase.success { if !reflect.DeepEqual(endpoints, testCase.endpoints) { t.Errorf("expected %s, got %s", testCase.endpoints, endpoints) } if secure != testCase.secure {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
lockB.lock(); PotentialDeadlockException expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); firstException = expected; // Second time should also fail, with a cached causal chain. expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
lockB.lock(); PotentialDeadlockException expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB"); firstException = expected; // Second time should also fail, with a cached causal chain. expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock()); checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
internal/store/batch_test.go
if batchLen != 0 { t.Fatalf("Expected batch.Len()=0; but got %v", batchLen) } keys := store.List() if len(keys) != 1 { t.Fatalf("expected len(store.List())=1; but got %v", len(keys)) } key := keys[0] if !key.Compress { t.Fatal("expected key.Compress=true; but got false") } if key.ItemCount != int(limit) { t.Fatalf("expected key.ItemCount=%d; but got %v", limit, key.ItemCount) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
assertEquals(UNCHECKED_EXCEPTION, expected.getCause()); } public void testGetUnchecked_executionExceptionError() { ExecutionError expected = assertThrows(ExecutionError.class, () -> getUnchecked(FAILED_FUTURE_ERROR)); assertEquals(ERROR, expected.getCause()); } public void testGetUnchecked_executionExceptionOtherThrowable() { UncheckedExecutionException expected = assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
assertEquals(UNCHECKED_EXCEPTION, expected.getCause()); } public void testGetUnchecked_executionExceptionError() { ExecutionError expected = assertThrows(ExecutionError.class, () -> getUnchecked(FAILED_FUTURE_ERROR)); assertEquals(ERROR, expected.getCause()); } public void testGetUnchecked_executionExceptionOtherThrowable() { UncheckedExecutionException expected = assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 4.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartBodyTest.kt
@Test fun onePartRequired() { assertFailsWith<IllegalStateException> { MultipartBody.Builder().build() }.also { expected -> assertThat(expected.message) .isEqualTo("Multipart body must have at least one part.") } } @Test fun singlePart() { val expected = """ |--123 | |Hello, World! |--123-- |
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.4K bytes - Viewed (0)