Make hasText public to validate corner cases

This commit is contained in:
Stephane Nicoll 2019-05-31 11:09:52 +02:00
parent e063405b92
commit 209f092168

View File

@ -394,7 +394,13 @@ public class PomAssert {
return this; return this;
} }
private PomAssert hasText(String path, String value) { /**
* Assert {@code pom.xml} contains the specified value at the specified path.
* @param path the path to the element
* @param value the expected value of the element
* @return this
*/
public PomAssert hasText(String path, String value) {
assertThat(this.pom).textAtPath(path).isEqualTo(value); assertThat(this.pom).textAtPath(path).isEqualTo(value);
return this; return this;
} }