Ignore:
Timestamp:
10/05/05 16:25:54 (19 years ago)
Author:
boris
Message:
  • added tests on modelica new wizards catagory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelcia.mdt.test/New Folder/src/org/modelica/mdt/test/TestPerspective.java

    r48 r50  
    1010import org.eclipse.ui.WorkbenchException;
    1111import org.eclipse.ui.console.IConsoleConstants;
     12import org.eclipse.ui.wizards.IWizardCategory;
    1213
    1314import junit.framework.TestCase;
     
    4445    }
    4546   
     47    /**
     48     * perform tests on modelica perspective
     49     * @throws WorkbenchException
     50     */
    4651    public void testModelicaPerspective() throws WorkbenchException
    4752    {
     
    8489
    8590    }
     91    /**
     92     * perform tests on modelica new wizards catagory
     93     * @throws WorkbenchException
     94     */
     95   
     96    public void testModelicaNewWizardsCatagory()
     97    {
     98        IWizardCategory category =
     99            PlatformUI.getWorkbench().getNewWizardRegistry().
     100              findCategory("org.modelica.mdt.ModelicaCategory");
     101               
     102        assertNotNull("Modelica New Wizards catagory not found",  category);
     103        assertEquals("Modelica New Wizards catagory labeled unexpectedly",
     104                "Modelica", category.getLabel());
     105       
     106        assertNotNull("New Project Wizard not found",
     107                category.findWizard("org.modelica.mdt.NewProjectWizard"));
     108       
     109        assertNotNull("New Class Wizard not found",
     110                category.findWizard("org.modelica.mdt.NewClassWizard"));
     111
     112    }
    86113
    87114
Note: See TracChangeset for help on using the changeset viewer.