org.jboss.windup.testutil.html.TestJPAReportUtil Maven / Gradle / Ivy
package org.jboss.windup.testutil.html;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
/**
* @author Jesse Sightler
*/
public class TestJPAReportUtil extends TestChromeDriverReportUtil {
/**
* Checks that an EJB of the given type and classname is listed with given columns in the table
*/
public boolean checkEntityInReport(String... columns) {
String tableID = "jpaEntityTable";
WebElement element = getDriver().findElement(By.id(tableID));
if (element == null) {
throw new CheckFailedException("Unable to find ejb beans table element");
}
return checkValueInTable(element, columns);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy