public class MonoCallableTest
extends java.lang.Object
构造器和说明 |
---|
MonoCallableTest() |
限定符和类型 | 方法和说明 |
---|---|
void |
callableCancelledBeforeRun() |
void |
callableReturnsNull()
回调允许返回 null
|
void |
callableReturnsNullBackpressure() |
void |
callableReturnsNullShortcircuitsBackpressureSyncFusion() |
void |
callableSubscribeToCompleteMeasurement() |
void |
callableThrows()
回调异常会向下传递
|
void |
delegateCall()
MonoCallable 异步回调测试,MonoCallable 在
Mono.fromCallable(Callable) 被使用 |
void |
delegateCallError()
测试
Mono.fromCallable(Callable) 抛出异常 |
void |
delegateCallNull()
测试
Mono.fromCallable(Callable) 返回Null,相当于 Mono.empty() |
void |
normal()
正常的回调
|
void |
normalBackpressured() |
void |
nullCallable()
回调为空则会抛出空指针异常
|
void |
onMonoEmptyCallableOnBlock()
返回空的回调 block() 测试
|
void |
onMonoErrorCallableOnBlock()
回调里抛出异常 block() 也会抛出异常
|
void |
onMonoSuccessCallableOnBlock()
成功的回到 block() 测试
|
void |
scanOperator() |
void |
test() |
@Test public void test()
@Test public void nullCallable()
@Test public void callableReturnsNull()
@Test public void callableReturnsNullBackpressure()
@Test public void callableReturnsNullShortcircuitsBackpressureSyncFusion()
@Test public void normal()
@Test public void normalBackpressured()
@Test public void callableThrows()
@Test public void onMonoSuccessCallableOnBlock()
@Test public void onMonoEmptyCallableOnBlock()
@Test public void onMonoErrorCallableOnBlock()
@Test public void delegateCall() throws java.lang.Exception
Mono.fromCallable(Callable)
被使用java.lang.Exception
@Test public void delegateCallError()
Mono.fromCallable(Callable)
抛出异常@Test public void delegateCallNull() throws java.lang.Exception
Mono.fromCallable(Callable)
返回Null,相当于 Mono.empty()
java.lang.Exception
@Test public void callableCancelledBeforeRun()
@Test public void callableSubscribeToCompleteMeasurement()
@Test public void scanOperator()