> @@ -141,6 +141,19 @@ public void testNodeRunningReturnsTrueWhenRunning() {
>        Assert.assertTrue(nodeRunning.apply(reference));
>        Assert.assertEquals(reference.get(), node);
>     }
> +   
> +   @Test
> +   public void testNodeSuspendedReturnsTrueWhenSuspended() {
> +      expect(node.getStatus()).andReturn(Status.SUSPENDED).atLeastOnce();
> +      expect(node.getBackendStatus()).andReturn(null).atLeastOnce();
> +      replay(node);
> +      replay(computeService);

All testers in this class were doing the same thing (not written by me). I've 
changed all to use the method you noted above. Good catch.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/405/files#r13750731

Reply via email to