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

no.skatteetaten.aurora.mockmvc.extensions.MockMvcData.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|5no/skatteetaten/aurora/mockmvc/extensions/MockMvcDatajava/lang/Object2org/springframework/test/web/servlet/ResultActionsplaceholderLkotlin/text/Regex;
requestUrlLjava/lang/String;request^(Lorg/springframework/http/HttpMethod;)Lcom/github/tomakehurst/wiremock/client/MappingBuilder;#Lorg/jetbrains/annotations/NotNull;methodkotlin/jvm/internal/IntrinsicscheckParameterIsNotNull'(Ljava/lang/Object;Ljava/lang/String;)V
getWireMockUrl7()Lcom/github/tomakehurst/wiremock/matching/UrlPattern;
Bno/skatteetaten/aurora/mockmvc/extensions/MockMvcData$WhenMappings$EnumSwitchMapping$0[I	#org/springframework/http/HttpMethod ordinal()I"#
!$/com/github/tomakehurst/wiremock/client/WireMock&getn(Lcom/github/tomakehurst/wiremock/matching/UrlPattern;)Lcom/github/tomakehurst/wiremock/client/MappingBuilder;()
'*	
	,K(Ljava/lang/String;)Lcom/github/tomakehurst/wiremock/client/MappingBuilder;(.
'/WireMock.get(requestUrl)1checkExpressionValueIsNotNull3
4post6)
'76.
'9WireMock.post(requestUrl);put=)
'>=.
'@WireMock.put(requestUrl)BpatchD)
'E3com/github/tomakehurst/wiremock/matching/UrlPatternG8com/github/tomakehurst/wiremock/matching/AnythingPatternI(Ljava/lang/String;)VKL
JM;com/github/tomakehurst/wiremock/matching/StringValuePatternOA(Lcom/github/tomakehurst/wiremock/matching/StringValuePattern;Z)VKQ
HR4WireMock.patch(UrlPatter…tern(requestUrl), false))TdeleteV)
'WV.
'YWireMock.delete(requestUrl)["java/lang/IllegalArgumentException]java/lang/StringBuilder_()VKa
`b$MockMvc extensions does not support dappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;fg
`hname()Ljava/lang/String;jk
!ltoStringnk
`o
^Mjava/lang/Throwablerit5Lcom/github/tomakehurst/wiremock/matching/UrlPattern;$i$a$-let-MockMvcData$request$1I$i$a$-let-MockMvcData$request$2$i$a$-let-MockMvcData$request$3$i$a$-let-MockMvcData$request$4$i$a$-let-MockMvcData$request$5urlthis7Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;%Lorg/springframework/http/HttpMethod;5com/github/tomakehurst/wiremock/client/MappingBuilder?$Lorg/jetbrains/annotations/Nullable;java/lang/CharSequence?	?kotlin/text/Regex?containsMatchIn(Ljava/lang/CharSequence;)Z??
??	CompanionLkotlin/text/Regex$Companion;??	??[\w-\.]+?kotlin/text/Regex$Companion?escapeReplacement&(Ljava/lang/String;)Ljava/lang/String;??
??replace>(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;??
????\??kotlin/text/StringsKt?replace$default^(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;??
??5com/github/tomakehurst/wiremock/matching/RegexPattern?
?M
setupWireMock?(Lorg/springframework/http/HttpHeaders;Lorg/springframework/http/HttpMethod;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;
?$org/springframework/http/HttpHeaders?keySet()Ljava/util/Set;??
??java/lang/Iterable?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????java/lang/String?.+?matchingQ(Ljava/lang/String;)Lcom/github/tomakehurst/wiremock/matching/StringValuePattern;??
'?
withHeader?(Ljava/lang/String;Lcom/github/tomakehurst/wiremock/matching/StringValuePattern;)Lcom/github/tomakehurst/wiremock/client/MappingBuilder;????Eorg/springframework/cloud/contract/wiremock/restdocs/WireMockRestDocs?verifyN()Lorg/springframework/cloud/contract/wiremock/restdocs/ContractResultHandler;??
??path0Lno/skatteetaten/aurora/mockmvc/extensions/Path;??	?.no/skatteetaten/aurora/mockmvc/extensions/Path?getPriority?#
??java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??
atPriorityL(Ljava/lang/Integer;)Lcom/github/tomakehurst/wiremock/client/MappingBuilder;????Jorg/springframework/cloud/contract/wiremock/restdocs/ContractResultHandler?wiremock?(Lcom/github/tomakehurst/wiremock/client/MappingBuilder;)Lorg/springframework/cloud/contract/wiremock/restdocs/WireMockVerifyHelper;??
??2org/springframework/test/web/servlet/ResultHandler?andDoj(Lorg/springframework/test/web/servlet/ResultHandler;)Lorg/springframework/test/web/servlet/ResultActions;??
?
resultActions?copy$default?(Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/test/web/servlet/ResultActions;ILjava/lang/Object;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;??
?)$i$a$-forEach-MockMvcData$setupWireMock$1
element$ivLjava/lang/Object;$receiver$ivLjava/lang/Iterable;$i$f$forEach4Lorg/springframework/test/web/servlet/ResultActions;mappingBuilder7Lcom/github/tomakehurst/wiremock/client/MappingBuilder;headers&Lorg/springframework/http/HttpHeaders;addDocumentationp(Lorg/springframework/http/HttpMethod;Ljava/lang/String;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;getSnippetName9(Lorg/springframework/http/HttpMethod;)Ljava/lang/String;	

,org/springframework/restdocs/snippet/Snippet=org/springframework/restdocs/mockmvc/MockMvcRestDocumentationdocument?(Ljava/lang/String;[Lorg/springframework/restdocs/snippet/Snippet;)Lorg/springframework/restdocs/mockmvc/RestDocumentationResultHandler;
!this.andDo(document(snippetName))snippetNamedocsIdentifierkotlin/TypeCastException5null cannot be cast to non-null type java.lang.String
MtoLowerCasek
?((this as java.lang.String).toLowerCase() getUrl"k
?#/%-'_)[{}]+
?M.getPath2()Lno/skatteetaten/aurora/mockmvc/extensions/Path;results
getResults6()Lorg/springframework/test/web/servlet/ResultActions;2	5g(Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/test/web/servlet/ResultActions;)V?2
b\{.+?};?p04Lorg/springframework/test/web/servlet/ResultHandler;	andExpectj(Lorg/springframework/test/web/servlet/ResultMatcher;)Lorg/springframework/test/web/servlet/ResultActions;@AB4Lorg/springframework/test/web/servlet/ResultMatcher;	andReturn2()Lorg/springframework/test/web/servlet/MvcResult;EFG
component1
component2copy?(Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/test/web/servlet/ResultActions;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData;K7
MKL
OMockMvcData(path=Q-(Ljava/lang/Object;)Ljava/lang/StringBuilder;fS
`T
, results=V)XhashCodeZ#
[equals(Ljava/lang/Object;)ZareEqual'(Ljava/lang/Object;Ljava/lang/Object;)Z_`
aLkotlin/Metadata;mv
bvkd1??f


??



??





??

??



??
??


??

??



†??20B00¢J0??2020J!
 *002
 *00H–J!
 *002
 *00H–J
 *00H–J	0HÆJ	0HÆJ0??2020HÆJ020 HÖJ!020J"0#J	$0%HÖJ&0'20J(0??2)0*20J	+0HÖR0¢
??R0	X‚¢
??R
0X‚¢
??R0¢
??
¨,d2kotlin.jvm.PlatformType0Lorg/springframework/test/web/servlet/MvcResult;othermockmvc-extensions-kotlinmockMvcData.ktRuntimeInvisibleAnnotationsCode
StackMapTableLineNumberTableLocalVariableTable$RuntimeInvisibleParameterAnnotations
SourceFileSourceDebugExtensionRuntimeVisibleAnnotations1	
??s
2s
tb9+?*?M+?_?%.?$Mv??,Y?N-:6?+Y???W*?-?0Y2?5??,Y?N-:6?8Y???W*?-?:Y?@At3*?6+?C?w}~>DEFt(
*?6?H?w
}~I1t#*?ٰw}~s
J4t#*?6?w}~s
KLtJ+8?,9??Y+,?N?w }~??2s
x


	??t3~?*??L~?*?6M*+,?P?u
s
nkt7+?`Y?cR?i*?ٶUW?i*?6?UY?i?p?s
Z#tY%*??Y?	?\?Wh*?6Y?	?\?W`?u"N?A??]^tG1*+?++??&+?M*??,?ٸb?*?6,?6?b???u-x?yrzs?s@sDsEsosIsJsKs]s.sps.sssusZs.sss?sssnsq




© 2015 - 2025 Weber Informatics LLC | Privacy Policy