public class io.dropwizard.testing.junit.ResourceTestRule implements org.junit.rules.TestRule
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.testing.junit.ResourceTestRule
super_class: java.lang.Object
{
private final io.dropwizard.testing.common.Resource resource;
descriptor: Lio/dropwizard/testing/common/Resource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static io.dropwizard.testing.junit.ResourceTestRule$Builder builder();
descriptor: ()Lio/dropwizard/testing/junit/ResourceTestRule$Builder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.dropwizard.testing.junit.ResourceTestRule$Builder
dup
invokespecial io.dropwizard.testing.junit.ResourceTestRule$Builder.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
private void <init>(io.dropwizard.testing.common.Resource);
descriptor: (Lio/dropwizard/testing/common/Resource;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
ldc "resource"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.dropwizard.testing.common.Resource
putfield io.dropwizard.testing.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
0 3 1 resource Lio/dropwizard/testing/common/Resource;
MethodParameters:
Name Flags
resource
public javax.validation.Validator getValidator();
descriptor: ()Ljavax/validation/Validator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
invokevirtual io.dropwizard.testing.common.Resource.getValidator:()Ljavax/validation/Validator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
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
getfield io.dropwizard.testing.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
invokevirtual io.dropwizard.testing.common.Resource.getObjectMapper:()Lcom/fasterxml/jackson/databind/ObjectMapper;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
public java.util.function.Consumer<org.glassfish.jersey.client.ClientConfig> getClientConfigurator();
descriptor: ()Ljava/util/function/Consumer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
invokevirtual io.dropwizard.testing.common.Resource.getClientConfigurator:()Ljava/util/function/Consumer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
Signature: ()Ljava/util/function/Consumer<Lorg/glassfish/jersey/client/ClientConfig;>;
public javax.ws.rs.client.WebTarget target(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/ws/rs/client/WebTarget;
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.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
aload 1
invokevirtual io.dropwizard.testing.common.Resource.target:(Ljava/lang/String;)Ljavax/ws/rs/client/WebTarget;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
0 1 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public javax.ws.rs.client.Client client();
descriptor: ()Ljavax/ws/rs/client/Client;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
invokevirtual io.dropwizard.testing.common.Resource.client:()Ljavax/ws/rs/client/Client;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
public org.glassfish.jersey.test.JerseyTest getJerseyTest();
descriptor: ()Lorg/glassfish/jersey/test/JerseyTest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.testing.junit.ResourceTestRule.resource:Lio/dropwizard/testing/common/Resource;
invokevirtual io.dropwizard.testing.common.Resource.getJerseyTest:()Lorg/glassfish/jersey/test/JerseyTest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement, org.junit.runner.Description);
descriptor: (Lorg/junit/runners/model/Statement;Lorg/junit/runner/Description;)Lorg/junit/runners/model/Statement;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new io.dropwizard.testing.junit.ResourceTestRule$1
dup
aload 0
aload 1
invokespecial io.dropwizard.testing.junit.ResourceTestRule$1.<init>:(Lio/dropwizard/testing/junit/ResourceTestRule;Lorg/junit/runners/model/Statement;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/testing/junit/ResourceTestRule;
0 1 1 base Lorg/junit/runners/model/Statement;
0 1 2 description Lorg/junit/runner/Description;
MethodParameters:
Name Flags
base
description
}
SourceFile: "ResourceTestRule.java"
NestMembers:
io.dropwizard.testing.junit.ResourceTestRule$1 io.dropwizard.testing.junit.ResourceTestRule$Builder
InnerClasses:
io.dropwizard.testing.junit.ResourceTestRule$1
public Builder = io.dropwizard.testing.junit.ResourceTestRule$Builder of io.dropwizard.testing.junit.ResourceTestRule