Created
March 31, 2015 15:30
-
-
Save ktoso/e91f71f7865e397c2d64 to your computer and use it in GitHub Desktop.
tck test for 1 element publisher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Copyright (C) 2014 Typesafe Inc. <http://www.typesafe.com> | |
| */ | |
| package akka.stream.tck | |
| import akka.stream.impl.MaterializedValuePublisher | |
| import org.reactivestreams.Publisher | |
| class MaterializedValuePublisherTest extends AkkaPublisherVerification[Any] { | |
| override def createPublisher(elements: Long): Publisher[Any] = { | |
| val pub = new MaterializedValuePublisher() | |
| // it contains a value already | |
| pub.setValue("Hello") | |
| pub | |
| } | |
| override def maxElementsFromPublisher = 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment