mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/asset/TestAssetPage.java
@Test
    public void testActivateDeactivateAsset() throws InterruptedException
    {
        AssetHelper.createAsset(m_Driver, "ExampleAsset", "testExampleAsset");
        
        AssetHelper.activateAsset(m_Driver, "testExampleAsset");
        
        WebElement assetPanel = AssetHelper.retrieveAsset(m_Driver, "testExampleAsset");
        WebElement statusDiv = assetPanel.findElement(By.cssSelector("div[class='led-GOOD']"));
        assertThat(statusDiv.isDisplayed(), is(true));
        
        AssetHelper.deactivateAsset(m_Driver, "testExampleAsset");
        
        AssetHelper.removeAsset(m_Driver, "testExampleAsset");
    }
/**
     * Verify the asset can be activated and the status updates appropriately.
     * Verify the asset can be deactivated and the status updates appropriately.
     */
Verify the asset can be activated and the status updates appropriately.
Verify the asset can be deactivated and the status updates appropriately.
Verify the asset can be activated and the status updates appropriately . Verify the asset can be deactivated and the status updates appropriately .
@Test
    public void testActivateDeactivateAsset() throws InterruptedException
    {
        AssetHelper.createAsset(m_Driver, "ExampleAsset", "testExampleAsset");
        AssetHelper.activateAsset(m_Driver, "testExampleAsset");
        WebElement assetPanel = AssetHelper.retrieveAsset(m_Driver, "testExampleAsset");
        WebElement statusDiv = assetPanel.findElement(By.cssSelector("div[class='led-GOOD']"));
        assertThat(statusDiv.isDisplayed(), is(true));
        AssetHelper.deactivateAsset(m_Driver, "testExampleAsset");
        AssetHelper.removeAsset(m_Driver, "testExampleAsset");
    }
@ Test public void testActivateDeactivateAsset ( ) throws InterruptedException { AssetHelper . createAsset ( m_Driver , "ExampleAsset" , "testExampleAsset" ) ; AssetHelper . activateAsset ( m_Driver , "testExampleAsset" ) ; WebElement assetPanel = AssetHelper . retrieveAsset ( m_Driver , "testExampleAsset" ) ; WebElement statusDiv = assetPanel . findElement ( By . cssSelector ( "div[class='led-GOOD']" ) ) ; assertThat ( statusDiv . isDisplayed ( ) , is ( true ) ) ; AssetHelper . deactivateAsset ( m_Driver , "testExampleAsset" ) ; AssetHelper . removeAsset ( m_Driver , "testExampleAsset" ) ; }
Verify the asset can be activated and the status updates appropriately.
Verify the asset can be activated and the status updates appropriately .