Class Matchers
- java.lang.Object
-
- org.palladiosimulator.simulizar.test.commons.hamcrest.Matchers
-
public final class Matchers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Q extends javax.measure.quantity.Quantity>
org.hamcrest.Matcher<javax.measure.Measure<?,Q>>asDoubleIn(javax.measure.unit.Unit<Q> unit, org.hamcrest.Matcher<? super Double> contentMatcher)
static <T> org.hamcrest.Matcher<T>
firstMeasurementMatchesDifferentlyThanTheRest(org.hamcrest.Matcher<T> firstValue, org.hamcrest.Matcher<T> remainderValue)
static <T> org.hamcrest.Matcher<Iterable<? extends T>>
match(BucketMatcher<? super T>... bucketMatchers)
static <T> BucketMatcher<T>
withProbability(org.hamcrest.Matcher<Double> probabilityMatcher, org.hamcrest.Matcher<? super T> bucketMatcher)
-
-
-
Method Detail
-
firstMeasurementMatchesDifferentlyThanTheRest
public static <T> org.hamcrest.Matcher<T> firstMeasurementMatchesDifferentlyThanTheRest(org.hamcrest.Matcher<T> firstValue, org.hamcrest.Matcher<T> remainderValue)
-
asDoubleIn
public static <Q extends javax.measure.quantity.Quantity> org.hamcrest.Matcher<javax.measure.Measure<?,Q>> asDoubleIn(javax.measure.unit.Unit<Q> unit, org.hamcrest.Matcher<? super Double> contentMatcher)
-
withProbability
public static <T> BucketMatcher<T> withProbability(org.hamcrest.Matcher<Double> probabilityMatcher, org.hamcrest.Matcher<? super T> bucketMatcher)
-
match
@SafeVarargs public static <T> org.hamcrest.Matcher<Iterable<? extends T>> match(BucketMatcher<? super T>... bucketMatchers)
-
-