Package gov.nasa.arc.mct.defaults.view

Examples of gov.nasa.arc.mct.defaults.view.MCTHousingViewManifestation


    public void testActiveHousingComponentNullPermission() {
        if (GraphicsEnvironment.isHeadless()) {
            return;
        }
       
        MockHousing housing = new MockHousing(0, 0, 0, MCTHousingFactory.DIRECTORY_AREA_ENABLE, new MCTHousingViewManifestation(componentA,new ViewInfo(MCTHousingViewManifestation.class,"",ViewType.LAYOUT)));
        MCTStandardHousingMenuBar standardMenuBar = new MCTStandardHousingMenuBar(housing);
        Assert.assertEquals(standardMenuBar.getMenuCount(), 6);

        for (int i = 0; i < standardMenuBar.getMenuCount(); i++) {
            Assert.assertFalse(standardMenuBar.getMenu(i) instanceof EditMenu);
View Full Code Here


    public void testActiveHousingComponentRWPermission() {
        if (GraphicsEnvironment.isHeadless()) {
            return;
        }
       
        MockHousing housing = new MockHousing(0, 0, 0, MCTHousingFactory.DIRECTORY_AREA_ENABLE, new MCTHousingViewManifestation(componentB,new ViewInfo(MCTHousingViewManifestation.class,"",ViewType.LAYOUT)));
        MCTStandardHousingMenuBar standardMenuBar = new MCTStandardHousingMenuBar(housing);
        Assert.assertEquals(standardMenuBar.getMenuCount(), 6);

        for (int i = 0; i < standardMenuBar.getMenuCount(); i++) {
            Assert.assertFalse(standardMenuBar.getMenu(i) instanceof EditMenu);
View Full Code Here

    public void testActiveHousingComponent() {
        if (GraphicsEnvironment.isHeadless()) {
            return;
        }

        MockHousing housing = new MockHousing(0, 0, 0, MCTHousingFactory.CONTENT_AREA_ENABLE, new MCTHousingViewManifestation(componentC,new ViewInfo(MCTHousingViewManifestation.class,"",ViewType.LAYOUT)));
        MCTStandardHousingMenuBar standardMenuBar = new MCTStandardHousingMenuBar(housing);
        Assert.assertEquals(standardMenuBar.getMenuCount(), 6);

        ActionContextImpl context = new ActionContextImpl();
        context.setTargetHousing(housing);
View Full Code Here

       
        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)));
        housingC = new MockHousing(new MCTHousingViewManifestation(componentC, new ViewInfo(MCTHousingViewManifestation.class,"", ViewType.LAYOUT)));
       
        access.releasePlatform();
       
        UserEnvironmentRegistry.clearRegistry();
        UserEnvironmentRegistry.registerHousing(housingA);
View Full Code Here

        if (GraphicsEnvironment.isHeadless()) {
            return;
        }

        access.setPlatform(platform);
        MockHousing newHousingA = new MockHousing(new MCTHousingViewManifestation(componentA, new ViewInfo(MCTHousingViewManifestation.class,"", ViewType.LAYOUT)));
        UserEnvironmentRegistry.registerHousing(newHousingA);
        Assert.assertEquals(UserEnvironmentRegistry.getHousingCount(), 4);
        List<MCTAbstractHousing> housings = UserEnvironmentRegistry.getHousingsByComponetId(componentA.getId());
        Assert.assertNotNull(housings);
        Assert.assertEquals(housings.size(), 2);
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.defaults.view.MCTHousingViewManifestation

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.