Package gov.nasa.arc.mct.platform.spi

Examples of gov.nasa.arc.mct.platform.spi.PlatformAccess


        new PlatformAccess().setPlatform(platform);
    }

    @AfterMethod
    public void tearDown() {
        new PlatformAccess().releasePlatform();
    }
View Full Code Here


         
    }
   
    @AfterClass
    public void teardownClass() {
        new PlatformAccess().setPlatform(oldPlatform);     
    }
View Full Code Here

   
    @BeforeMethod
    public void setup() {
        MockitoAnnotations.initMocks(this);
       
        new PlatformAccess().setPlatform(mockPlatform);   

        robot = BasicRobot.robotWithCurrentAwtHierarchy();    

        manifestationInfo = new MCTViewManifestationInfoImpl();
        manifestationInfo.addInfoProperty(ControlAreaFormattingConstants.PANEL_ORDER,"0");
View Full Code Here

        MockitoAnnotations.initMocks(this);
        oldPlatform = PlatformAccess.getPlatform();
        oldPolicy = PolicyManagerAccess.getPolicyManager();
        Mockito.when(mockPlatform.getPersistenceProvider()).thenReturn(mockPersistence);
        Mockito.when(mockPlatform.getPolicyManager()).thenReturn(mockPolicy);
        new PlatformAccess().setPlatform(mockPlatform);
        new PolicyManagerAccess().setPolciyManager(mockPolicy);
    }
View Full Code Here

        new PolicyManagerAccess().setPolciyManager(mockPolicy);
    }
   
    @AfterClass
    public void teardown() {
        new PlatformAccess().setPlatform(oldPlatform);
        new PolicyManagerAccess().setPolciyManager(oldPolicy);
    }
View Full Code Here

        }
    }
   
    @AfterMethod
    protected void teardown() {
        (new PlatformAccess()).setPlatform(null);
    }
View Full Code Here

        if (GraphicsEnvironment.isHeadless()) {
            return;
        }
        MockitoAnnotations.initMocks(this);
       
        (new PlatformAccess()).setPlatform(mockPlatform);
        when(mockPlatform.getPolicyManager()).thenReturn(mockPolicyManager);
        when(mockPolicyManager.execute(Mockito.anyString(), Mockito.any(PolicyContext.class))).thenReturn(new ExecutionResult(null,true,""));
        when(canvasManifestation.getInfo()).thenReturn(new ViewInfo(TestView.class,"",ViewType.CENTER));
        when(canvasManifestation.getComponents()).thenReturn(new Component[] {});
        configureManifestation(canvasManifestation);
View Full Code Here

        }, null);
        if (GraphicsEnvironment.isHeadless()) {
            return;
        }
        MockitoAnnotations.initMocks(this);
        new PlatformAccess().setPlatform(mockPlatform);
        Mockito.when(mockPlatform.getRootComponent()).thenReturn(rootComponent);
       
        housing = TestSetupUtilities.setUpActiveHousing();
        viewManifestation = (MCTHousingViewManifestation) housing.getHousedViewManifestation();
    }
View Full Code Here

        viewManifestation = (MCTHousingViewManifestation) housing.getHousedViewManifestation();
    }
   
    @AfterMethod
    protected void teardown() {
        new PlatformAccess().setPlatform(null);
    }
View Full Code Here

     */
    @BeforeMethod
    public void setup() {
        MockitoAnnotations.initMocks(this);

        (new PlatformAccess()).setPlatform(mockPlatform);
        Mockito.when(mockPlatform.getPolicyManager()).thenReturn(mockPolicyManager);
        Mockito.when(mockPlatform.getPersistenceProvider()).thenReturn(mockPersistenceProvider);
        Mockito.when(mockPersistenceProvider.getReferencedComponents(Mockito.any(AbstractComponent.class))).thenReturn(Collections.<AbstractComponent>emptyList());
        ExecutionResult er = new ExecutionResult(null, true, null);
        Mockito.when(mockPolicyManager.execute(Mockito.anyString(), Mockito.any(PolicyContext.class))).thenReturn(er);
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.platform.spi.PlatformAccess

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.