diff --git a/javatests/com/google/gerrit/acceptance/testsuite/change/ChangeOperationsImplTest.java b/javatests/com/google/gerrit/acceptance/testsuite/change/ChangeOperationsImplTest.java index 5bdf91f53ca5..44fc4bb29646 100644 --- a/javatests/com/google/gerrit/acceptance/testsuite/change/ChangeOperationsImplTest.java +++ b/javatests/com/google/gerrit/acceptance/testsuite/change/ChangeOperationsImplTest.java @@ -22,7 +22,6 @@ import static com.google.gerrit.extensions.restapi.testing.BinaryResultSubject.assertThat; import static com.google.gerrit.testing.GerritJUnit.assertThrows; import static com.google.gerrit.truth.MapSubject.assertThatMap; -import static com.google.gerrit.truth.OptionalSubject.assertThat; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -49,6 +48,7 @@ import com.google.gerrit.extensions.restapi.BinaryResult; import com.google.gerrit.extensions.restapi.RestApiException; import com.google.gerrit.truth.NullAwareCorrespondence; +import com.google.gerrit.truth.OptionalSubject; import com.google.inject.Inject; import java.util.Map; import org.eclipse.jgit.lib.ObjectId; @@ -1629,7 +1629,7 @@ public void parentUuidOfPublishedCommentCanBeRetrieved() { TestHumanComment comment = changeOperations.change(changeId).comment(childCommentUuid).get(); - assertThat(comment.parentUuid()).value().isEqualTo(parentCommentUuid); + OptionalSubject.assertThat(comment.parentUuid()).value().isEqualTo(parentCommentUuid); } @Test @@ -1640,7 +1640,7 @@ public void tagOfPublishedCommentCanBeRetrieved() { TestHumanComment comment = changeOperations.change(changeId).comment(childCommentUuid).get(); - assertThat(comment.tag()).value().isEqualTo("tag"); + OptionalSubject.assertThat(comment.tag()).value().isEqualTo("tag"); } @Test @@ -1700,7 +1700,7 @@ public void parentUuidOfDraftCommentCanBeRetrieved() { TestHumanComment comment = changeOperations.change(changeId).draftComment(childCommentUuid).get(); - assertThat(comment.parentUuid()).value().isEqualTo(parentCommentUuid); + OptionalSubject.assertThat(comment.parentUuid()).value().isEqualTo(parentCommentUuid); } @Test @@ -1730,7 +1730,7 @@ public void parentUuidOfRobotCommentCanBeRetrieved() { TestRobotComment comment = changeOperations.change(changeId).robotComment(childCommentUuid).get(); - assertThat(comment.parentUuid()).value().isEqualTo(parentCommentUuid); + OptionalSubject.assertThat(comment.parentUuid()).value().isEqualTo(parentCommentUuid); } private ChangeInfo getChangeFromServer(Change.Id changeId) throws RestApiException {