From f88d3b62d14226296fe389fe1bc9b81b4469e5e3 Mon Sep 17 00:00:00 2001 From: Luca Venturi Date: Sun, 13 Oct 2019 21:04:16 +0200 Subject: [PATCH] 467: fixes method names in white box and black box testing of Flow.Subscriber. The examples do not compile. Instead of createSubscriber(), the classes need to implement createFlowSubscriber. There are still some issues left. --- CopyrightWaivers.txt | 2 +- tck-flow/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CopyrightWaivers.txt b/CopyrightWaivers.txt index 1030e76d..4581cac4 100644 --- a/CopyrightWaivers.txt +++ b/CopyrightWaivers.txt @@ -45,4 +45,4 @@ jroper | James Roper, james@jazzy.id.au, Lightbend Inc. olegdokuka | Oleh Dokuka, shadowgun@.i.ua, Netifi Inc. Scottmitch | Scott Mitchell, scott_mitchell@apple.com, Apple Inc. retronym | Jason Zaugg, jzaugg@gmail.com, Lightbend Inc. - +lucav76 | Luca Venturi, lventuri76@gmail.com diff --git a/tck-flow/README.md b/tck-flow/README.md index a007541d..63426f7f 100644 --- a/tck-flow/README.md +++ b/tck-flow/README.md @@ -327,7 +327,7 @@ public class MyFlowSubscriberWhiteboxVerificationTest extends FlowSubscriberWhit // class SyncSubscriber extends Flow.Subscriber { /* ... */ } @Override - public Flow.Subscriber createSubscriber(final WhiteboxSubscriberProbe probe) { + public Flow.Subscriber createFlowSubscriber(final WhiteboxSubscriberProbe probe) { // in order to test the SyncSubscriber we must instrument it by extending it, // and calling the WhiteboxSubscriberProbe in all of the Subscribers methods: return new SyncSubscriber() { @@ -402,7 +402,7 @@ public class MyFlowSubscriberBlackboxVerificationTest extends FlowSubscriberBlac } @Override - public Flow.Subscriber createSubscriber() { + public Flow.Subscriber createFlowSubscriber() { return new MySubscriber(); }