Class TestJavaApplicationOverviewUtil
- java.lang.Object
-
- org.jboss.windup.testutil.html.TestReportUtil
-
- org.jboss.windup.testutil.html.TestChromeDriverReportUtil
-
- org.jboss.windup.testutil.html.TestJavaApplicationOverviewUtil
-
public class TestJavaApplicationOverviewUtil extends TestChromeDriverReportUtil
Contains methods for testing the Java Application Overview report.- Author:
- Jesse Sightler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.windup.testutil.html.TestReportUtil
TestReportUtil.WindupHtmlUnitDriver
-
-
Field Summary
-
Fields inherited from class org.jboss.windup.testutil.html.TestReportUtil
driver
-
-
Constructor Summary
Constructors Constructor Description TestJavaApplicationOverviewUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckApplicationMessage(String message)voidcheckAppSectionEffort(String appSection, int expectedEffort)voidcheckFilePath(String appSection, String filePath)Checks if the given App section, filepath, and tag can be found in the report.voidcheckFilePathAndIssues(String appSection, String filePath, String text)Checks if the given App section, filepath, and tag can be found in the report.voidcheckFilePathAndTag(String appSection, String filePath, String tag)Checks if the given App section, filepath, and tag can be found in the report.voidcheckFilePathEffort(String appSection, String filePath, int effort)Checks if the given App section, filepath, and effort level can be seen in the report.voidcheckMainEffort(int expectedEffort)voidloadPage(Path filePath)Loads the given page w/ theWebDriver-
Methods inherited from class org.jboss.windup.testutil.html.TestReportUtil
getDriver
-
-
-
-
Method Detail
-
loadPage
public void loadPage(Path filePath)
Loads the given page w/ theWebDriver- Overrides:
loadPagein classTestChromeDriverReportUtil
-
checkApplicationMessage
public void checkApplicationMessage(String message)
-
checkMainEffort
public void checkMainEffort(int expectedEffort)
-
checkAppSectionEffort
public void checkAppSectionEffort(String appSection, int expectedEffort)
-
checkFilePathEffort
public void checkFilePathEffort(String appSection, String filePath, int effort)
Checks if the given App section, filepath, and effort level can be seen in the report.For example checkFilePathEffort("src_example", "src/main/resources/test.properties", 13) will ensure that an application called "src_example" is in the report, with a line referencing "src/main/resources/test.properties" and that this line contains the effort level 13).
-
checkFilePathAndIssues
public void checkFilePathAndIssues(String appSection, String filePath, String text)
Checks if the given App section, filepath, and tag can be found in the report.For example calling checkFilePathAndIssues("src_example", "src/main/resources/test.properties", "Web Servlet again") will ensure that an application called "src_example" is in the report, with a line referencing "src/main/resources/test.properties" and that this line contains text in the issues section saying "Web Servlet again").
-
checkFilePathAndTag
public void checkFilePathAndTag(String appSection, String filePath, String tag)
Checks if the given App section, filepath, and tag can be found in the report.For example calling checkFilePathAndTag("src_example", "src/main/resources/test.properties", "Properties") will ensure that an application called "src_example" is in the report, with a line referencing "src/main/resources/test.properties" and that this file is tagged "Properties"
-
checkFilePath
public void checkFilePath(String appSection, String filePath)
Checks if the given App section, filepath, and tag can be found in the report.For example calling checkFilePathAndTag("src_example", "src/main/resources/test.properties") will ensure that an application called "src_example" is in the report, with a line referencing "src/main/resources/test.properties"
-
-