use of com.google.gerrit.index.testing.FakeStoredValue in project gerrit by GerritCodeReview.
the class ChangeFieldTest method tolerateNullValuesForInsertion.
@Test
public void tolerateNullValuesForInsertion() {
Project.NameKey project = Project.nameKey("project");
ChangeData cd = ChangeData.createForTest(project, Change.id(1), 1, ObjectId.zeroId());
assertThat(ChangeField.ADDED.setIfPossible(cd, new FakeStoredValue(null))).isTrue();
}
use of com.google.gerrit.index.testing.FakeStoredValue in project gerrit by GerritCodeReview.
the class ChangeFieldTest method tolerateNullValuesForDeletion.
@Test
public void tolerateNullValuesForDeletion() {
Project.NameKey project = Project.nameKey("project");
ChangeData cd = ChangeData.createForTest(project, Change.id(1), 1, ObjectId.zeroId());
assertThat(ChangeField.DELETED.setIfPossible(cd, new FakeStoredValue(null))).isTrue();
}
Aggregations