/** * Copyright (c) 2015-2016 Obeo, Inria * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * - William Piers <william.piers@obeo.fr> * - Philippe Merle <philippe.merle@inria.fr> */ package org.occiware.clouddesigner.occi.vmware.tests; import junit.framework.TestCase; import junit.textui.TestRunner; import org.occiware.clouddesigner.occi.vmware.Vm; import org.occiware.clouddesigner.occi.vmware.VmwareFactory; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Vm</b></em>'. * <!-- end-user-doc --> * <p> * The following operations are tested: * <ul> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#cloneVM() <em>Clone VM</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#mountVmwareToolsdisk() <em>Mount Vmware Toolsdisk</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#markAsTemplate() <em>Mark As Template</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#markAsVirtualMachine() <em>Mark As Virtual Machine</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#registerVM() <em>Register VM</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#unregisterVM() <em>Unregister VM</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#defragmentAllDisks() <em>Defragment All Disks</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.vmware.Vm#resetLocationId() <em>Reset Location Id</em>}</li> * </ul> * </p> * @generated */ public class VmTest extends TestCase { /** * The fixture for this Vm test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Vm fixture = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static void main(String[] args) { TestRunner.run(VmTest.class); } /** * Constructs a new Vm test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public VmTest(String name) { super(name); } /** * Sets the fixture for this Vm test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void setFixture(Vm fixture) { this.fixture = fixture; } /** * Returns the fixture for this Vm test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Vm getFixture() { return fixture; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#setUp() * @generated */ @Override protected void setUp() throws Exception { setFixture(VmwareFactory.eINSTANCE.createVm()); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#tearDown() * @generated */ @Override protected void tearDown() throws Exception { setFixture(null); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#cloneVM() <em>Clone VM</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#cloneVM() * @generated */ public void testCloneVM() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#mountVmwareToolsdisk() <em>Mount Vmware Toolsdisk</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#mountVmwareToolsdisk() * @generated */ public void testMountVmwareToolsdisk() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#markAsTemplate() <em>Mark As Template</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#markAsTemplate() * @generated */ public void testMarkAsTemplate() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#markAsVirtualMachine() <em>Mark As Virtual Machine</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#markAsVirtualMachine() * @generated */ public void testMarkAsVirtualMachine() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#registerVM() <em>Register VM</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#registerVM() * @generated */ public void testRegisterVM() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#unregisterVM() <em>Unregister VM</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#unregisterVM() * @generated */ public void testUnregisterVM() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#defragmentAllDisks() <em>Defragment All Disks</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#defragmentAllDisks() * @generated */ public void testDefragmentAllDisks() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.vmware.Vm#resetLocationId() <em>Reset Location Id</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.vmware.Vm#resetLocationId() * @generated */ public void testResetLocationId() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } } //VmTest