/** * Copyright (c) 2010 Martin Schnabel <mb0@mb0.org> 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 */ package org.axdt.as3.model; import junit.textui.TestRunner; import org.axdt.as3.As3EFactory; import org.axdt.avm.util.AvmTypeAccess; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>As3 Type Parameter</b></em>'. * <!-- end-user-doc --> * @generated */ public class As3TypeParameterTest extends As3PostfixExpressionTest { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static void main(String[] args) { TestRunner.run(As3TypeParameterTest.class); } /** * Constructs a new As3 Type Parameter test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public As3TypeParameterTest(String name) { super(name); } /** * Returns the fixture for this As3 Type Parameter test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected As3TypeParameter getFixture() { return (As3TypeParameter)fixture; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#setUp() * @generated */ @Override protected void setUp() throws Exception { setFixture(As3EFactory.eINSTANCE.createAs3TypeParameter()); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see junit.framework.TestCase#tearDown() * @generated */ @Override protected void tearDown() throws Exception { setFixture(null); } @Override public void testResolveType() { assertEquals(AvmTypeAccess.NULL, getFixture().resolveType()); getFixture().setExpression(createTypedIdent("Vector")); getFixture().setParameter(createTypeProxy("String")); assertProxyType("avm:/types/Vector", getFixture().resolveType()); } } //As3TypeParameterTest