public class ClusterMatchers extends Object
Constructor and Description |
---|
ClusterMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<JiraCluster> |
allNodes(org.hamcrest.Matcher<JiraCluster.Node> nodeMatcher) |
static org.hamcrest.Matcher<Collection<? extends JiraCluster.Node>> |
everyNode(org.hamcrest.Matcher<JiraCluster.Node> nodeMatcher)
The preferred matcher for asserting over nodes in a cluster is
allNodes(Matcher) , but
this API is sometimes needed when a test asserts on a subset of nodes (i.e. |
public static org.hamcrest.Matcher<JiraCluster> allNodes(org.hamcrest.Matcher<JiraCluster.Node> nodeMatcher)
public static org.hamcrest.Matcher<Collection<? extends JiraCluster.Node>> everyNode(org.hamcrest.Matcher<JiraCluster.Node> nodeMatcher)
allNodes(Matcher)
, but
this API is sometimes needed when a test asserts on a subset of nodes (i.e. make an assertion on 2 of 3 nodes
after an unclean shutdown).Copyright © 2002-2022 Atlassian. All Rights Reserved.