blob: b710c590649f3655209ea8dd633e31e40279d1e3 [file] [log] [blame]
Vsevolod Tolstopyatov502610e2019-06-26 12:09:32 +03001/*
2 * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
SokolovaMaria1dcfd972019-08-09 17:35:14 +03005package kotlinx.coroutines.reactive
Vsevolod Tolstopyatov502610e2019-06-26 12:09:32 +03006
7import kotlinx.coroutines.flow.*
8import org.junit.*
9import org.reactivestreams.*
10import org.reactivestreams.example.unicast.*
11import org.reactivestreams.tck.*
12
13class 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}