mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 14:04:30 +08:00
Make hasText public to validate corner cases
This commit is contained in:
parent
e063405b92
commit
209f092168
@ -394,7 +394,13 @@ public class PomAssert {
|
||||
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);
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user