| /**
|
| * Copyright (c) 2009, 2019 Mia-Software and others.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License v2.0
|
| * which accompanies this distribution, and is available at
|
| * http://www.eclipse.org/legal/epl-v20.html
|
| *
|
| * Contributors:
|
| * Gregoire DUPE (Mia-Software) - initial API and implementation
|
| */ |
| package org.eclipse.modisco.infra.facet.tests.emf;
|
|
|
| import org.eclipse.modisco.infra.facet.FacetFactory;
|
| import org.eclipse.modisco.infra.facet.FacetSet;
|
|
|
| import junit.framework.TestCase;
|
| import junit.textui.TestRunner;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * A test case for the model object '<em><b>Set</b></em>'.
|
| * <!-- end-user-doc -->
|
| * <p>
|
| * The following features are tested:
|
| * <ul>
|
| * <li>{@link org.eclipse.modisco.infra.facet.FacetSet#getFacets() <em>Facets</em>}</li>
|
| * </ul>
|
| * </p>
|
| * <p>
|
| * The following operations are tested:
|
| * <ul>
|
| * <li>{@link org.eclipse.modisco.infra.facet.FacetSet#getFacet(java.lang.String) <em>Get Facet</em>}</li>
|
| * </ul>
|
| * </p>
|
| * @generated
|
| */
|
| public class FacetSetTest extends TestCase {
|
|
|
| /**
|
| * The fixture for this Set test case.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected FacetSet fixture = null;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public static void main(String[] args) {
|
| TestRunner.run(FacetSetTest.class);
|
| }
|
|
|
| /**
|
| * Constructs a new Set test case with the given name.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public FacetSetTest(String name) {
|
| super(name);
|
| }
|
|
|
| /**
|
| * Sets the fixture for this Set test case.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected void setFixture(FacetSet fixture) {
|
| this.fixture = fixture;
|
| }
|
|
|
| /**
|
| * Returns the fixture for this Set test case.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected FacetSet getFixture() {
|
| return this.fixture;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see junit.framework.TestCase#setUp()
|
| * @generated
|
| */
|
| @Override
|
| protected void setUp() throws Exception {
|
| setFixture(FacetFactory.eINSTANCE.createFacetSet());
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see junit.framework.TestCase#tearDown()
|
| * @generated
|
| */
|
| @Override
|
| protected void tearDown() throws Exception {
|
| setFixture(null);
|
| }
|
|
|
| /**
|
| * Tests the '{@link org.eclipse.modisco.infra.facet.FacetSet#getFacets() <em>Facets</em>}' feature getter.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see org.eclipse.modisco.infra.facet.FacetSet#getFacets()
|
| * @generated
|
| */
|
| public void testGetFacets() {
|
| // TODO: implement this feature getter test method
|
| // Ensure that you remove @generated or mark it @generated NOT
|
| fail();
|
| }
|
|
|
| /**
|
| * Tests the '{@link org.eclipse.modisco.infra.facet.FacetSet#unsetFacets() <em>unsetFacets()</em>}' method.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see org.eclipse.modisco.infra.facet.FacetSet#unsetFacets()
|
| * @generated
|
| */
|
| public void testUnsetFacets() {
|
| // TODO: implement this test method
|
| // Ensure that you remove @generated or mark it @generated NOT
|
| fail();
|
| }
|
|
|
| /**
|
| * Tests the '{@link org.eclipse.modisco.infra.facet.FacetSet#isSetFacets() <em>isSetFacets()</em>}' method.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see org.eclipse.modisco.infra.facet.FacetSet#isSetFacets()
|
| * @generated
|
| */
|
| public void testIsSetFacets() {
|
| // TODO: implement this test method
|
| // Ensure that you remove @generated or mark it @generated NOT
|
| fail();
|
| }
|
|
|
| /**
|
| * Tests the '{@link org.eclipse.modisco.infra.facet.FacetSet#getFacet(java.lang.String) <em>Get Facet</em>}' operation.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see org.eclipse.modisco.infra.facet.FacetSet#getFacet(java.lang.String)
|
| * @generated
|
| */
|
| public void testGetFacet__String() {
|
| // TODO: implement this operation test method
|
| // Ensure that you remove @generated or mark it @generated NOT
|
| fail();
|
| }
|
|
|
| } //FacetSetTest
|