/** * 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.docker.tests; import junit.framework.TestCase; import junit.textui.TestRunner; import org.occiware.clouddesigner.occi.docker.Container; import org.occiware.clouddesigner.occi.docker.DockerFactory; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Container</b></em>'. * <!-- end-user-doc --> * <p> * The following operations are tested: * <ul> * <li>{@link org.occiware.clouddesigner.occi.docker.Container#create() <em>Create</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.docker.Container#stop() <em>Stop</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.docker.Container#run() <em>Run</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.docker.Container#pause() <em>Pause</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.docker.Container#unpause() <em>Unpause</em>}</li> * <li>{@link org.occiware.clouddesigner.occi.docker.Container#kill(java.lang.String) <em>Kill</em>}</li> * </ul> * </p> * @generated */ public class ContainerTest extends TestCase { /** * The fixture for this Container test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Container fixture = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static void main(String[] args) { TestRunner.run(ContainerTest.class); } /** * Constructs a new Container test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ContainerTest(String name) { super(name); } /** * Sets the fixture for this Container test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void setFixture(Container fixture) { this.fixture = fixture; } /** * Returns the fixture for this Container test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Container getFixture() { return fixture; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#setUp() * @generated */ @Override protected void setUp() throws Exception { setFixture(DockerFactory.eINSTANCE.createContainer()); } /** * <!-- 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.docker.Container#create() <em>Create</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.docker.Container#create() * @generated */ public void testCreate() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.docker.Container#stop() <em>Stop</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.docker.Container#stop() * @generated */ public void testStop() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.docker.Container#run() <em>Run</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.docker.Container#run() * @generated */ public void testRun() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.docker.Container#pause() <em>Pause</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.docker.Container#pause() * @generated */ public void testPause() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.docker.Container#unpause() <em>Unpause</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.docker.Container#unpause() * @generated */ public void testUnpause() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } /** * Tests the '{@link org.occiware.clouddesigner.occi.docker.Container#kill(java.lang.String) <em>Kill</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.occiware.clouddesigner.occi.docker.Container#kill(java.lang.String) * @generated */ public void testKill__String() { // TODO: implement this operation test method // Ensure that you remove @generated or mark it @generated NOT fail(); } } //ContainerTest