From 795895aff87cdb0a5a1e8850b17ccf3863547a1c Mon Sep 17 00:00:00 2001 From: Ulf Adams Date: Fri, 6 Mar 2015 15:58:35 +0000 Subject: Some more cleanup. -- MOS_MIGRATED_REVID=87942730 --- .../com/google/devtools/build/lib/concurrent/MoreFuturesTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/java/com/google/devtools/build/lib/concurrent/MoreFuturesTest.java') diff --git a/src/test/java/com/google/devtools/build/lib/concurrent/MoreFuturesTest.java b/src/test/java/com/google/devtools/build/lib/concurrent/MoreFuturesTest.java index 60f29ac910..52bb7f21a2 100644 --- a/src/test/java/com/google/devtools/build/lib/concurrent/MoreFuturesTest.java +++ b/src/test/java/com/google/devtools/build/lib/concurrent/MoreFuturesTest.java @@ -13,7 +13,7 @@ // limitations under the License. package com.google.devtools.build.lib.concurrent; -import static org.junit.Assert.assertEquals; +import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -69,12 +69,12 @@ public class MoreFuturesTest { } ListenableFuture> list = MoreFutures.allAsListOrCancelAll(futureList); List result = list.get(); - assertEquals(futureList.size(), result.size()); + assertThat(result).hasSize(futureList.size()); for (DelayedFuture delayedFuture : futureList) { assertFalse(delayedFuture.wasCanceled); assertFalse(delayedFuture.wasInterrupted); assertNotNull(delayedFuture.get()); - assertTrue(result.contains(delayedFuture.get())); + assertThat(result).contains(delayedFuture.get()); } } -- cgit v1.2.3