Package gov.nasa.arc.mct.gui.menu.ExportMenu

Examples of gov.nasa.arc.mct.gui.menu.ExportMenu.ObjectsExportMenu


   
    @Test
    public void testExportMenus() {
        // Create test objects
        ContextAwareMenu thisMenu = new ThisExportMenu();
        ContextAwareMenu objsMenu = new ObjectsExportMenu();
        thisMenu.initialize();
        objsMenu.initialize();       
       
        // Name is specified in code, so verify it
        Assert.assertEquals(thisMenu.getText(), "Export");
        Assert.assertEquals(objsMenu.getText(), "Export");
       
        // Should always return true to canHandle
        Assert.assertTrue(thisMenu.canHandle(null));
        Assert.assertTrue(objsMenu.canHandle(null));
       
        // Verify that expected extension points are published
        String[] thisExts = thisMenu.getExtensionMenubarPaths();
        String[] objsExts = objsMenu.getExtensionMenubarPaths();
        Assert.assertEquals(thisExts[0], "/this/export.ext");
        Assert.assertEquals(objsExts[0], "/objects/export.ext");
       
        // Verify that export to image is included
        Assert.assertTrue(find("EXPORT_THIS_TO_IMAGE", thisMenu));
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.gui.menu.ExportMenu.ObjectsExportMenu

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.