public class io.smallrye.mutiny.helpers.test.AssertSubscriber extends java.lang.Object implements io.smallrye.mutiny.subscription.MultiSubscriber, io.smallrye.mutiny.subscription.ContextSupport
{
public static java.time.Duration DEFAULT_TIMEOUT;
public static final java.lang.String DEFAULT_MUTINY_AWAIT_TIMEOUT;
private final java.util.concurrent.CountDownLatch terminal;
private final java.util.concurrent.CountDownLatch subscribed;
private volatile java.util.concurrent.Flow$Subscription subscription;
private final java.util.concurrent.atomic.AtomicLong pendingRequests;
private final java.util.List items;
private volatile java.lang.Throwable failure;
private int numberOfSubscription;
private final boolean upfrontCancellation;
private final io.smallrye.mutiny.Context context;
private volatile io.smallrye.mutiny.helpers.test.AssertSubscriber$State state;
private final java.util.List eventListeners;
public void <init>(io.smallrye.mutiny.Context, long, boolean)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v;
long v;
io.smallrye.mutiny.Context v;
java.util.concurrent.CountDownLatch v, v;
java.util.concurrent.atomic.AtomicLong v, v;
boolean v;
java.util.concurrent.CopyOnWriteArrayList v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: io.smallrye.mutiny.Context;
v := @parameter: long;
v := @parameter: boolean;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new java.util.concurrent.CountDownLatch;
specialinvoke v.<java.util.concurrent.CountDownLatch: void <init>(int)>(1);
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch terminal> = v;
v = new java.util.concurrent.CountDownLatch;
specialinvoke v.<java.util.concurrent.CountDownLatch: void <init>(int)>(1);
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch subscribed> = v;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.Flow$Subscription subscription> = null;
v = new java.util.concurrent.atomic.AtomicLong;
specialinvoke v.<java.util.concurrent.atomic.AtomicLong: void <init>()>();
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.atomic.AtomicLong pendingRequests> = v;
v = new java.util.concurrent.CopyOnWriteArrayList;
specialinvoke v.<java.util.concurrent.CopyOnWriteArrayList: void <init>()>();
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items> = v;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable failure> = null;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: int numberOfSubscription> = 0;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State INIT>;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state> = v;
v = new java.util.concurrent.CopyOnWriteArrayList;
specialinvoke v.<java.util.concurrent.CopyOnWriteArrayList: void <init>()>();
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners> = v;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.Context context> = v;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.atomic.AtomicLong pendingRequests>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicLong: void set(long)>(v);
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean upfrontCancellation> = v;
return;
}
public void <init>(long, boolean)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
long v;
io.smallrye.mutiny.Context v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: long;
v := @parameter: boolean;
v = staticinvoke <io.smallrye.mutiny.Context: io.smallrye.mutiny.Context empty()>();
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(io.smallrye.mutiny.Context,long,boolean)>(v, v, v);
return;
}
public void <init>()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.Context v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = staticinvoke <io.smallrye.mutiny.Context: io.smallrye.mutiny.Context empty()>();
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(io.smallrye.mutiny.Context,long,boolean)>(v, 0L, 0);
return;
}
public void <init>(long)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
long v;
io.smallrye.mutiny.Context v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: long;
v = staticinvoke <io.smallrye.mutiny.Context: io.smallrye.mutiny.Context empty()>();
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(io.smallrye.mutiny.Context,long,boolean)>(v, v, 0);
return;
}
public static io.smallrye.mutiny.helpers.test.AssertSubscriber create()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(long)>(0L);
return v;
}
public static io.smallrye.mutiny.helpers.test.AssertSubscriber create(long)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
long v;
v := @parameter: long;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(long)>(v);
return v;
}
public static io.smallrye.mutiny.helpers.test.AssertSubscriber create(io.smallrye.mutiny.Context)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.Context v;
v := @parameter: io.smallrye.mutiny.Context;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(io.smallrye.mutiny.Context,long,boolean)>(v, 0L, 0);
return v;
}
public static io.smallrye.mutiny.helpers.test.AssertSubscriber create(io.smallrye.mutiny.Context, long)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
long v;
io.smallrye.mutiny.Context v;
v := @parameter: io.smallrye.mutiny.Context;
v := @parameter: long;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void <init>(io.smallrye.mutiny.Context,long,boolean)>(v, v, 0);
return v;
}
public io.smallrye.mutiny.Context context()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.Context v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.Context context>;
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertCompleted()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
java.util.List v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List getItems()>();
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldHaveCompleted(boolean,java.lang.Throwable,java.util.List)>(v, v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertFailedWith(java.lang.Class, java.lang.String)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
java.lang.Class v;
java.lang.String v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Class;
v := @parameter: java.lang.String;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldHaveFailed(boolean,java.lang.Throwable,java.lang.Class,java.lang.String)>(v, v, v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertFailedWith(java.lang.Class)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
java.lang.Class v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Class;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldHaveFailed(boolean,java.lang.Throwable,java.lang.Class,java.lang.String)>(v, v, v, null);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertHasNotReceivedAnyItem()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.List v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldHaveReceivedNoItems(java.util.List)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertSubscribed()
{
int v;
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: int numberOfSubscription>;
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldBeSubscribed(int)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertNotSubscribed()
{
int v;
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: int numberOfSubscription>;
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldNotBeSubscribed(int)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertTerminated()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldBeTerminated(boolean,java.lang.Throwable)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertNotTerminated()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldNotBeTerminated(boolean,java.lang.Throwable)>(v, v);
return v;
}
public final transient io.smallrye.mutiny.helpers.test.AssertSubscriber assertItems(java.lang.Object[])
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.List v;
java.lang.Object[] v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Object[];
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldHaveReceivedExactly(java.util.List,java.lang.Object[])>(v, v);
return v;
}
public java.lang.Object getLastItem()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.List v, v, v;
int v, v;
java.lang.Object v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
return null;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = v - 1;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber assertLastItem(java.lang.Object)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Object v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Object;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Object getLastItem()>();
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldHaveReceived(java.lang.Object,java.lang.Object)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItem()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int)>(1);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItem(java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.time.Duration;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int,int,java.time.Duration)>(1, 1, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
int v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT>;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int,java.time.Duration)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int, int)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
int v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v := @parameter: int;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT>;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int,int,java.time.Duration)>(v, v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int, java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
int v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v := @parameter: java.time.Duration;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int,int,java.time.Duration)>(v, v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitNextItems(int, int, java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v, v;
java.lang.AssertionError v, v;
java.time.Duration v;
int v, v;
java.lang.String v;
boolean v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v := @parameter: int;
v := @parameter: java.time.Duration;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
if v != 0 goto label;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
if v == null goto label;
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
if v == 0 goto label;
v = new java.lang.AssertionError;
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>("Expecting a next items, but a completion event has already being received");
throw v;
label:
v = new java.lang.AssertionError;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Throwable)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expecting a next items, but a failure event has already being received: \u0001");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void awaitNextItemEvents(int,int,java.time.Duration)>(v, v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitItems(int)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
int v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT>;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitItems(int,java.time.Duration)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitItems(int, java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
java.lang.AssertionError v, v;
java.time.Duration v;
int v, v, v, v, v;
java.lang.String v, v;
boolean v, v;
java.util.List v, v, v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v := @parameter: java.time.Duration;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
if v <= v goto label;
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected the number of items to be \u, but it\'s already \u0001");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean isCancelled()>();
if v != 0 goto label;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
if v != 0 goto label;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
if v == null goto label;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
if v == v goto label;
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected the number of items to be \u, but received \u and we received a terminal event already");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
return v;
label:
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void awaitItemEvents(int,java.time.Duration)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitCompletion()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT>;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitCompletion(java.time.Duration)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitCompletion(java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v, v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v, v;
java.util.concurrent.TimeoutException v;
long v;
java.lang.AssertionError v, v;
java.util.concurrent.CountDownLatch v;
java.time.Duration v;
java.lang.String v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.time.Duration;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch terminal>;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void awaitEvent(java.util.concurrent.CountDownLatch,java.time.Duration)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.AssertionError;
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (long)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("No completion (or failure) event received in the last \u ms");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state>;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State COMPLETED>;
if v != v goto label;
return v;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable failure>;
if v == null goto label;
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable failure>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Throwable)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected a completion event but got a failure: \u0001");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
return v;
catch java.util.concurrent.TimeoutException from label to label with label;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.util.function.Consumer v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = staticinvoke <io.smallrye.mutiny.helpers.test.AssertSubscriber$lambda_awaitFailure_0__3123: java.util.function.Consumer bootstrap$()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure(java.util.function.Consumer)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure(java.util.function.Consumer)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.util.function.Consumer v;
java.time.Duration v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.util.function.Consumer;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT>;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure(java.util.function.Consumer,java.time.Duration)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure(java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.util.function.Consumer v;
java.time.Duration v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.time.Duration;
v = staticinvoke <io.smallrye.mutiny.helpers.test.AssertSubscriber$lambda_awaitFailure_1__3124: java.util.function.Consumer bootstrap$()>();
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure(java.util.function.Consumer,java.time.Duration)>(v, v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitFailure(java.util.function.Consumer, java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v, v;
java.util.concurrent.TimeoutException v;
long v;
java.lang.AssertionError v, v, v, v;
java.util.function.Consumer v;
java.util.concurrent.CountDownLatch v;
java.time.Duration v;
java.lang.String v, v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.util.function.Consumer;
v := @parameter: java.time.Duration;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch terminal>;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void awaitEvent(java.util.concurrent.CountDownLatch,java.time.Duration)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.AssertionError;
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (long)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("No completion (or failure) event received in the last \u ms");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state>;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State COMPLETED>;
if v != v goto label;
v = new java.lang.AssertionError;
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>("Expected a failure event but got a completion event.");
throw v;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable failure>;
interfaceinvoke v.<java.util.function.Consumer: void accept(java.lang.Object)>(v);
label:
return v;
label:
v := @caughtexception;
v = new java.lang.AssertionError;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.AssertionError)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Received a failure event, but that failure did not pass the validation: \u0001");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
catch java.util.concurrent.TimeoutException from label to label with label;
catch java.lang.AssertionError from label to label with label;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitSubscription()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v, v;
java.time.Duration v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT>;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber awaitSubscription(java.time.Duration)>(v);
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber awaitSubscription(java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.concurrent.CountDownLatch v;
java.time.Duration v;
java.util.concurrent.TimeoutException v;
long v;
java.lang.AssertionError v;
java.lang.String v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.time.Duration;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch subscribed>;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: void awaitEvent(java.util.concurrent.CountDownLatch,java.time.Duration)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.AssertionError;
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (long)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expecting a subscription event in the last \u ms, but did not get it");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
return v;
catch java.util.concurrent.TimeoutException from label to label with label;
}
private void awaitEvent(java.util.concurrent.CountDownLatch, java.time.Duration) throws java.util.concurrent.TimeoutException
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.concurrent.TimeoutException v;
long v, v;
java.util.concurrent.TimeUnit v;
java.util.concurrent.CountDownLatch v;
byte v;
java.lang.InterruptedException v;
java.lang.Thread v;
java.time.Duration v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.util.concurrent.CountDownLatch;
v := @parameter: java.time.Duration;
v = virtualinvoke v.<java.util.concurrent.CountDownLatch: long getCount()>();
v = v cmp 0L;
if v != 0 goto label;
return;
label:
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
v = virtualinvoke v.<java.util.concurrent.CountDownLatch: boolean await(long,java.util.concurrent.TimeUnit)>(v, v);
if v != 0 goto label;
v = new java.util.concurrent.TimeoutException;
specialinvoke v.<java.util.concurrent.TimeoutException: void <init>()>();
throw v;
label:
v := @caughtexception;
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
label:
return;
catch java.lang.InterruptedException from label to label with label;
}
private void awaitNextItemEvents(int, int, java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.concurrent.TimeoutException v;
java.lang.Thread v;
java.time.Duration v;
boolean v, v;
java.util.List v, v, v;
java.lang.Throwable v;
java.util.concurrent.CompletableFuture v;
long v, v;
java.lang.AssertionError v, v, v, v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$NextItemTask v;
int v, v, v, v, v, v, v;
java.lang.String v, v, v, v;
java.util.concurrent.ExecutionException v;
java.util.concurrent.TimeUnit v;
java.lang.InterruptedException v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v := @parameter: int;
v := @parameter: java.time.Duration;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber$NextItemTask;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$NextItemTask: void <init>(int,io.smallrye.mutiny.helpers.test.AssertSubscriber)>(v, v);
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$NextItemTask: java.util.concurrent.CompletableFuture future()>();
if v <= 0 goto label;
virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber request(long)>(v);
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
label:
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
virtualinvoke v.<java.util.concurrent.CompletableFuture: java.lang.Object get(long,java.util.concurrent.TimeUnit)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
goto label;
label:
v := @caughtexception;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = v - v;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean isCancelled()>();
if v == 0 goto label;
v = new java.lang.AssertionError;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items, but received a cancellation event while waiting. Only \u item(s) have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
if v == 0 goto label;
v = new java.lang.AssertionError;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items, but received a completion event while waiting. Only \u item(s) have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = new java.lang.AssertionError;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,java.lang.Throwable,int)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items, but received a failure event while waiting: \u. Only \u item(s) have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v := @caughtexception;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = v - v;
v = new java.lang.AssertionError;
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,long,int)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items in \u ms, but only received \u items.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
return;
catch java.lang.InterruptedException from label to label with label;
catch java.util.concurrent.ExecutionException from label to label with label;
catch java.util.concurrent.TimeoutException from label to label with label;
}
private void awaitItemEvents(int, java.time.Duration)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.concurrent.TimeoutException v;
java.lang.Thread v;
java.time.Duration v;
boolean v, v;
java.util.List v, v, v, v, v, v, v;
java.lang.Throwable v, v;
java.util.concurrent.CompletableFuture v;
long v, v;
java.lang.AssertionError v, v, v, v, v;
int v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$ItemTask v;
java.util.concurrent.ExecutionException v;
java.util.concurrent.TimeUnit v;
java.lang.InterruptedException v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: int;
v := @parameter: java.time.Duration;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber$ItemTask;
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$ItemTask: void <init>(int,long,io.smallrye.mutiny.helpers.test.AssertSubscriber)>(v, v, v);
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$ItemTask: java.util.concurrent.CompletableFuture future()>();
v = virtualinvoke v.<java.time.Duration: long toMillis()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
virtualinvoke v.<java.util.concurrent.CompletableFuture: java.lang.Object get(long,java.util.concurrent.TimeUnit)>(v, v);
label:
goto label;
label:
v := @caughtexception;
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
goto label;
label:
v := @caughtexception;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
if v != v goto label;
return;
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean isCancelled()>();
if v == 0 goto label;
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items, but received a cancellation event while waiting. Only \u items have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean hasCompleted()>();
if v == 0 goto label;
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items, but received a completion event while waiting. Only \u items have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
if v == null goto label;
v = new java.lang.AssertionError;
v = virtualinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable getFailure()>();
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,java.lang.Throwable,int)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items, but received a failure event while waiting: \u. Only \u items have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
virtualinvoke v.<java.util.concurrent.ExecutionException: void printStackTrace()>();
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items.  Only \u items have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v := @caughtexception;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
if v < v goto label;
return;
label:
v = new java.lang.AssertionError;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,int)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Expected \u items.  Only \u items have been received.");
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
return;
catch java.lang.InterruptedException from label to label with label;
catch java.util.concurrent.ExecutionException from label to label with label;
catch java.util.concurrent.TimeoutException from label to label with label;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber cancel()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.function.Consumer v;
java.util.List v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v;
int v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$Event v;
java.util.concurrent.Flow$Subscription v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: int numberOfSubscription>;
staticinvoke <io.smallrye.mutiny.helpers.test.AssertionHelper: void shouldBeSubscribed(int)>(v);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.Flow$Subscription subscription>;
interfaceinvoke v.<java.util.concurrent.Flow$Subscription: void cancel()>();
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State CANCELLED>;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state> = v;
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber$Event;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$Event: void <init>(java.lang.Object,java.lang.Throwable,boolean,boolean)>(null, null, 0, 1);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners>;
v = staticinvoke <io.smallrye.mutiny.helpers.test.AssertSubscriber$lambda_cancel_2__3125: java.util.function.Consumer bootstrap$(io.smallrye.mutiny.helpers.test.AssertSubscriber$Event)>(v);
interfaceinvoke v.<java.util.List: void forEach(java.util.function.Consumer)>(v);
return v;
}
public synchronized io.smallrye.mutiny.helpers.test.AssertSubscriber request(long)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.concurrent.atomic.AtomicLong v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v, v;
long v;
java.util.concurrent.Flow$Subscription v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: long;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.atomic.AtomicLong pendingRequests>;
staticinvoke <io.smallrye.mutiny.helpers.Subscriptions: long add(java.util.concurrent.atomic.AtomicLong,long)>(v, v);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state>;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State INIT>;
if v == v goto label;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.Flow$Subscription subscription>;
interfaceinvoke v.<java.util.concurrent.Flow$Subscription: void request(long)>(v);
label:
return v;
}
public synchronized void onSubscribe(java.util.concurrent.Flow$Subscription)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v, v;
long v;
java.util.concurrent.CountDownLatch v;
java.util.concurrent.atomic.AtomicLong v;
byte v;
int v, v;
boolean v;
java.util.concurrent.Flow$Subscription v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.util.concurrent.Flow$Subscription;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: int numberOfSubscription>;
v = v + 1;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: int numberOfSubscription> = v;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.Flow$Subscription subscription> = v;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State SUBSCRIBED>;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state> = v;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch subscribed>;
virtualinvoke v.<java.util.concurrent.CountDownLatch: void countDown()>();
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: boolean upfrontCancellation>;
if v == 0 goto label;
interfaceinvoke v.<java.util.concurrent.Flow$Subscription: void cancel()>();
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State CANCELLED>;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state> = v;
return;
label:
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.atomic.AtomicLong pendingRequests>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicLong: long get()>();
v = v cmp 0L;
if v <= 0 goto label;
interfaceinvoke v.<java.util.concurrent.Flow$Subscription: void request(long)>(v);
label:
return;
}
public synchronized void onItem(java.lang.Object)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.function.Consumer v;
java.util.concurrent.atomic.AtomicLong v;
java.util.List v, v;
java.lang.Object v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$Event v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Object;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber$Event;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$Event: void <init>(java.lang.Object,java.lang.Throwable,boolean,boolean)>(v, null, 0, 0);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners>;
v = staticinvoke <io.smallrye.mutiny.helpers.test.AssertSubscriber$lambda_onItem_3__3126: java.util.function.Consumer bootstrap$(io.smallrye.mutiny.helpers.test.AssertSubscriber$Event)>(v);
interfaceinvoke v.<java.util.List: void forEach(java.util.function.Consumer)>(v);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.atomic.AtomicLong pendingRequests>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicLong: long decrementAndGet()>();
return;
}
public void onFailure(java.lang.Throwable)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
java.util.function.Consumer v;
java.util.concurrent.CountDownLatch v;
java.util.List v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$Event v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Throwable;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State FAILED>;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state> = v;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable failure> = v;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch terminal>;
virtualinvoke v.<java.util.concurrent.CountDownLatch: void countDown()>();
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber$Event;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$Event: void <init>(java.lang.Object,java.lang.Throwable,boolean,boolean)>(null, v, 0, 0);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners>;
v = staticinvoke <io.smallrye.mutiny.helpers.test.AssertSubscriber$lambda_onFailure_4__3127: java.util.function.Consumer bootstrap$(io.smallrye.mutiny.helpers.test.AssertSubscriber$Event)>(v);
interfaceinvoke v.<java.util.List: void forEach(java.util.function.Consumer)>(v);
return;
}
public void onCompletion()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.function.Consumer v;
java.util.concurrent.CountDownLatch v;
java.util.List v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$Event v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State COMPLETED>;
v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state> = v;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.concurrent.CountDownLatch terminal>;
virtualinvoke v.<java.util.concurrent.CountDownLatch: void countDown()>();
v = new io.smallrye.mutiny.helpers.test.AssertSubscriber$Event;
specialinvoke v.<io.smallrye.mutiny.helpers.test.AssertSubscriber$Event: void <init>(java.lang.Object,java.lang.Throwable,boolean,boolean)>(null, null, 1, 0);
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners>;
v = staticinvoke <io.smallrye.mutiny.helpers.test.AssertSubscriber$lambda_onCompletion_5__3128: java.util.function.Consumer bootstrap$(io.smallrye.mutiny.helpers.test.AssertSubscriber$Event)>(v);
interfaceinvoke v.<java.util.List: void forEach(java.util.function.Consumer)>(v);
return;
}
public java.util.List getItems()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.List v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List items>;
return v;
}
public java.lang.Throwable getFailure()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.lang.Throwable failure>;
return v;
}
public io.smallrye.mutiny.helpers.test.AssertSubscriber run(java.lang.Runnable)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.lang.Throwable v;
java.lang.AssertionError v, v;
java.lang.Runnable v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: java.lang.Runnable;
label:
interfaceinvoke v.<java.lang.Runnable: void run()>();
label:
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
v = new java.lang.AssertionError;
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
return v;
catch java.lang.AssertionError from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public boolean isCancelled()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v, v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state>;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State CANCELLED>;
if v != v goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public boolean hasCompleted()
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$State v, v;
boolean v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: io.smallrye.mutiny.helpers.test.AssertSubscriber$State state>;
v = <io.smallrye.mutiny.helpers.test.AssertSubscriber$State: io.smallrye.mutiny.helpers.test.AssertSubscriber$State COMPLETED>;
if v != v goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
private void registerListener(io.smallrye.mutiny.helpers.test.AssertSubscriber$EventListener)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.List v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$EventListener v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: io.smallrye.mutiny.helpers.test.AssertSubscriber$EventListener;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners>;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
return;
}
private void unregisterListener(io.smallrye.mutiny.helpers.test.AssertSubscriber$EventListener)
{
io.smallrye.mutiny.helpers.test.AssertSubscriber v;
java.util.List v;
io.smallrye.mutiny.helpers.test.AssertSubscriber$EventListener v;
v := @this: io.smallrye.mutiny.helpers.test.AssertSubscriber;
v := @parameter: io.smallrye.mutiny.helpers.test.AssertSubscriber$EventListener;
v = v.<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.util.List eventListeners>;
interfaceinvoke v.<java.util.List: boolean remove(java.lang.Object)>(v);
return;
}
static void <clinit>()
{
java.time.Duration v;
java.util.Map v;
int v;
java.lang.Object v;
v = staticinvoke <java.lang.System: java.util.Map getenv()>();
v = interfaceinvoke v.<java.util.Map: java.lang.Object getOrDefault(java.lang.Object,java.lang.Object)>("DEFAULT_MUTINY_AWAIT_TIMEOUT", "10");
v = staticinvoke <java.lang.Integer: int parseInt(java.lang.String)>(v);
v = staticinvoke <java.time.Duration: java.time.Duration ofSeconds(long)>(v);
<io.smallrye.mutiny.helpers.test.AssertSubscriber: java.time.Duration DEFAULT_TIMEOUT> = v;
return;
}
}