Skip to content

Commit

Permalink
Bugfix: Fix broken assertion in PipelineTest (#22485)
Browse files Browse the repository at this point in the history
* Bugfix: Fix broken assertion in PipelineTest

* spotless
  • Loading branch information
Moritz Mack authored Aug 3, 2022
1 parent 74a534b commit 4ca749d
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.beam.sdk;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.instanceOf;
Expand Down Expand Up @@ -407,13 +406,9 @@ public void testReplaceAll() {
new PipelineVisitor.Defaults() {
@Override
public CompositeBehavior enterCompositeTransform(Node node) {
if (!node.isRootNode()) {
assertThat(
node.getTransform().getClass(),
not(
anyOf(
Matchers.equalTo(GenerateSequence.class),
Matchers.equalTo(Create.Values.class))));
String fullName = node.getFullName();
if (fullName.equals("unbounded") || fullName.equals("bounded")) {
assertThat(node.getTransform(), Matchers.instanceOf(EmptyFlatten.class));
}
return CompositeBehavior.ENTER_TRANSFORM;
}
Expand Down

0 comments on commit 4ca749d

Please sign in to comment.