Vsevolod Tolstopyatov | 502610e | 2019-06-26 12:09:32 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
| 4 | |
SokolovaMaria | 1dcfd97 | 2019-08-09 17:35:14 +0300 | [diff] [blame^] | 5 | package kotlinx.coroutines.reactive |
Vsevolod Tolstopyatov | 502610e | 2019-06-26 12:09:32 +0300 | [diff] [blame] | 6 | |
| 7 | import kotlinx.coroutines.flow.* |
| 8 | import org.junit.* |
| 9 | import org.reactivestreams.* |
| 10 | import org.reactivestreams.example.unicast.* |
| 11 | import org.reactivestreams.tck.* |
| 12 | |
| 13 | class RangePublisherBufferedTest : |
| 14 | PublisherVerification<Int>(TestEnvironment(50, 50)) |
| 15 | { |
| 16 | override fun createPublisher(elements: Long): Publisher<Int> { |
| 17 | return RangePublisher(1, elements.toInt()).asFlow().buffer(2).asPublisher() |
| 18 | } |
| 19 | |
| 20 | override fun createFailedPublisher(): Publisher<Int>? { |
| 21 | return null |
| 22 | } |
| 23 | |
| 24 | @Ignore |
| 25 | override fun required_spec309_requestZeroMustSignalIllegalArgumentException() { |
| 26 | } |
| 27 | |
| 28 | @Ignore |
| 29 | override fun required_spec309_requestNegativeNumberMustSignalIllegalArgumentException() { |
| 30 | } |
| 31 | } |