Class MatcherCondition<T>
- java.lang.Object
-
- org.assertj.core.api.Condition<T>
-
- jetbrains.buildServer.serverSide.matchers.MatcherCondition<T>
-
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<org.assertj.core.api.Condition<T>>
public class MatcherCondition<T> extends org.assertj.core.api.Condition<T>
-
-
Constructor Summary
Constructors Constructor Description MatcherCondition(org.hamcrest.TypeSafeMatcher<T> matcher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> MatcherCondition<T>
cond(org.hamcrest.TypeSafeMatcher<T> matcher)
Returns assertj condition created from harmcrest matcher.boolean
matches(T value)
-
-
-
Constructor Detail
-
MatcherCondition
public MatcherCondition(@NotNull org.hamcrest.TypeSafeMatcher<T> matcher)
-
-
Method Detail
-
cond
@NotNull public static <T> MatcherCondition<T> cond(@NotNull org.hamcrest.TypeSafeMatcher<T> matcher)
Returns assertj condition created from harmcrest matcher. The condition uses matcher.toString() as a description.- Type Parameters:
T
- type of checked value- Parameters:
matcher
- matcher to create condition from- Returns:
- see above
-
-