All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.skatteetaten.aurora.mockmvc.extensions.MockMvcExtensionsKt.class Maven / Gradle / Ivy

Go to download

Simplifies setup of MockMvc tests combined with generation of restdocs and Spring Cloud Contract stubs

There is a newer version: 1.1.7
Show newest version
????4?=no/skatteetaten/aurora/mockmvc/extensions/MockMvcExtensionsKtjava/lang/Object
authorization`(Lorg/springframework/http/HttpHeaders;Ljava/lang/String;)Lorg/springframework/http/HttpHeaders;#Lorg/jetbrains/annotations/NotNull;
receiver$0kotlin/jvm/internal/Intrinsics
checkParameterIsNotNull'(Ljava/lang/Object;Ljava/lang/String;)V
value
Authorization$org/springframework/http/HttpHeadersset'(Ljava/lang/String;Ljava/lang/String;)V
	$receiver&Lorg/springframework/http/HttpHeaders;Ljava/lang/String;contentTypeContent-TypecontentType$defaults(Lorg/springframework/http/HttpHeaders;Ljava/lang/String;ILjava/lang/Object;)Lorg/springframework/http/HttpHeaders;application/json;charset=UTF-8#
%contentTypeJsonN(Lorg/springframework/http/HttpHeaders;)Lorg/springframework/http/HttpHeaders;!"
)headerr(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;path3fn5#org/springframework/http/HttpMethod7GET%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;headersdocsIdentifier 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;)Vjava/lang/StringH/0
Jpost?(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;>;)VPOSTO:	8PbodyLjava/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LM
VputPUTY:	8Zput$defaultXM
]patchPATCH`:	8a
patch$default_M
ddeleteDELETEg:	8hdelete$defaultfM
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/PathngetUrl()Ljava/lang/String;pq
orgetVars()[Ljava/lang/String;tu
ovjava/util/ArraysxcopyOf)([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?performk(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;??
??addDocumentationp(Lorg/springframework/http/HttpMethod;Ljava/lang/String;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;??
??mock7Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;4Lorg/springframework/test/web/servlet/ResultActions;builderLLorg/springframework/test/web/servlet/request/MockHttpServletRequestBuilder;methodJorg/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$1IDno/skatteetaten/aurora/mockmvc/extensions/TestObjectMapperConfigurer?INSTANCEFLno/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$1Lkotlin/Metadata;mv
bvkd1???N
??

??
??







??








	??0*020H0*020H0*020	
0*02
0	
0*0O0
*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¢¨"d2Lkotlin/Function1;Lkotlin/ExtensionFunctionType;Lkotlin/ParameterName;namemockMvcDatamockmvc-extensions-kotlinmockMvcExtensions.ktCodeLineNumberTableLocalVariableTableRuntimeInvisibleAnnotations$RuntimeInvisibleParameterAnnotations
StackMapTable	Signature
SourceFileSourceDebugExtensionRuntimeVisibleAnnotations1?M*	?+?*+?*??

???
?M*	?+?* +?*??
???
	!"?0~?$L*+?&??	??'(?8*	?*?*?????+,?\*	?+.?,?*+,?*??
? -??/0?s!*	?+4?6?*?<,+-?@??"?4!A!3B!C!D!5E?1?22	FG?H"~??M~??IN*+,-?K???
 LM?~"*	?+4?6?*?Q-,+?@??*?>"A"3B"RS"C"D"5E?N?%222	TU?Z/~?M~??N~?	?I:*+,-?W??	
?&'(XM?~"*	?+4?6?*?[-,+?@??2?>"A"3B"RS"C"D"5E?N?%222	\U?Z/~?M~??N~?	?I:*+,-?^??	
?./0_M?~"*	?+4?6?*?b-,+?@??:?>"A"3B"RS"C"D"5E?N?%222	cU?Z/~?M~??N~?	?I:*+,-?e??	
?678fM?~"*	?+4?6?*?i-,+?@??B?>"A"3B"RS"C"D"5E?N?%222	jU?Z/~?M~??N~?	?I:*+,-?l??	
?>?@=>?
Z+?s?wY??}??Y???,??-??:*????:??YY?????:		??W	,+??+??W??FLOLNLMNO!L#Q.RASKUKVKURVYW?f
A??	.,??#7??ZAZ?:ZCZRSZ3BZ5EZD?m????~+Y?M,N6*-??Y??W*??
WA??ZZZZ?*????C?	????6+Y?1M,N6-?I?
-?I?
?¶?-??:*??Y??W*??$?II??A??"]^_a#^%d,]4e?4%?$?S!??6?6RS?	????SMAP
mockMvcExtensions.kt
Kotlin
*S Kotlin
*F
+ 1 mockMvcExtensions.kt
no/skatteetaten/aurora/mockmvc/extensions/MockMvcExtensionsKt
*L
1#1,109:1
*E
????[I?I?I??[I?I?I??I??[s??[#s?s?sRs?s?sCssss?ss'sfs?sAs3sBsDs5s?s?s?s=s?s:s?s?s?s/s+s-s_sLsXs?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy