Skip to content

Commit 723ad18

Browse files
cpovirkcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 602816548
1 parent 725bccb commit 723ad18

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/com/google/javascript/jscomp/JSChunkGraphTest.java

+14-14
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
import static com.google.common.truth.Truth.assertThat;
2020
import static com.google.common.truth.Truth.assertWithMessage;
21-
import static com.google.common.truth.Truth8.assertThat;
2221
import static com.google.javascript.jscomp.base.JSCompStrings.lines;
2322
import static java.util.Collections.shuffle;
2423
import static org.junit.Assert.assertThrows;
2524

2625
import com.google.common.collect.ImmutableList;
2726
import com.google.common.collect.Iterables;
27+
import com.google.common.truth.Truth8;
2828
import com.google.gson.JsonArray;
2929
import com.google.gson.JsonObject;
3030
import com.google.javascript.jscomp.deps.DependencyInfo.Require;
@@ -664,9 +664,9 @@ public void testMoveMarkedWeakSources() throws Exception {
664664

665665
makeGraph();
666666

667-
assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
667+
Truth8.assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
668668
.containsExactly(weak1, weak2);
669-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
669+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
670670
.containsExactly(strong1, strong2);
671671
}
672672

@@ -691,9 +691,9 @@ public void testMoveMarkedWeakSourcesDuringManageDepsSortOnly() throws Exception
691691
makeGraph();
692692
graph.manageDependencies(compiler, DependencyOptions.sortOnly());
693693

694-
assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
694+
Truth8.assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
695695
.containsExactly(weak1, weak2);
696-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
696+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
697697
.containsExactly(strong1, strong2);
698698
}
699699

@@ -727,7 +727,7 @@ public void testIgnoreMarkedWeakSourcesDuringManageDepsPrune() throws Exception
727727
.map(CompilerInput::getSourceFile)
728728
.collect(Collectors.toList()))
729729
.isEmpty();
730-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
730+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
731731
.containsExactly(strong1, strong2);
732732
}
733733

@@ -769,7 +769,7 @@ public void testIgnoreDepsOfMarkedWeakSourcesDuringManageDepsPrune() throws Exce
769769
.map(CompilerInput::getSourceFile)
770770
.collect(Collectors.toList()))
771771
.isEmpty();
772-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
772+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
773773
.containsExactly(strong1, strong2);
774774
}
775775

@@ -795,9 +795,9 @@ public void testMoveImplicitWeakSourcesFromMoocherDuringManageDepsLegacyPrune()
795795
DependencyOptions.pruneLegacyForEntryPoints(
796796
ImmutableList.of(ModuleIdentifier.forFile("strong"))));
797797

798-
assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
798+
Truth8.assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
799799
.containsExactly(weak);
800-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
800+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
801801
.containsExactly(strong, moocher);
802802
}
803803

@@ -823,7 +823,7 @@ public void testImplicitWeakSourcesNotMovedDuringManageDepsSortOnly() throws Exc
823823
graph.manageDependencies(compiler, DependencyOptions.sortOnly());
824824

825825
assertThat(getWeakModule().getInputs()).isEmpty();
826-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
826+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
827827
.containsExactly(weak1, strong1, weak2, strong2);
828828
}
829829

@@ -852,9 +852,9 @@ public void testImplicitWeakSourcesMovedDuringManageDepsPrune() throws Exception
852852
ImmutableList.of(
853853
ModuleIdentifier.forFile("strong1"), ModuleIdentifier.forFile("strong2"))));
854854

855-
assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
855+
Truth8.assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
856856
.containsExactly(weak1, weak2);
857-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
857+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
858858
.containsExactly(strong1, strong2);
859859
}
860860

@@ -889,9 +889,9 @@ public void testTransitiveWeakSources() throws Exception {
889889
DependencyOptions.pruneForEntryPoints(
890890
ImmutableList.of(ModuleIdentifier.forFile("strong1"))));
891891

892-
assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
892+
Truth8.assertThat(getWeakModule().getInputs().stream().map(CompilerInput::getSourceFile))
893893
.containsExactly(weak1, weak2, weak3, strongFromWeak);
894-
assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
894+
Truth8.assertThat(chunkA.getInputs().stream().map(CompilerInput::getSourceFile))
895895
.containsExactly(strong1);
896896
}
897897

0 commit comments

Comments
 (0)