- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 1,190 for expectEq (0.07 sec)
-
android/guava-tests/test/com/google/common/io/CharSourceTester.java
assertEquals(expected.isEmpty(), source.isEmpty()); } public void testLength() throws IOException { assertEquals(expected.length(), source.length()); } public void testLengthIfKnown() throws IOException { Optional<Long> lengthIfKnown = source.lengthIfKnown(); if (lengthIfKnown.isPresent()) { assertEquals(expected.length(), (long) lengthIfKnown.get()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 7.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
} @J2ktIncompatible @GwtIncompatible // propagate public void testPropagate_noneDeclared_checked() { RuntimeException expected = assertThrows(RuntimeException.class, () -> propagate(new SomeCheckedException())); assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class); } @GwtIncompatible // throwIfInstanceOf
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 14.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
}; private static void checkResult(Joiner joiner, Iterable<Integer> parts, String expected) { assertEquals(expected, joiner.join(parts)); assertEquals(expected, joiner.join(parts.iterator())); StringBuilder sb1FromIterable = new StringBuilder().append('x'); joiner.appendTo(sb1FromIterable, parts); assertEquals("x" + expected, sb1FromIterable.toString());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 11.7K bytes - Viewed (0) -
internal/grid/muxserver.go
} } } } // checkSeq will check if sequence number is correct and increment it by 1. func (m *muxServer) checkSeq(seq uint32) (ok bool) { if seq != m.RecvSeq { if debugPrint { fmt.Printf("expected sequence %d, got %d\n", m.RecvSeq, seq) } m.disconnect(fmt.Sprintf("receive sequence number mismatch. want %d, got %d", m.RecvSeq, seq), false) return false } m.RecvSeq++ return true }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 9.7K bytes - Viewed (0) -
tests/update_test.go
if db.RowsAffected != 1 { t.Errorf("Expected RowsAffected=1 but instead RowsAffected=%v", db.RowsAffected) } // Verify that Age now=`newAge`. result := &User{} result.ID = user.ID DB.Preload("Account").First(result) if result.Age != newAge { t.Errorf("Expected freshly queried user to have Age=%v but instead found Age=%v", newAge, result.Age) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
} public void testCallWithTimeout_badCallableWithEnoughTime() throws Exception { ExecutionException expected = assertThrows( ExecutionException.class, () -> service.callWithTimeout(BAD_CALLABLE, ENOUGH_MS, MILLISECONDS)); assertThat(expected.getCause()).isInstanceOf(SampleException.class); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
call.execute() }.also { expected -> when (expected) { is SSLHandshakeException -> { // JDK 11+ } is SSLException -> { // javax.net.ssl.SSLException: readRecord } is SocketException -> { // Conscrypt, JDK 8 (>= 292), JDK 9 } else -> { assertThat(expected.message).isEqualTo("exhausted all routes")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
} assertEqualsUsingStartedWith(perm, expected, elements); } } /** Regression test for b/4124577 */ public void testRegression_dataCorruption() { int size = 8; List<Integer> expected = createOrderedList(size); MinMaxPriorityQueue<Integer> q = MinMaxPriorityQueue.create(expected); List<Integer> contents = Lists.newArrayList(expected);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
internal/s3select/unused-errors.go
return &s3Error{ code: "ParseExpectedDatePart", message: "Did not find the expected date part in the SQL expression.", statusCode: 400, cause: err, } } func errParseExpectedKeyword(err error) *s3Error { return &s3Error{ code: "ParseExpectedKeyword", message: "Did not find the expected keyword in the SQL expression.", statusCode: 400, cause: err, } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 20 08:16:35 UTC 2024 - 17.5K bytes - Viewed (0)