org.jboss.windup.testutil.html.TestSpringBeanReportUtil Maven / Gradle / Ivy
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