T
- the input type of the Collector
.A
- the accumulator type of the Collector
.R
- the return type of the Collector
.public interface CollectorTesterDSL2<T,A,R>
Collector
tester
.Modifier and Type | Method and Description |
---|---|
CollectorTesterDSL1<T,A,R> |
expecting(Matcher<? super R> matching)
Validate that the result of the
Stream.collect(java.util.stream.Collector) with
the Collector under test and the
current sample return a value matching this matcher. |
CollectorTesterDSL1<T,A,R> |
expecting(R value)
Validate that the result of the
Stream.collect(java.util.stream.Collector) with
the Collector under test and the
current sample return a value that is the received one. |
CollectorTesterDSL1<T,A,R> |
expectingNull()
Validate that the result of the
Stream.collect(java.util.stream.Collector) with
the Collector under test and the
current sample return a value that is null. |
CollectorTesterDSL1<T,A,R> expecting(Matcher<? super R> matching)
Stream.collect(java.util.stream.Collector)
with
the Collector
under test and the
current sample return a value matching this matcher.matching
- the matcher.the next step of the DSL
CollectorTesterDSL1<T,A,R> expecting(R value)
Stream.collect(java.util.stream.Collector)
with
the Collector
under test and the
current sample return a value that is the received one.value
- the exepcted value.the next step of the DSL
CollectorTesterDSL1<T,A,R> expectingNull()
Stream.collect(java.util.stream.Collector)
with
the Collector
under test and the
current sample return a value that is null.the next step of the DSL
Copyright © 2015 Powerunit. All rights reserved.