Package gov.nasa.arc.mct.component

Examples of gov.nasa.arc.mct.component.MockComponent


    private ComponentProvider mockProvider;

    @BeforeClass
    public void setup() {
        MockitoAnnotations.initMocks(this);
        component = new MockComponent();
    }
View Full Code Here


        ActionManager.registerAction(MockAction.class, MOCK_ACTION);

        mockMenu = (MockMenu) ActionManager.getMenu(MOCK_MENU, ActionContextImpl.NULL_CONTEXT);       
        JMenuBar menuBar = new JMenuBar();
        menuBar.add(mockMenu);
        MockComponent componentA = new MockComponent();
        componentA.setId("a");
       
        access.setPlatform(mockPlatform);
        MCTAbstractHousing housing = new MockHousing(new MCTHousingViewManifestation(componentA, new ViewInfo(MCTHousingViewManifestation.class,"", ViewType.LAYOUT)));
        access.releasePlatform();
       
View Full Code Here

           
    popupMenus = new ArrayList<ContextAwareMenu>();
   
    access.setPlatform(mockPlatform);
   
      componentA = new MockComponent();
      componentB = new MockComponent();
     
      componentA.setDisplayName(MY_MODEL_A);
      componentA.getCapability(ComponentInitializer.class).initialize();
      componentB.setDisplayName(MY_MODEL_B);
      componentB.getCapability(ComponentInitializer.class).initialize();
View Full Code Here

       
        componentB = new MockComposite();
        componentB.getCapability(ComponentInitializer.class).initialize();

       
        componentC = new MockComponent();
        componentC.getCapability(ComponentInitializer.class).initialize();

        // Register menus in the menubar
        ActionManager.registerMenu(ThisMenu.class, "THIS_MENU");
        ActionManager.registerMenu(ObjectsMenu.class, "OBJECTS_MENU");
View Full Code Here

            return;
        }

        access.setPlatform(platform);

        componentA = new MockComponent();
        componentA.getCapability(ComponentInitializer.class).initialize();

       
        componentB = new MockComponent();
        componentB.getCapability(ComponentInitializer.class).initialize();

       
        componentC = new MockComponent();
        componentC.getCapability(ComponentInitializer.class).initialize();

       
        housingA = new MockHousing(new MCTHousingViewManifestation(componentA, new ViewInfo(MCTHousingViewManifestation.class,"", ViewType.LAYOUT)));
        housingB = new MockHousing(new MCTHousingViewManifestation(componentB, new ViewInfo(MCTHousingViewManifestation.class,"", ViewType.LAYOUT)));
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.component.MockComponent

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.