use of com.cloud.legacymodel.communication.command.ReadyCommand in project cosmic by MissionCriticalCloud.
the class NiciraNvpRequestWrapperTest method testReadyCommandWrapper.
@Test
public void testReadyCommandWrapper() {
final ReadyCommand command = new ReadyCommand();
final NiciraNvpRequestWrapper wrapper = NiciraNvpRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(command, niciraNvpResource);
assertTrue(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.ReadyCommand in project cosmic by MissionCriticalCloud.
the class NotAValidCommand method testReadyCommand.
@Test
public void testReadyCommand() {
final ReadyCommand readyCommand = new ReadyCommand();
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(readyCommand, this.citrixResourceBase);
assertFalse(answer.getResult());
}
Aggregations