All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.windup.testutil.html.TestSpringBeanReportUtil Maven / Gradle / Ivy

There is a newer version: 6.3.9.Final
Show newest version
package org.jboss.windup.testutil.html;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

/**
 * Used for assisting the unit tests in validating the contents of the Spring Bean page.
 *
 * @author Jesse Sightler
 */
public class TestSpringBeanReportUtil extends TestChromeDriverReportUtil {
    /**
     * Checks that for the given filename, location, and IP
     */
    public boolean checkSpringBeanInReport(String beanName, String className) {
        WebElement element = getDriver().findElement(By.id("springBeansTable"));
        if (element == null) {
            throw new CheckFailedException("Unable to spring beans table element");
        }
        return checkValueInTable(element, beanName, className);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy