Skip to content

Commit

Permalink
Use the expected state in column tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrykuzmin committed Sep 3, 2020
1 parent bd252e2 commit 9c2667a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,12 @@ void updateColumns() {

// Check the column value is propagated to the entity state.
TestProcessManager entityWithColumns = afterMigration.next();
assertThat(entityWithColumns.state()
.getIdString()).isEqualTo(id.toString());
Project expectedState = pm
.state()
.toBuilder()
.setIdString(pm.getIdString())
.build();
assertThat(entityWithColumns.state()).isEqualTo(expectedState);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,12 @@ void updateColumns() {

// Check the column value is propagated to the entity state.
TestProjection entityWithColumns = afterMigration.next();
assertThat(entityWithColumns.state()
.getIdString()).isEqualTo(id.toString());
Project expectedState = projection
.state()
.toBuilder()
.setIdString(projection.getIdString())
.build();
assertThat(entityWithColumns.state()).isEqualTo(expectedState);
}

@Test
Expand Down

0 comments on commit 9c2667a

Please sign in to comment.