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.
|
matchesSafely
describeMismatch, describeMismatchSafely, matches
public 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 DocumentMatcher
Exception
public void describeTo(org.hamcrest.Description description)
Copyright © 2002-2022 Atlassian. All Rights Reserved.