| /**
|
| * 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:
|
| * Frederic Madiot (Mia-Software) - meta-model design
|
| * Gregoire DUPE (Mia-Software) - design and implementation
|
| *
|
| *
|
| * $Id$
|
| */ |
| package org.eclipse.modisco.infra.query.tests.emf;
|
|
|
| import org.eclipse.modisco.infra.query.ModelQuerySet;
|
| import org.eclipse.modisco.infra.query.QueryFactory;
|
|
|
| import junit.framework.TestCase;
|
|
|
| import junit.textui.TestRunner;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * A test case for the model object '<em><b>Model Query Set</b></em>'.
|
| * <!-- end-user-doc -->
|
| * <p>
|
| * The following operations are tested:
|
| * <ul>
|
| * <li>{@link org.eclipse.modisco.infra.query.ModelQuerySet#getQuery(java.lang.String) <em>Get Query</em>}</li>
|
| * </ul>
|
| * </p>
|
| * @generated
|
| */
|
| public class ModelQuerySetTest extends TestCase {
|
|
|
| /**
|
| * The fixture for this Model Query Set test case.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected ModelQuerySet fixture = null;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public static void main(String[] args) {
|
| TestRunner.run(ModelQuerySetTest.class);
|
| }
|
|
|
| /**
|
| * Constructs a new Model Query Set test case with the given name.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public ModelQuerySetTest(String name) {
|
| super(name);
|
| }
|
|
|
| /**
|
| * Sets the fixture for this Model Query Set test case.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected void setFixture(ModelQuerySet fixture) {
|
| this.fixture = fixture;
|
| }
|
|
|
| /**
|
| * Returns the fixture for this Model Query Set test case.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected ModelQuerySet getFixture() {
|
| return this.fixture;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see junit.framework.TestCase#setUp()
|
| * @generated
|
| */
|
| @Override
|
| protected void setUp() throws Exception {
|
| setFixture(QueryFactory.eINSTANCE.createModelQuerySet());
|
| }
|
|
|
| /**
|
| * <!-- 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.query.ModelQuerySet#getQuery(java.lang.String) <em>Get Query</em>}' operation.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @see org.eclipse.modisco.infra.query.ModelQuerySet#getQuery(java.lang.String)
|
| * @generated
|
| */
|
| public void testGetQuery__String() {
|
| // TODO: implement this operation test method
|
| // Ensure that you remove @generated or mark it @generated NOT
|
| fail();
|
| }
|
|
|
| } //ModelQuerySetTest
|