- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 186 for Verify (0.18 sec)
-
android/guava/src/com/google/common/base/Verify.java
* whenever there is a chance the check may fail "in real life". Example: * * <pre>{@code * Bill bill = remoteService.getLastUnpaidBill(); * * // In case bug 12345 happens again we'd rather just die * Verify.verify(bill.status() == Status.UNPAID, * "Unexpected bill status: %s", bill.status()); * }</pre> * * <h3>Comparison to alternatives</h3> *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 18.5K bytes - Viewed (0) -
guava/src/com/google/common/base/Verify.java
* whenever there is a chance the check may fail "in real life". Example: * * <pre>{@code * Bill bill = remoteService.getLastUnpaidBill(); * * // In case bug 12345 happens again we'd rather just die * Verify.verify(bill.status() == Status.UNPAID, * "Unexpected bill status: %s", bill.status()); * }</pre> * * <h3>Comparison to alternatives</h3> *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon May 17 14:07:47 GMT 2021 - 18.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/FunnelsTest.java
InOrder inOrder = inOrder(elementFunnel); inOrder.verify(elementFunnel).funnel("foo", primitiveSink); inOrder.verify(elementFunnel).funnel("bar", primitiveSink); inOrder.verify(elementFunnel).funnel("baz", primitiveSink); inOrder.verify(elementFunnel).funnel("quux", primitiveSink); } private static void assertNullsThrowException(Funnel<?> funnel) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
} public void testRead_putSingleByte() throws Exception { HashingInputStream in = new HashingInputStream(hashFunction, buffer); int b = in.read(); assertEquals('y', b); verify(hasher).putByte((byte) 'y'); verify(hashFunction).newHasher(); verifyNoMoreInteractions(hashFunction, hasher); } public void testRead_putByteArray() throws Exception {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java
out.write(b); verify(hashFunction).newHasher(); verify(hasher).putByte((byte) b); verifyNoMoreInteractions(hashFunction, hasher); } public void testWrite_putByteArray() throws Exception { byte[] buf = new byte[] {'y', 'a', 'm', 's'}; HashingOutputStream out = new HashingOutputStream(hashFunction, buffer); out.write(buf); verify(hashFunction).newHasher();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 3.1K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerPrivateTest.java
// execute ToolchainPrivate[] toolchains = toolchainManager.getToolchainsForType("basic", session); // verify verify(logger, never()).error(anyString()); assertEquals(1, toolchains.length); } @Test void testToolchainsForUnknownType() throws Exception { // prepare
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 5.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FunnelsTest.java
InOrder inOrder = inOrder(elementFunnel); inOrder.verify(elementFunnel).funnel("foo", primitiveSink); inOrder.verify(elementFunnel).funnel("bar", primitiveSink); inOrder.verify(elementFunnel).funnel("baz", primitiveSink); inOrder.verify(elementFunnel).funnel("quux", primitiveSink); } private static void assertNullsThrowException(Funnel<?> funnel) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/VerifyTest.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.base; import static com.google.common.base.Verify.verify; import static com.google.common.base.Verify.verifyNotNull; import static com.google.common.truth.Truth.assertThat; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu May 04 09:41:29 GMT 2023 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
} /** * Verify that the listener completes in a reasonable amount of time, and Asserts that the future * returns the expected data. * * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the * result doesn't match the expected value. */ public void assertSuccess(Object expectedData) throws Throwable {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 12 18:12:42 GMT 2023 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/ForwardingCacheTest.java
} public void testInvalidate() { forward.invalidate("key"); verify(mock).invalidate("key"); } public void testInvalidateAllIterable() { forward.invalidateAll(ImmutableList.of("key")); verify(mock).invalidateAll(ImmutableList.of("key")); } public void testInvalidateAll() { forward.invalidateAll(); verify(mock).invalidateAll(); } public void testSize() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 12:41:04 GMT 2023 - 3.1K bytes - Viewed (0)