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

org.jboss.windup.testutil.html.TestJPAReportUtil 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;

/**
 * @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