mirror of https://github.com/apache/jclouds.git
formatting
This commit is contained in:
parent
bd8d02d1d5
commit
f26413d8d7
|
@ -52,31 +52,31 @@ public class NodePredicatesTest {
|
|||
|
||||
@Test
|
||||
public void testNodeRunningReturnsTrueWhenRunning() {
|
||||
expect(node.getState()).andReturn(NodeState.RUNNING).atLeastOnce();
|
||||
replay(node);
|
||||
replay(computeService);
|
||||
expect(node.getState()).andReturn(NodeState.RUNNING).atLeastOnce();
|
||||
replay(node);
|
||||
replay(computeService);
|
||||
|
||||
NodeRunning nodeRunning = new NodeRunning(computeService);
|
||||
Assert.assertTrue(nodeRunning.apply(node));
|
||||
NodeRunning nodeRunning = new NodeRunning(computeService);
|
||||
Assert.assertTrue(nodeRunning.apply(node));
|
||||
}
|
||||
|
||||
@Test(expectedExceptions=IllegalStateException.class)
|
||||
@Test(expectedExceptions = IllegalStateException.class)
|
||||
public void testNodeRunningFailsOnTerminated() {
|
||||
expect(node.getState()).andReturn(NodeState.TERMINATED).atLeastOnce();
|
||||
replay(node);
|
||||
replay(computeService);
|
||||
expect(node.getState()).andReturn(NodeState.TERMINATED).atLeastOnce();
|
||||
replay(node);
|
||||
replay(computeService);
|
||||
|
||||
NodeRunning nodeRunning = new NodeRunning(computeService);
|
||||
nodeRunning.apply(node);
|
||||
NodeRunning nodeRunning = new NodeRunning(computeService);
|
||||
nodeRunning.apply(node);
|
||||
}
|
||||
|
||||
@Test(expectedExceptions=IllegalStateException.class)
|
||||
@Test(expectedExceptions = IllegalStateException.class)
|
||||
public void testNodeRunningFailsOnError() {
|
||||
expect(node.getState()).andReturn(NodeState.ERROR).atLeastOnce();
|
||||
replay(node);
|
||||
replay(computeService);
|
||||
expect(node.getState()).andReturn(NodeState.ERROR).atLeastOnce();
|
||||
replay(node);
|
||||
replay(computeService);
|
||||
|
||||
NodeRunning nodeRunning = new NodeRunning(computeService);
|
||||
nodeRunning.apply(node);
|
||||
NodeRunning nodeRunning = new NodeRunning(computeService);
|
||||
nodeRunning.apply(node);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue