public class Nested extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Nested.Match<T,M extends org.hamcrest.Matcher<?>> |
static class |
Nested.Mismatch<T,M extends org.hamcrest.Matcher<?>> |
static class |
Nested.Result<T,M extends org.hamcrest.Matcher<?>> |
| Constructor and Description |
|---|
Nested() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<T> |
collectDescriptions(Iterable<T> data,
org.hamcrest.Description target,
String sep) |
static <T> Iterable<T> |
collectDescriptions(Iterable<T> data,
org.hamcrest.Description target,
String sep,
String lastSep,
String singleSep) |
static void |
describeTo(boolean paren,
org.hamcrest.SelfDescribing sd,
org.hamcrest.Description d) |
static void |
describeTo(boolean paren,
org.hamcrest.SelfDescribing sd,
org.hamcrest.Description d,
String message) |
static void |
describeTo(PrecedencedSelfDescribing self,
org.hamcrest.SelfDescribing nested,
org.hamcrest.Description d)
Appends description of
s to d,
enclosed in parentheses if necessary. |
static void |
describeTo(PrecedencedSelfDescribing self,
org.hamcrest.SelfDescribing nested,
org.hamcrest.Description d,
String message)
Appends description of
s to d,
enclosed in parentheses if necessary. |
static void |
joinDescriptions(Collection<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description description,
String sep) |
static void |
joinDescriptions(Collection<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description description,
String sep,
String lastSep,
String singleSep) |
static void |
joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description description,
String sep) |
static void |
joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description description,
String sep,
String lastSep,
String singleSep) |
static PrecedencedSelfDescribing |
joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
String sep) |
static PrecedencedSelfDescribing |
joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
String sep,
String lastSep,
String singleSep) |
static void |
joinExpectedDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep) |
static void |
joinExpectedDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep,
String lastSep,
String singleSep) |
static void |
joinMatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep) |
static void |
joinMatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep,
String lastSep,
String singleSep) |
static void |
joinMismatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep) |
static void |
joinMismatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep,
String lastSep,
String singleSep) |
static void |
listDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description d) |
static boolean |
matches(PrecedencedSelfDescribing self,
org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch)
Invokes
QuickDiagnose.matches(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description)
for m,
enclosed in parentheses if necessary. |
static boolean |
matches(PrecedencedSelfDescribing self,
org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch,
String message)
Invokes
QuickDiagnose.matches(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description, java.lang.String)
for m,
enclosed in parentheses if necessary. |
static int |
pAtomicUnaryOr(int p,
int count)
|
static int |
precedenceOf(Object o)
If
o is a PrecedencedSelfDescribing,
calls PrecedencedSelfDescribing.getDescriptionPrecedence(),
otherwise returns PrecedencedSelfDescribing.P_ATOMIC. |
static boolean |
useParentheses(int pSelf,
int pNested)
Compares own precedence against nested and return
|
public static int precedenceOf(Object o)
o is a PrecedencedSelfDescribing,
calls PrecedencedSelfDescribing.getDescriptionPrecedence(),
otherwise returns PrecedencedSelfDescribing.P_ATOMIC.o - public static int pAtomicUnaryOr(int p,
int count)
p - count - public static void describeTo(PrecedencedSelfDescribing self, org.hamcrest.SelfDescribing nested, org.hamcrest.Description d)
s to d,
enclosed in parentheses if necessary.self - d - nested - public static void describeTo(PrecedencedSelfDescribing self, org.hamcrest.SelfDescribing nested, org.hamcrest.Description d, String message)
s to d,
enclosed in parentheses if necessary.self - nested - d - message - public static boolean matches(PrecedencedSelfDescribing self, org.hamcrest.Matcher<?> matcher, Object item, org.hamcrest.Description mismatch)
QuickDiagnose.matches(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description)
for m,
enclosed in parentheses if necessary.self - matcher - item - mismatch - public static boolean matches(PrecedencedSelfDescribing self, org.hamcrest.Matcher<?> matcher, Object item, org.hamcrest.Description mismatch, String message)
QuickDiagnose.matches(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description, java.lang.String)
for m,
enclosed in parentheses if necessary.self - matcher - item - mismatch - message - public static boolean useParentheses(int pSelf,
int pNested)
pSelf - pNested - public static void describeTo(boolean paren,
org.hamcrest.SelfDescribing sd,
org.hamcrest.Description d)
public static void describeTo(boolean paren,
org.hamcrest.SelfDescribing sd,
org.hamcrest.Description d,
String message)
public static void listDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description d)
public static void joinMatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep)
public static void joinMatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep,
String lastSep,
String singleSep)
public static void joinExpectedDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep)
public static void joinExpectedDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep,
String lastSep,
String singleSep)
public static void joinMismatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep)
public static void joinMismatchDescriptions(int myPrecedence,
Iterable<? extends MatchResult<?>> nested,
org.hamcrest.Description d,
String sep,
String lastSep,
String singleSep)
public static void joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description description,
String sep)
public static void joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
org.hamcrest.Description description,
String sep,
String lastSep,
String singleSep)
public static void joinDescriptions(Collection<? extends org.hamcrest.SelfDescribing> nested, org.hamcrest.Description description, String sep)
public static void joinDescriptions(Collection<? extends org.hamcrest.SelfDescribing> nested, org.hamcrest.Description description, String sep, String lastSep, String singleSep)
public static PrecedencedSelfDescribing joinDescriptions(int myPrecedence, Iterable<? extends org.hamcrest.SelfDescribing> nested, String sep)
public static PrecedencedSelfDescribing joinDescriptions(int myPrecedence, Iterable<? extends org.hamcrest.SelfDescribing> nested, String sep, String lastSep, String singleSep)
public static <T> Iterable<T> collectDescriptions(Iterable<T> data, org.hamcrest.Description target, String sep, String lastSep, String singleSep)
Copyright © 2015. All rights reserved.