public class BuildNumberMatcher extends DocumentMatcher
| Constructor and Description |
|---|
BuildNumberMatcher(int expectedBuildNumber)
Creates a new BuildNumberMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static BuildNumberMatcher |
hasBuildNumber(int buildNumber)
Does the backup file have the given build number.
|
protected boolean |
matchesDocument(Document doc) |
protected int |
readBuildNumberFrom(Document doc)
Reads the build number from a JIRA XML backup using DOM + XPath.
|
matchesSafelydescribeMismatch, describeMismatchSafely, matchespublic BuildNumberMatcher(int expectedBuildNumber)
expectedBuildNumber - a build numberpublic static BuildNumberMatcher hasBuildNumber(int buildNumber)
buildNumber - a build numberprotected boolean matchesDocument(@Nullable Document doc) throws Exception
matchesDocument in class DocumentMatcherExceptionpublic void describeTo(org.hamcrest.Description description)
Copyright © 2002-2019 Atlassian. All Rights Reserved.