Skip to content

Commit 1c60ba0

Browse files
committed
Added test for null result in BatchResult.
1 parent 5cbf03e commit 1c60ba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcloud-java-core/src/test/java/com/google/cloud/BatchResultTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public void testSuccess() {
4545
}
4646
result.success(true);
4747
assertTrue(result.get());
48+
// test that null is allowed
49+
result.success(null);
4850
}
4951

5052
@Test

0 commit comments

Comments
 (0)