Added fail()

This commit is contained in:
Mattias Holmqvist 2011-11-29 22:09:53 +01:00
parent b36b304dce
commit caff96fbb0
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import org.virtualbox_4_1.IMachine;
import org.virtualbox_4_1.VBoxException;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.fail;
/**
* @author Mattias Holmqvist
@ -50,6 +51,7 @@ public class CreateAndRegisterMachineFromIsoIfNotAlreadyExistsLiveTest extends B
try {
new CreateAndRegisterMachineFromIsoIfNotAlreadyExists(null, "SomeWeirdUnknownOs", "jclouds-test-create-2", true, manager)
.apply("jclouds-test-create-2-node");
fail();
} catch (VBoxException e) {
ErrorCode errorCode = ErrorCode.valueOf(e);
// According to the documentation VBOX_E_OBJECT_NOT_FOUND