author | prappo |
Tue, 02 Jul 2019 13:25:51 +0100 | |
changeset 55546 | 3ae57bbf9585 |
permissions | -rw-r--r-- |
55546
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
1 |
/* |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
2 |
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
4 |
* |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
8 |
* |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
13 |
* accompanied this code). |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
14 |
* |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
18 |
* |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
21 |
* questions. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
22 |
*/ |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
23 |
|
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
24 |
package org.reactivestreams.tck.flow.support; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
25 |
|
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
26 |
/** |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
27 |
* Internal TCK use only. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
28 |
* Add / Remove tests for PublisherVerificaSubscriberWhiteboxVerification here to make sure that they arre added/removed in the other places. |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
29 |
*/ |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
30 |
public interface SubscriberWhiteboxVerificationRules { |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
31 |
void required_exerciseWhiteboxHappyPath() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
32 |
void required_spec201_mustSignalDemandViaSubscriptionRequest() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
33 |
void untested_spec202_shouldAsynchronouslyDispatch() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
34 |
void required_spec203_mustNotCallMethodsOnSubscriptionOrPublisherInOnComplete() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
35 |
void required_spec203_mustNotCallMethodsOnSubscriptionOrPublisherInOnError() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
36 |
void untested_spec204_mustConsiderTheSubscriptionAsCancelledInAfterRecievingOnCompleteOrOnError() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
37 |
void required_spec205_mustCallSubscriptionCancelIfItAlreadyHasAnSubscriptionAndReceivesAnotherOnSubscribeSignal() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
38 |
void untested_spec206_mustCallSubscriptionCancelIfItIsNoLongerValid() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
39 |
void untested_spec207_mustEnsureAllCallsOnItsSubscriptionTakePlaceFromTheSameThreadOrTakeCareOfSynchronization() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
40 |
void required_spec208_mustBePreparedToReceiveOnNextSignalsAfterHavingCalledSubscriptionCancel() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
41 |
void required_spec209_mustBePreparedToReceiveAnOnCompleteSignalWithPrecedingRequestCall() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
42 |
void required_spec209_mustBePreparedToReceiveAnOnCompleteSignalWithoutPrecedingRequestCall() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
43 |
void required_spec210_mustBePreparedToReceiveAnOnErrorSignalWithPrecedingRequestCall() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
44 |
void required_spec210_mustBePreparedToReceiveAnOnErrorSignalWithoutPrecedingRequestCall() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
45 |
void untested_spec211_mustMakeSureThatAllCallsOnItsMethodsHappenBeforeTheProcessingOfTheRespectiveEvents() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
46 |
void untested_spec212_mustNotCallOnSubscribeMoreThanOnceBasedOnObjectEquality_specViolation() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
47 |
void untested_spec213_failingOnSignalInvocation() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
48 |
void required_spec213_onSubscribe_mustThrowNullPointerExceptionWhenParametersAreNull() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
49 |
void required_spec213_onNext_mustThrowNullPointerExceptionWhenParametersAreNull() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
50 |
void required_spec213_onError_mustThrowNullPointerExceptionWhenParametersAreNull() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
51 |
void untested_spec301_mustNotBeCalledOutsideSubscriberContext() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
52 |
void required_spec308_requestMustRegisterGivenNumberElementsToBeProduced() throws Throwable; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
53 |
void untested_spec310_requestMaySynchronouslyCallOnNextOnSubscriber() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
54 |
void untested_spec311_requestMaySynchronouslyCallOnCompleteOrOnError() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
55 |
void untested_spec314_cancelMayCauseThePublisherToShutdownIfNoOtherSubscriptionExists() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
56 |
void untested_spec315_cancelMustNotThrowExceptionAndMustSignalOnError() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
57 |
void untested_spec316_requestMustNotThrowExceptionAndMustOnErrorTheSubscriber() throws Exception; |
3ae57bbf9585
8226602: Test convenience reactive primitives from java.net.http with RS TCK
prappo
parents:
diff
changeset
|
58 |
} |