| |
| <% |
| /** |
| * <copyright> |
| * |
| * Copyright (c) 2005 IBM Corporation and others. |
| * 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: |
| * IBM - Initial API and implementation |
| * |
| * </copyright> |
| */ |
| %> |
| <%GenModel genModel = (GenModel)argument; /* Trick to import java.util.* without warnings */Iterator.class.getName();%> |
| <%@ egf:patternCall patternId="platform:/plugin/org.eclipse.egf.emf.pattern.base/egf/EMF_Pattern_Base.fcore#LogicalName=org.eclipse.egf.emf.pattern.base.HeaderJava" args="parameter:argument"%> |
| package <%=genModel.getTestSuitePackageName()%>; |
| |
| <%genModel.markImportLocation(stringBuffer);%> |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A test suite for the '<em><b><%=genModel.getModelName()%></b></em>' model. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class <%=genModel.getTestSuiteClassName()%> extends <%=genModel.getImportedName("junit.framework.TestSuite")%> |
| { |
| <%if (genModel.hasCopyrightField()) {%> |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static final <%=genModel.getImportedName("java.lang.String")%> copyright = <%=genModel.getCopyrightFieldLiteral()%>;<%=genModel.getNonNLS()%> |
| <%}%> |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static void main(String[] args) |
| { |
| <%=genModel.getImportedName("junit.textui.TestRunner")%>.run(suite()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static <%=genModel.getImportedName("junit.framework.Test")%> suite() |
| { |
| <%=genModel.getImportedName("junit.framework.TestSuite")%> suite = new <%=genModel.getTestSuiteClassName()%>("<%=genModel.getModelName()%> Tests");<%=genModel.getNonNLS()%> |
| <%for (GenPackage genPackage : genModel.getAllGenPackagesWithClassifiers()) {%> |
| <%if (genPackage.hasTests()) {%> |
| suite.addTest(<%=genModel.getImportedName(genPackage.getImportedTestSuiteClassName())%>.suite()); |
| <%}%> |
| <%}%> |
| return suite; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public <%=genModel.getTestSuiteClassName()%>(String name) |
| { |
| super(name); |
| } |
| |
| } //<%=genModel.getTestSuiteClassName()%> |
| <%genModel.emitSortedImports();%> |