Ignore:
Timestamp:
02/05/06 12:39:00 (19 years ago)
Author:
boris
Message:
  • added a parent package field to new modelica class wizard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestNewClassWizard.java

    r237 r290  
    22 * This file is part of Modelica Development Tooling.
    33 *
    4  * Copyright (c) 2005, Link�pings universitet, Department of
     4 * Copyright (c) 2005, Linkpings universitet, Department of
    55 * Computer and Information Science, PELAB
    66 *
     
    2323 *   distribution.
    2424 *
    25  * * Neither the name of Link�pings universitet nor the names of its
     25 * * Neither the name of Linkpings universitet nor the names of its
    2626 *   contributors may be used to endorse or promote products derived from
    2727 *   this software without specific prior written permission.
     
    5353import org.modelica.mdt.test.util.Utility;
    5454import org.modelica.mdt.ui.wizards.NewClassWizard;
     55import org.modelica.mdt.ui.wizards.NewTypePage;
    5556
    5657import abbot.tester.swt.ButtonTester;
     
    138139            TextTester.getInstrumentedText(NewClassWizard.CLASS_NAME_TAG);
    139140        sourceFolder =
    140             TextTester.getInstrumentedText(NewClassWizard.SOURCE_FOLDER_TAG);
     141            TextTester.getInstrumentedText(NewTypePage.SOURCE_FOLDER_TAG);
    141142        initialEquation =
    142143            ButtonTester.getInstrumentedButton(NewClassWizard.INITIAL_EQUATION_TAG);
     
    194195       
    195196        ttester.actionEnterText(sourceFolder, PROJECT_NAME_1);
    196         ttester.actionEnterText(className, "#¤%&");
    197         assertTrue("Finish button should not be disabled for a warning",
    198                 finish.getEnabled());
     197        ttester.actionEnterText(className, "#%&");
     198        assertFalse("Finish button should be disabled when an illegal class " +
     199                "name is entered", finish.getEnabled());
    199200       
    200201        /*
Note: See TracChangeset for help on using the changeset viewer.