java.lang.Object
org.mule.maven.client.test.MavenTestUtils
Provide a set of utility methods to query data from the
pom.xml file of a test's project.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMavenProjectVersion(Supplier<File> pomFolderFinder) Returns the version of the project in thepom.xmlin the folder pointed bypomFolderFinder.static StringgetMavenProperty(String property, Supplier<File> pomFolderFinder) Returns the value of the property defined or inherited in thepom.xmlin the folder pointed bypomFolderFinder.mavenPomFinder(Class clazz) Finds the Maven's pom file corresponding to a given class that is part of a Maven project
-
Method Details
-
getMavenProperty
Returns the value of the property defined or inherited in thepom.xmlin the folder pointed bypomFolderFinder. -
getMavenProjectVersion
Returns the version of the project in thepom.xmlin the folder pointed bypomFolderFinder. -
mavenPomFinder
Finds the Maven's pom file corresponding to a given class that is part of a Maven project- Parameters:
clazz- class used to locate the pom for the Maven project that the class belongs to- Returns:
- a supplier that will provide the required file
-