Skip to content

Commit 93017bf

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 6691 b: refs/heads/tswast-patch-1 c: 2e152a3 h: refs/heads/master i: 6689: 694b348 6687: a5cc2ce
1 parent a53e742 commit 93017bf

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

  • branches/tswast-patch-1/gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 16b451d0d4733549105c9ec9ad7c90009719ce73
60+
refs/heads/tswast-patch-1: 2e152a341a9ca34fc3ef61b54d8c56f92d99ea7e
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager/ProjectTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ public void testReload() {
8080
assertEquals(newInfo, newProject.info());
8181
}
8282

83+
@Test
84+
public void testLoadNull() {
85+
expect(resourceManager.get(PROJECT_INFO.projectId())).andReturn(null);
86+
replay(resourceManager);
87+
assertNull(Project.load(resourceManager, PROJECT_INFO.projectId()));
88+
}
89+
8390
@Test
8491
public void testReloadDeletedProject() {
8592
expect(resourceManager.get(PROJECT_INFO.projectId())).andReturn(PROJECT_INFO);

0 commit comments

Comments
 (0)