/** * Copyright (c) 2015-2016 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: * - Fawaz Paraiso <fawaz.paraiso@inria.fr> * - Philippe Merle <philippe.merle@inria.fr> */ package org.occiware.clouddesigner.occi.hypervisor.tests; import junit.framework.TestCase; import junit.textui.TestRunner; import org.occiware.clouddesigner.occi.hypervisor.HypervisorFactory; import org.occiware.clouddesigner.occi.hypervisor.Machine; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Machine</b></em>'. * <!-- end-user-doc --> * @generated */ public class MachineTest extends TestCase { /** * The fixture for this Machine test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Machine fixture = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static void main(String[] args) { TestRunner.run(MachineTest.class); } /** * Constructs a new Machine test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MachineTest(String name) { super(name); } /** * Sets the fixture for this Machine test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void setFixture(Machine fixture) { this.fixture = fixture; } /** * Returns the fixture for this Machine test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Machine getFixture() { return fixture; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#setUp() * @generated */ @Override protected void setUp() throws Exception { setFixture(HypervisorFactory.eINSTANCE.createMachine()); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#tearDown() * @generated */ @Override protected void tearDown() throws Exception { setFixture(null); } } //MachineTest