Skip to content

Commit

Permalink
Add null case to FieldValueTest unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongChuong committed Apr 24, 2024
1 parent f3a73be commit 0aaaa69
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public void testFromPb() {
assertEquals(FieldValue.fromPb(TIMESTAMP_FIELD), value.getRepeatedValue().get(1));
value = FieldValue.fromPb(NULL_FIELD);
assertTrue(value.isNull());
assertEquals(null, value.getStringValueOrDefault(null));
assertEquals("defaultValue", value.getStringValueOrDefault("defaultValue"));
}

Expand Down

0 comments on commit 0aaaa69

Please sign in to comment.