aboutsummaryrefslogtreecommitdiffstats
path: root/reactive/kotlinx-coroutines-reactive/test/RangePublisherBufferedTest.kt
blob: b710c590649f3655209ea8dd633e31e40279d1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package kotlinx.coroutines.reactive

import kotlinx.coroutines.flow.*
import org.junit.*
import org.reactivestreams.*
import org.reactivestreams.example.unicast.*
import org.reactivestreams.tck.*

class RangePublisherBufferedTest :
    PublisherVerification<Int>(TestEnvironment(50, 50))
{
    override fun createPublisher(elements: Long): Publisher<Int> {
        return RangePublisher(1, elements.toInt()).asFlow().buffer(2).asPublisher()
    }

    override fun createFailedPublisher(): Publisher<Int>? {
        return null
    }

    @Ignore
    override fun required_spec309_requestZeroMustSignalIllegalArgumentException() {
    }

    @Ignore
    override fun required_spec309_requestNegativeNumberMustSignalIllegalArgumentException() {
    }
}