google-storage/src/test/java/bio/terra/cloudres/google/storage/StorageIntegrationUtils.java
/** Helper to compare two list of {@link Acl}'s entity and role, but ignores the etag and id. */
Helper to compare two list of  Acl's entity and role, but ignores the etag and id.
Helper to compare two list of Acl ' s entity and role but ignores the etag and id .
static void assertAclsMatch(List<Acl> expect, List<Acl> actual) {
    List<Acl> cleanActualAcl = new ArrayList<>();
    List<Acl> cleanExpectAcl = new ArrayList<>();
    actual.forEach(
        acl -> cleanActualAcl.add(Acl.newBuilder(acl.getEntity(), acl.getRole()).build()));
    expect.forEach(
        acl -> cleanExpectAcl.add(Acl.newBuilder(acl.getEntity(), acl.getRole()).build()));
    assertThat(cleanActualAcl, Matchers.containsInAnyOrder(cleanExpectAcl.toArray()));
  }
static void assertAclsMatch ( List < Acl > expect , List < Acl > actual ) { List < Acl > cleanActualAcl = new ArrayList < > ( ) ; List < Acl > cleanExpectAcl = new ArrayList < > ( ) ; actual . forEach ( acl -> cleanActualAcl . add ( Acl . newBuilder ( acl . getEntity ( ) , acl . getRole ( ) ) . build ( ) ) ) ; expect . forEach ( acl -> cleanExpectAcl . add ( Acl . newBuilder ( acl . getEntity ( ) , acl . getRole ( ) ) . build ( ) ) ) ; assertThat ( cleanActualAcl , Matchers . containsInAnyOrder ( cleanExpectAcl . toArray ( ) ) ) ; }
Helper to compare two list of {@link Acl}'s entity and role, but ignores the etag and id.
Helper to compare two list of { @link Acl } ' s entity and role but ignores the etag and id .