@Test public void testDeleteTrue() { initializeExpectedOperation(3); expect(compute.getOptions()).andReturn(mockOptions); expect(compute.deleteOperation(GLOBAL_OPERATION_ID)).andReturn(true); replay(compute); initializeOperation(); assertTrue(operation.delete()); verify(compute); }
@Test public void testDeleteFalse() { initializeExpectedOperation(3); expect(compute.getOptions()).andReturn(mockOptions); expect(compute.deleteOperation(GLOBAL_OPERATION_ID)).andReturn(false); replay(compute); initializeOperation(); assertFalse(operation.delete()); verify(compute); }