public class io.dropwizard.testing.DropwizardTestSupport<C extends io.dropwizard.Configuration>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.testing.DropwizardTestSupport
super_class: java.lang.Object
{
protected final java.lang.Class<? extends io.dropwizard.Application<C>> applicationClass;
descriptor: Ljava/lang/Class;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;
protected final java.lang.String configPath;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
protected final java.util.Set<io.dropwizard.testing.ConfigOverride> configOverrides;
descriptor: Ljava/util/Set;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Set<Lio/dropwizard/testing/ConfigOverride;>;
protected final java.util.Optional<java.lang.String> customPropertyPrefix;
descriptor: Ljava/util/Optional;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Optional<Ljava/lang/String;>;
protected final java.util.function.Function<io.dropwizard.Application<C>, io.dropwizard.cli.Command> commandInstantiator;
descriptor: Ljava/util/function/Function;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/function/Function<Lio/dropwizard/Application<TC;>;Lio/dropwizard/cli/Command;>;
protected final boolean explicitConfig;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected C configuration;
descriptor: Lio/dropwizard/Configuration;
flags: (0x0004) ACC_PROTECTED
Signature: TC;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
protected io.dropwizard.Application<C> application;
descriptor: Lio/dropwizard/Application;
flags: (0x0004) ACC_PROTECTED
Signature: Lio/dropwizard/Application<TC;>;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
protected io.dropwizard.setup.Environment environment;
descriptor: Lio/dropwizard/setup/Environment;
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
protected org.eclipse.jetty.server.Server jettyServer;
descriptor: Lorg/eclipse/jetty/server/Server;
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
protected java.util.List<io.dropwizard.testing.DropwizardTestSupport$ServiceListener<C>> listeners;
descriptor: Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/List<Lio/dropwizard/testing/DropwizardTestSupport$ServiceListener<TC;>;>;
public void <init>(java.lang.Class<? extends io.dropwizard.Application<C>>, java.lang.String, io.dropwizard.testing.ConfigOverride[]);
descriptor: (Ljava/lang/Class;Ljava/lang/String;[Lio/dropwizard/testing/ConfigOverride;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
aload 3
invokespecial io.dropwizard.testing.DropwizardTestSupport.<init>:(Ljava/lang/Class;Ljava/lang/String;Ljava/util/Optional;[Lio/dropwizard/testing/ConfigOverride;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 2 1 applicationClass Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;
0 2 2 configPath Ljava/lang/String;
0 2 3 configOverrides [Lio/dropwizard/testing/ConfigOverride;
Signature: (Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;Ljava/lang/String;[Lio/dropwizard/testing/ConfigOverride;)V
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
javax.annotation.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
javax.annotation.Nullable()
2:
MethodParameters:
Name Flags
applicationClass
configPath
configOverrides
public void <init>(java.lang.Class<? extends io.dropwizard.Application<C>>, java.lang.String, java.util.Optional<java.lang.String>, io.dropwizard.testing.ConfigOverride[]);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/util/Optional;[Lio/dropwizard/testing/ConfigOverride;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/dropwizard/cli/ServerCommand.<init>(Lio/dropwizard/Application;)V (8)
(Lio/dropwizard/Application;)Lio/dropwizard/cli/Command;
aload 4
invokespecial io.dropwizard.testing.DropwizardTestSupport.<init>:(Ljava/lang/Class;Ljava/lang/String;Ljava/util/Optional;Ljava/util/function/Function;[Lio/dropwizard/testing/ConfigOverride;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 2 1 applicationClass Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;
0 2 2 configPath Ljava/lang/String;
0 2 3 customPropertyPrefix Ljava/util/Optional<Ljava/lang/String;>;
0 2 4 configOverrides [Lio/dropwizard/testing/ConfigOverride;
Signature: (Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;Ljava/lang/String;Ljava/util/Optional<Ljava/lang/String;>;[Lio/dropwizard/testing/ConfigOverride;)V
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
javax.annotation.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
javax.annotation.Nullable()
2:
3:
MethodParameters:
Name Flags
applicationClass
configPath
customPropertyPrefix
configOverrides
public void <init>(java.lang.Class<? extends io.dropwizard.Application<C>>, java.lang.String, java.util.Optional<java.lang.String>, java.util.function.Function<io.dropwizard.Application<C>, io.dropwizard.cli.Command>, io.dropwizard.testing.ConfigOverride[]);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/util/Optional;Ljava/util/function/Function;[Lio/dropwizard/testing/ConfigOverride;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield io.dropwizard.testing.DropwizardTestSupport.listeners:Ljava/util/List;
2: aload 0
aload 1
putfield io.dropwizard.testing.DropwizardTestSupport.applicationClass:Ljava/lang/Class;
3: aload 0
aload 2
putfield io.dropwizard.testing.DropwizardTestSupport.configPath:Ljava/lang/String;
4: aload 0
aload 5
iconst_0
anewarray io.dropwizard.testing.ConfigOverride
invokestatic com.google.common.base.MoreObjects.firstNonNull:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.testing.ConfigOverride[]
invokestatic com.google.common.collect.ImmutableSet.copyOf:([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
putfield io.dropwizard.testing.DropwizardTestSupport.configOverrides:Ljava/util/Set;
5: aload 0
aload 3
putfield io.dropwizard.testing.DropwizardTestSupport.customPropertyPrefix:Ljava/util/Optional;
6: aload 0
iconst_0
putfield io.dropwizard.testing.DropwizardTestSupport.explicitConfig:Z
7: aload 0
aload 4
putfield io.dropwizard.testing.DropwizardTestSupport.commandInstantiator:Ljava/util/function/Function;
8: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 9 1 applicationClass Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;
0 9 2 configPath Ljava/lang/String;
0 9 3 customPropertyPrefix Ljava/util/Optional<Ljava/lang/String;>;
0 9 4 commandInstantiator Ljava/util/function/Function<Lio/dropwizard/Application<TC;>;Lio/dropwizard/cli/Command;>;
0 9 5 configOverrides [Lio/dropwizard/testing/ConfigOverride;
Signature: (Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;Ljava/lang/String;Ljava/util/Optional<Ljava/lang/String;>;Ljava/util/function/Function<Lio/dropwizard/Application<TC;>;Lio/dropwizard/cli/Command;>;[Lio/dropwizard/testing/ConfigOverride;)V
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
javax.annotation.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
javax.annotation.Nullable()
2:
3:
4:
MethodParameters:
Name Flags
applicationClass
configPath
customPropertyPrefix
commandInstantiator
configOverrides
public void <init>(java.lang.Class<? extends io.dropwizard.Application<C>>, );
descriptor: (Ljava/lang/Class;Lio/dropwizard/Configuration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/dropwizard/cli/ServerCommand.<init>(Lio/dropwizard/Application;)V (8)
(Lio/dropwizard/Application;)Lio/dropwizard/cli/Command;
invokespecial io.dropwizard.testing.DropwizardTestSupport.<init>:(Ljava/lang/Class;Lio/dropwizard/Configuration;Ljava/util/function/Function;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 2 1 applicationClass Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;
0 2 2 configuration TC;
Signature: (Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;TC;)V
MethodParameters:
Name Flags
applicationClass
configuration
public void <init>(java.lang.Class<? extends io.dropwizard.Application<C>>, C, java.util.function.Function<io.dropwizard.Application<C>, io.dropwizard.cli.Command>);
descriptor: (Ljava/lang/Class;Lio/dropwizard/Configuration;Ljava/util/function/Function;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield io.dropwizard.testing.DropwizardTestSupport.listeners:Ljava/util/List;
2: aload 2
ifnonnull 4
3: new java.lang.IllegalArgumentException
dup
ldc "Can not pass null configuration for explicitly configured instance"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.dropwizard.testing.DropwizardTestSupport java.lang.Class io.dropwizard.Configuration java.util.function.Function
StackMap stack:
aload 0
aload 1
putfield io.dropwizard.testing.DropwizardTestSupport.applicationClass:Ljava/lang/Class;
5: aload 0
ldc ""
putfield io.dropwizard.testing.DropwizardTestSupport.configPath:Ljava/lang/String;
6: aload 0
invokestatic com.google.common.collect.ImmutableSet.of:()Lcom/google/common/collect/ImmutableSet;
putfield io.dropwizard.testing.DropwizardTestSupport.configOverrides:Ljava/util/Set;
7: aload 0
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
putfield io.dropwizard.testing.DropwizardTestSupport.customPropertyPrefix:Ljava/util/Optional;
8: aload 0
aload 2
putfield io.dropwizard.testing.DropwizardTestSupport.configuration:Lio/dropwizard/Configuration;
9: aload 0
iconst_1
putfield io.dropwizard.testing.DropwizardTestSupport.explicitConfig:Z
10: aload 0
aload 3
putfield io.dropwizard.testing.DropwizardTestSupport.commandInstantiator:Ljava/util/function/Function;
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 12 1 applicationClass Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;
0 12 2 configuration TC;
0 12 3 commandInstantiator Ljava/util/function/Function<Lio/dropwizard/Application<TC;>;Lio/dropwizard/cli/Command;>;
Signature: (Ljava/lang/Class<+Lio/dropwizard/Application<TC;>;>;TC;Ljava/util/function/Function<Lio/dropwizard/Application<TC;>;Lio/dropwizard/cli/Command;>;)V
MethodParameters:
Name Flags
applicationClass
configuration
commandInstantiator
public io.dropwizard.testing.DropwizardTestSupport<C> addListener(io.dropwizard.testing.DropwizardTestSupport$ServiceListener<C>);
descriptor: (Lio/dropwizard/testing/DropwizardTestSupport$ServiceListener;)Lio/dropwizard/testing/DropwizardTestSupport;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.listeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 2 1 listener Lio/dropwizard/testing/DropwizardTestSupport$ServiceListener<TC;>;
Signature: (Lio/dropwizard/testing/DropwizardTestSupport$ServiceListener<TC;>;)Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
MethodParameters:
Name Flags
listener
public io.dropwizard.testing.DropwizardTestSupport<C> manage(io.dropwizard.lifecycle.Managed);
descriptor: (Lio/dropwizard/lifecycle/Managed;)Lio/dropwizard/testing/DropwizardTestSupport;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new io.dropwizard.testing.DropwizardTestSupport$1
dup
aload 0
aload 1
invokespecial io.dropwizard.testing.DropwizardTestSupport$1.<init>:(Lio/dropwizard/testing/DropwizardTestSupport;Lio/dropwizard/lifecycle/Managed;)V
invokevirtual io.dropwizard.testing.DropwizardTestSupport.addListener:(Lio/dropwizard/testing/DropwizardTestSupport$ServiceListener;)Lio/dropwizard/testing/DropwizardTestSupport;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 1 1 managed Lio/dropwizard/lifecycle/Managed;
Signature: (Lio/dropwizard/lifecycle/Managed;)Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
MethodParameters:
Name Flags
managed final
public void before();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.applyConfigOverrides:()V
1: aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.startIfRequired:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
public void after();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.stopIfRequired:()V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 1
3: aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.resetConfigOverrides:()V
4: aload 1
athrow
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.resetConfigOverrides:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
Exception table:
from to target type
0 2 2 any
private void stopIfRequired();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
ifnull 16
1: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.listeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 6
StackMap locals: io.dropwizard.testing.DropwizardTestSupport top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.dropwizard.testing.DropwizardTestSupport$ServiceListener
astore 1
start local 1 3: aload 1
aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport$ServiceListener.onStop:(Lio/dropwizard/testing/DropwizardTestSupport;)V
4: goto 6
StackMap locals: io.dropwizard.testing.DropwizardTestSupport io.dropwizard.testing.DropwizardTestSupport$ServiceListener java.util.Iterator
StackMap stack: java.lang.Exception
5: pop
end local 1 6: StackMap locals: io.dropwizard.testing.DropwizardTestSupport top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
invokevirtual org.eclipse.jetty.server.Server.stop:()V
8: goto 15
StackMap locals: io.dropwizard.testing.DropwizardTestSupport
StackMap stack: java.lang.Exception
9: astore 1
start local 1 10: aload 1
invokestatic com.google.common.base.Throwables.throwIfUnchecked:(Ljava/lang/Throwable;)V
11: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 12: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
13: aload 0
aconst_null
putfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
14: aload 2
athrow
15: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
16: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.configuration:Lio/dropwizard/Configuration;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.Configuration
invokevirtual io.dropwizard.Configuration.getLoggingFactory:()Lio/dropwizard/logging/LoggingFactory;
invokeinterface io.dropwizard.logging.LoggingFactory.reset:()V
17: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
3 6 1 listener Lio/dropwizard/testing/DropwizardTestSupport$ServiceListener<TC;>;
10 12 1 e Ljava/lang/Exception;
Exception table:
from to target type
3 4 5 Class java.lang.Exception
7 8 9 Class java.lang.Exception
7 12 12 any
private void applyConfigOverrides();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.configOverrides:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: io.dropwizard.testing.DropwizardTestSupport top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.dropwizard.testing.ConfigOverride
astore 1
start local 1 2: aload 1
invokevirtual io.dropwizard.testing.ConfigOverride.addToSystemProperties:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
2 3 1 configOverride Lio/dropwizard/testing/ConfigOverride;
private void resetConfigOverrides();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.configOverrides:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: io.dropwizard.testing.DropwizardTestSupport top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.dropwizard.testing.ConfigOverride
astore 1
start local 1 2: aload 1
invokevirtual io.dropwizard.testing.ConfigOverride.removeFromSystemProperties:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
2 3 1 configOverride Lio/dropwizard/testing/ConfigOverride;
private void startIfRequired();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
ifnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.newApplication:()Lio/dropwizard/Application;
putfield io.dropwizard.testing.DropwizardTestSupport.application:Lio/dropwizard/Application;
3: new io.dropwizard.testing.DropwizardTestSupport$2
dup
aload 0
aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.getApplication:()Lio/dropwizard/Application;
invokespecial io.dropwizard.testing.DropwizardTestSupport$2.<init>:(Lio/dropwizard/testing/DropwizardTestSupport;Lio/dropwizard/Application;)V
astore 1
start local 1 4: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.explicitConfig:Z
ifeq 7
5: aload 1
aload 0
invokedynamic create(Lio/dropwizard/testing/DropwizardTestSupport;)Lio/dropwizard/configuration/ConfigurationFactoryFactory;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory;
io/dropwizard/testing/DropwizardTestSupport.lambda$2(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory; (7)
(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory;
invokevirtual io.dropwizard.setup.Bootstrap.setConfigurationFactoryFactory:(Lio/dropwizard/configuration/ConfigurationFactoryFactory;)V
6: goto 9
StackMap locals: io.dropwizard.setup.Bootstrap
StackMap stack:
7: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.customPropertyPrefix:Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifeq 9
8: aload 1
aload 0
invokedynamic create(Lio/dropwizard/testing/DropwizardTestSupport;)Lio/dropwizard/configuration/ConfigurationFactoryFactory;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory;
io/dropwizard/testing/DropwizardTestSupport.lambda$3(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory; (7)
(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory;
invokevirtual io.dropwizard.setup.Bootstrap.setConfigurationFactoryFactory:(Lio/dropwizard/configuration/ConfigurationFactoryFactory;)V
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.getApplication:()Lio/dropwizard/Application;
aload 1
invokevirtual io.dropwizard.Application.initialize:(Lio/dropwizard/setup/Bootstrap;)V
10: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.commandInstantiator:Ljava/util/function/Function;
aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.application:Lio/dropwizard/Application;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.cli.Command
astore 2
start local 2 11: invokestatic com.google.common.collect.ImmutableMap.builder:()Lcom/google/common/collect/ImmutableMap$Builder;
astore 3
start local 3 12: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.configPath:Ljava/lang/String;
invokestatic com.google.common.base.Strings.isNullOrEmpty:(Ljava/lang/String;)Z
ifne 14
13: aload 3
ldc "file"
aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.configPath:Ljava/lang/String;
invokevirtual com.google.common.collect.ImmutableMap$Builder.put:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap$Builder;
pop
14: StackMap locals: io.dropwizard.cli.Command com.google.common.collect.ImmutableMap$Builder
StackMap stack:
new net.sourceforge.argparse4j.inf.Namespace
dup
aload 3
invokevirtual com.google.common.collect.ImmutableMap$Builder.build:()Lcom/google/common/collect/ImmutableMap;
invokespecial net.sourceforge.argparse4j.inf.Namespace.<init>:(Ljava/util/Map;)V
astore 4
start local 4 15: aload 2
aload 1
aload 4
invokevirtual io.dropwizard.cli.Command.run:(Lio/dropwizard/setup/Bootstrap;Lnet/sourceforge/argparse4j/inf/Namespace;)V
end local 4 end local 3 end local 2 end local 1 16: goto 20
StackMap locals: io.dropwizard.testing.DropwizardTestSupport
StackMap stack: java.lang.Exception
17: astore 1
start local 1 18: aload 1
invokestatic com.google.common.base.Throwables.throwIfUnchecked:(Ljava/lang/Throwable;)V
19: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
4 16 1 bootstrap Lio/dropwizard/setup/Bootstrap<TC;>;
11 16 2 command Lio/dropwizard/cli/Command;
12 16 3 file Lcom/google/common/collect/ImmutableMap$Builder<Ljava/lang/String;Ljava/lang/Object;>;
15 16 4 namespace Lnet/sourceforge/argparse4j/inf/Namespace;
18 20 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 16 17 Class java.lang.Exception
public C getConfiguration();
descriptor: ()Lio/dropwizard/Configuration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.configuration:Lio/dropwizard/Configuration;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.Configuration
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
Signature: ()TC;
public int getLocalPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.Server
invokevirtual org.eclipse.jetty.server.Server.getConnectors:()[Lorg/eclipse/jetty/server/Connector;
iconst_0
aaload
checkcast org.eclipse.jetty.server.ServerConnector
invokevirtual org.eclipse.jetty.server.ServerConnector.getLocalPort:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
public int getAdminPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.Server
invokevirtual org.eclipse.jetty.server.Server.getConnectors:()[Lorg/eclipse/jetty/server/Connector;
astore 1
start local 1 1: aload 1
aload 1
arraylength
iconst_1
isub
aaload
checkcast org.eclipse.jetty.server.ServerConnector
invokevirtual org.eclipse.jetty.server.ServerConnector.getLocalPort:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
1 2 1 connectors [Lorg/eclipse/jetty/server/Connector;
public int getPort(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.jettyServer:Lorg/eclipse/jetty/server/Server;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.Server
invokevirtual org.eclipse.jetty.server.Server.getConnectors:()[Lorg/eclipse/jetty/server/Connector;
iload 1
aaload
checkcast org.eclipse.jetty.server.ServerConnector
invokevirtual org.eclipse.jetty.server.ServerConnector.getLocalPort:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 1 1 connectorIndex I
MethodParameters:
Name Flags
connectorIndex
public io.dropwizard.Application<C> newApplication();
descriptor: ()Lio/dropwizard/Application;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.applicationClass:Ljava/lang/Class;
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.Application
1: areturn
2: StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
3 4 1 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 1 2 Class java.lang.NoSuchMethodException
0 1 2 Class java.lang.InstantiationException
0 1 2 Class java.lang.IllegalAccessException
0 1 2 Class java.lang.reflect.InvocationTargetException
Signature: ()Lio/dropwizard/Application<TC;>;
public <A extends io.dropwizard.Application<C>> A getApplication();
descriptor: ()Lio/dropwizard/Application;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.application:Lio/dropwizard/Application;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.Application
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
Signature: <A:Lio/dropwizard/Application<TC;>;>()TA;
public io.dropwizard.setup.Environment getEnvironment();
descriptor: ()Lio/dropwizard/setup/Environment;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.environment:Lio/dropwizard/setup/Environment;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.setup.Environment
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper();
descriptor: ()Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.getEnvironment:()Lio/dropwizard/setup/Environment;
invokevirtual io.dropwizard.setup.Environment.getObjectMapper:()Lcom/fasterxml/jackson/databind/ObjectMapper;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
private io.dropwizard.configuration.ConfigurationFactory lambda$2(java.lang.Class, javax.validation.Validator, com.fasterxml.jackson.databind.ObjectMapper, java.lang.String);
descriptor: (Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new io.dropwizard.testing.POJOConfigurationFactory
dup
aload 0
invokevirtual io.dropwizard.testing.DropwizardTestSupport.getConfiguration:()Lio/dropwizard/Configuration;
invokespecial io.dropwizard.testing.POJOConfigurationFactory.<init>:(Lio/dropwizard/Configuration;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 1 1 klass Ljava/lang/Class<TC;>;
0 1 2 validator Ljavax/validation/Validator;
0 1 3 objectMapper Lcom/fasterxml/jackson/databind/ObjectMapper;
0 1 4 propertyPrefix Ljava/lang/String;
private io.dropwizard.configuration.ConfigurationFactory lambda$3(java.lang.Class, javax.validation.Validator, com.fasterxml.jackson.databind.ObjectMapper, java.lang.String);
descriptor: (Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)Lio/dropwizard/configuration/ConfigurationFactory;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new io.dropwizard.configuration.YamlConfigurationFactory
dup
aload 1
aload 2
aload 3
aload 0
getfield io.dropwizard.testing.DropwizardTestSupport.customPropertyPrefix:Ljava/util/Optional;
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast java.lang.String
invokespecial io.dropwizard.configuration.YamlConfigurationFactory.<init>:(Ljava/lang/Class;Ljavax/validation/Validator;Lcom/fasterxml/jackson/databind/ObjectMapper;Ljava/lang/String;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/DropwizardTestSupport<TC;>;
0 1 1 klass Ljava/lang/Class<TC;>;
0 1 2 validator Ljavax/validation/Validator;
0 1 3 objectMapper Lcom/fasterxml/jackson/databind/ObjectMapper;
0 1 4 propertyPrefix Ljava/lang/String;
}
Signature: <C:Lio/dropwizard/Configuration;>Ljava/lang/Object;
SourceFile: "DropwizardTestSupport.java"
NestMembers:
io.dropwizard.testing.DropwizardTestSupport$1 io.dropwizard.testing.DropwizardTestSupport$2 io.dropwizard.testing.DropwizardTestSupport$ServiceListener
InnerClasses:
public Builder = com.google.common.collect.ImmutableMap$Builder of com.google.common.collect.ImmutableMap
io.dropwizard.testing.DropwizardTestSupport$1
io.dropwizard.testing.DropwizardTestSupport$2
public abstract ServiceListener = io.dropwizard.testing.DropwizardTestSupport$ServiceListener of io.dropwizard.testing.DropwizardTestSupport
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles