mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/ControllerHelper.java
public static void ensureTwoControllers(final WebDriver driver) throws NumberFormatException, InterruptedException, 
        ExecutionException, TimeoutException
    {
        //verify that there are two controllers
        List<WebElement> controllerList = driver.findElements(By.cssSelector("table[class='controller']"));
        String nameOfActiveCont = ControllerHelper.getNameOfActiveContoller(driver);
        if (controllerList.size() <2)
        {
            if (nameOfActiveCont.equals(ControllerHelper.DEFAULT_CONTROLLER_NAME))
            {
                ControllerHelper.setGuiNameAndIdThenCreateChannel(driver);
                NavigationHelper.expandRightSideBarOnly(driver);        
            }
            else
            {
                ControllerHelper.createController(driver);
            }
        }
    }
/**
     * Ensure that there are two Controllers.
     * @param driver
     *      Current web driver.
     */
Ensure that there are two Controllers.
@param driver
Current web driver.
Ensure that there are two Controllers . @param driver Current web driver .
public static void ensureTwoControllers(final WebDriver driver) throws NumberFormatException, InterruptedException, 
        ExecutionException, TimeoutException
    {
        List<WebElement> controllerList = driver.findElements(By.cssSelector("table[class='controller']"));
        String nameOfActiveCont = ControllerHelper.getNameOfActiveContoller(driver);
        if (controllerList.size() <2)
        {
            if (nameOfActiveCont.equals(ControllerHelper.DEFAULT_CONTROLLER_NAME))
            {
                ControllerHelper.setGuiNameAndIdThenCreateChannel(driver);
                NavigationHelper.expandRightSideBarOnly(driver);        
            }
            else
            {
                ControllerHelper.createController(driver);
            }
        }
    }
public static void ensureTwoControllers ( final WebDriver driver ) throws NumberFormatException , InterruptedException , ExecutionException , TimeoutException { List < WebElement > controllerList = driver . findElements ( By . cssSelector ( "table[class='controller']" ) ) ; String nameOfActiveCont = ControllerHelper . getNameOfActiveContoller ( driver ) ; if ( controllerList . size ( ) < 2 ) { if ( nameOfActiveCont . equals ( ControllerHelper . DEFAULT_CONTROLLER_NAME ) ) { ControllerHelper . setGuiNameAndIdThenCreateChannel ( driver ) ; NavigationHelper . expandRightSideBarOnly ( driver ) ; } else { ControllerHelper . createController ( driver ) ; } } }
Ensure that there are two Controllers.
Ensure that there are two Controllers .
//verify that there are two controllers