formatting

This commit is contained in:
Adrian Cole 2011-09-30 10:49:58 -07:00 committed by Jason King
parent bd8d02d1d5
commit f26413d8d7
1 changed files with 24 additions and 24 deletions

View File

@ -52,31 +52,31 @@ public class NodePredicatesTest {
@Test @Test
public void testNodeRunningReturnsTrueWhenRunning() { public void testNodeRunningReturnsTrueWhenRunning() {
expect(node.getState()).andReturn(NodeState.RUNNING).atLeastOnce(); expect(node.getState()).andReturn(NodeState.RUNNING).atLeastOnce();
replay(node); replay(node);
replay(computeService); replay(computeService);
NodeRunning nodeRunning = new NodeRunning(computeService); NodeRunning nodeRunning = new NodeRunning(computeService);
Assert.assertTrue(nodeRunning.apply(node)); Assert.assertTrue(nodeRunning.apply(node));
} }
@Test(expectedExceptions=IllegalStateException.class) @Test(expectedExceptions = IllegalStateException.class)
public void testNodeRunningFailsOnTerminated() { public void testNodeRunningFailsOnTerminated() {
expect(node.getState()).andReturn(NodeState.TERMINATED).atLeastOnce(); expect(node.getState()).andReturn(NodeState.TERMINATED).atLeastOnce();
replay(node); replay(node);
replay(computeService); replay(computeService);
NodeRunning nodeRunning = new NodeRunning(computeService); NodeRunning nodeRunning = new NodeRunning(computeService);
nodeRunning.apply(node); nodeRunning.apply(node);
} }
@Test(expectedExceptions=IllegalStateException.class) @Test(expectedExceptions = IllegalStateException.class)
public void testNodeRunningFailsOnError() { public void testNodeRunningFailsOnError() {
expect(node.getState()).andReturn(NodeState.ERROR).atLeastOnce(); expect(node.getState()).andReturn(NodeState.ERROR).atLeastOnce();
replay(node); replay(node);
replay(computeService); replay(computeService);
NodeRunning nodeRunning = new NodeRunning(computeService); NodeRunning nodeRunning = new NodeRunning(computeService);
nodeRunning.apply(node); nodeRunning.apply(node);
} }
} }