Class Matchers
java.lang.Object
org.palladiosimulator.simulizar.test.commons.hamcrest.Matchers
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Details
-
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)
-