no.skatteetaten.aurora.mockmvc.extensions.MockMvcExtensionsKt.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockmvc-extensions-kotlin Show documentation
Show all versions of mockmvc-extensions-kotlin Show documentation
Simplifies setup of MockMvc tests combined with generation of restdocs and Spring Cloud Contract stubs
???? 4 ? =no/skatteetaten/aurora/mockmvc/extensions/MockMvcExtensionsKt java/lang/Object
authorization `(Lorg/springframework/http/HttpHeaders;Ljava/lang/String;)Lorg/springframework/http/HttpHeaders; #Lorg/jetbrains/annotations/NotNull;
receiver$0 kotlin/jvm/internal/Intrinsics
checkParameterIsNotNull '(Ljava/lang/Object;Ljava/lang/String;)V
value
Authorization $org/springframework/http/HttpHeaders set '(Ljava/lang/String;Ljava/lang/String;)V
$receiver &Lorg/springframework/http/HttpHeaders; Ljava/lang/String; contentType Content-Type contentType$default s(Lorg/springframework/http/HttpHeaders;Ljava/lang/String;ILjava/lang/Object;)Lorg/springframework/http/HttpHeaders; application/json;charset=UTF-8 #
% contentTypeJson N(Lorg/springframework/http/HttpHeaders;)Lorg/springframework/http/HttpHeaders; ! "
) header r(Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Ljava/lang/String;)Lorg/springframework/http/HttpHeaders; key - get ?(Lorg/springframework/test/web/servlet/MockMvc;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V (Lorg/springframework/test/web/servlet/MockMvc;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Lkotlin/jvm/functions/Function1<-Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;Lkotlin/Unit;>;)V $Lorg/jetbrains/annotations/Nullable; path 3 fn 5 #org/springframework/http/HttpMethod 7 GET %Lorg/springframework/http/HttpMethod; 9 : 8 ; execute ?(Lorg/springframework/test/web/servlet/MockMvc;Lorg/springframework/http/HttpMethod;Lorg/springframework/http/HttpHeaders;Ljava/lang/Object;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lkotlin/jvm/functions/Function1;Ljava/lang/String;)V = >
? .Lorg/springframework/test/web/servlet/MockMvc; 0Lno/skatteetaten/aurora/mockmvc/extensions/Path; headers docsIdentifier Lkotlin/jvm/functions/Function1; get$default ?(Lorg/springframework/test/web/servlet/MockMvc;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V java/lang/String H / 0
J post ?(Lorg/springframework/test/web/servlet/MockMvc;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Ljava/lang/Object;Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V(Lorg/springframework/test/web/servlet/MockMvc;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Ljava/lang/Object;Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Lkotlin/jvm/functions/Function1<-Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;Lkotlin/Unit;>;)V POST O : 8 P body Ljava/lang/Object; post$default ?(Lorg/springframework/test/web/servlet/MockMvc;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Ljava/lang/Object;Lorg/springframework/http/HttpHeaders;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V L M
V put PUT Y : 8 Z put$default X M
] patch PATCH ` : 8 a
patch$default _ M
d delete DELETE g : 8 h delete$default f M
k7(Lorg/springframework/test/web/servlet/MockMvc;Lorg/springframework/http/HttpMethod;Lorg/springframework/http/HttpHeaders;Ljava/lang/Object;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lkotlin/jvm/functions/Function1<-Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;Lkotlin/Unit;>;Ljava/lang/String;)V .no/skatteetaten/aurora/mockmvc/extensions/Path n getUrl ()Ljava/lang/String; p q
o r getVars ()[Ljava/lang/String; t u
o v java/util/Arrays x copyOf )([Ljava/lang/Object;I)[Ljava/lang/Object; z {
y | Corg/springframework/test/web/servlet/request/MockMvcRequestBuilders ~ request ?(Lorg/springframework/http/HttpMethod;Ljava/lang/String;[Ljava/lang/Object;)Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder; ? ?
? 4MockMvcRequestBuilders
…od, path.url, *path.vars) ? checkExpressionValueIsNotNull ?
?
addHeaders ?(Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder;Lorg/springframework/http/HttpHeaders;)Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder; ? ?
? addBody ?(Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder;Ljava/lang/Object;)Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder; ? ?
? 3org/springframework/test/web/servlet/RequestBuilder ? ,org/springframework/test/web/servlet/MockMvc ? perform k(Lorg/springframework/test/web/servlet/RequestBuilder;)Lorg/springframework/test/web/servlet/ResultActions; ? ?
? ? 5no/skatteetaten/aurora/mockmvc/extensions/MockMvcData ?
resultActions ? g(Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/test/web/servlet/ResultActions;)V ? ?
? ? kotlin/jvm/functions/Function1 ? invoke &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ?
setupWireMock ?(Lorg/springframework/http/HttpHeaders;Lorg/springframework/http/HttpMethod;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData; ? ?
? ? addDocumentation p(Lorg/springframework/http/HttpMethod;Ljava/lang/String;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData; ? ?
? ? mock 7Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData; 4Lorg/springframework/test/web/servlet/ResultActions; builder LLorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder; method Jorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder ? t(Lorg/springframework/http/HttpHeaders;)Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder; C ?
? ? it *$i$a$-let-MockMvcExtensionsKt$addHeaders$1 I Dno/skatteetaten/aurora/mockmvc/extensions/TestObjectMapperConfigurer ? INSTANCE FLno/skatteetaten/aurora/mockmvc/extensions/TestObjectMapperConfigurer; ? ? ? ? getObjectMapper /()Lcom/fasterxml/jackson/databind/ObjectMapper; ? ?
? ? +com/fasterxml/jackson/databind/ObjectMapper ? writeValueAsString &(Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? content `(Ljava/lang/String;)Lorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder; ? ?
? ?
jsonString '$i$a$-let-MockMvcExtensionsKt$addBody$1 Lkotlin/Metadata; mv
bv k d1???N
??
??
??
??
??0*020H0*020H0*020
0*02
0
0*0O0
*0202
02
02
0 200
0¢]0
*0202020202!0¢(0
020 HC0
*0202
02
0 200
0¢0*020 20 O0
*0202
02
02
0 200
0¢O 0
*0202
02
02
0 200
0¢O!0
*0202
02
02
0 200
0¢¨" d2 Lkotlin/Function1; Lkotlin/ExtensionFunctionType; Lkotlin/ParameterName; name mockMvcData mockmvc-extensions-kotlin mockMvcExtensions.kt Code LineNumberTable LocalVariableTable RuntimeInvisibleAnnotations $RuntimeInvisibleParameterAnnotations
StackMapTable Signature
SourceFile SourceDebugExtension RuntimeVisibleAnnotations 1 ? M * ? +? *+? *? ?
? ? ?
? M * ? +? * +? *? ?
? ? ?
! " ? 0 ~? $L*+? &? ? ? ? ' ( ? 8 * ? *? *? ? ? ? ? + , ? \ * ? +.? ,? *+,? *? ?
? - ? ? / 0 ? s !* ? +4? 6? *? <,+-? @? ? " ? 4 ! A ! 3 B ! C ! D ! 5 E ? 1 ? 2 2 F G ? H "~? ? M~? ? IN*+,-? K? ? ?
L M ? ~ "* ? +4? 6? *? Q-,+? @? ? * ? > " A " 3 B " R S " C " D " 5 E ? N ? % 2 2 2 T U ? Z /~? M~? ? N~? ? I:*+,-? W? ?
? &