Skip to content

Commit 0aa3996

Browse files
committed
static import Truth8.assertThat
1 parent 93b4d7f commit 0aa3996

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mug/src/test/java/com/google/mu/util/stream/PermutationTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.google.mu.util.stream;
22

3+
import static com.google.common.truth.Truth8.assertThat;
4+
35
import java.util.ArrayList;
46
import java.util.List;
57
import java.util.Set;
@@ -11,25 +13,24 @@
1113
import org.junit.runners.JUnit4;
1214

1315
import com.google.common.collect.ImmutableList;
14-
import com.google.common.truth.Truth8;
1516

1617
@RunWith(JUnit4.class)
1718
public class PermutationTest {
1819

1920
@Test public void permute_empty() {
20-
Truth8.assertThat(permute(Set.of())).containsExactly(List.of());
21+
assertThat(permute(Set.of())).containsExactly(List.of());
2122
}
2223

2324
@Test public void permute_singleElement() {
24-
Truth8.assertThat(permute(Set.of(1))).containsExactly(List.of(1));
25+
assertThat(permute(Set.of(1))).containsExactly(List.of(1));
2526
}
2627

2728
@Test public void permute_twoElements() {
28-
Truth8.assertThat(permute(Set.of(1, 2))).containsExactly(List.of(1, 2), List.of(2, 1));
29+
assertThat(permute(Set.of(1, 2))).containsExactly(List.of(1, 2), List.of(2, 1));
2930
}
3031

3132
@Test public void permute_threeElements() {
32-
Truth8.assertThat(permute(Set.of(1, 2, 3)))
33+
assertThat(permute(Set.of(1, 2, 3)))
3334
.containsExactly(List.of(1, 2, 3), List.of(1, 3, 2), List.of(2, 1, 3), List.of(2, 3, 1), List.of(3, 1, 2), List.of(3, 2, 1));
3435
}
3536

0 commit comments

Comments
 (0)