aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2017-11-15 08:59:27 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-15 09:01:28 -0800
commit34ff85ef30f483dc617493e64166c1e8a767c708 (patch)
tree71035fd859ef377d8101e1df592ee4b39981f67b /src/test
parent275ae45b1228bdd0f912c4fbd634b29ba4180383 (diff)
Refactor the representation of a collection of package specifications
PiperOrigin-RevId: 175832159
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/PackageGroupTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/packages/PackageGroupTest.java b/src/test/java/com/google/devtools/build/lib/packages/PackageGroupTest.java
index 7bb8caeb17..4c48f0e62c 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/PackageGroupTest.java
+++ b/src/test/java/com/google/devtools/build/lib/packages/PackageGroupTest.java
@@ -13,6 +13,7 @@
// limitations under the License.
package com.google.devtools.build.lib.packages;
+import static com.google.common.collect.ImmutableList.toImmutableList;
import static com.google.common.truth.Truth.assertThat;
import com.google.devtools.build.lib.events.util.EventCollectionApparatus;
@@ -146,8 +147,9 @@ public class PackageGroupTest {
public void testEverythingSpecificationWorks() throws Exception {
scratch.file("fruits/BUILD", "package_group(name = 'mango', packages = ['//...'])");
PackageGroup packageGroup = getPackageGroup("fruits", "mango");
- assertThat(packageGroup.getPackageSpecifications())
- .containsExactly(PackageSpecification.everything());
+ assertThat(
+ packageGroup.getPackageSpecifications().containedPackages().collect(toImmutableList()))
+ .containsExactly(PackageSpecification.everything().toString());
}
private Package getPackage(String packageName) throws Exception {