no.skatteetaten.aurora.mockmvc.extensions.MockMvcData.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| 5no/skatteetaten/aurora/mockmvc/extensions/MockMvcData java/lang/Object 2org/springframework/test/web/servlet/ResultActions placeholder Lkotlin/text/Regex;
requestUrl Ljava/lang/String; request ^(Lorg/springframework/http/HttpMethod;)Lcom/github/tomakehurst/wiremock/client/MappingBuilder; #Lorg/jetbrains/annotations/NotNull; method kotlin/jvm/internal/Intrinsics checkParameterIsNotNull '(Ljava/lang/Object;Ljava/lang/String;)V
getWireMockUrl 7()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 & get n(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) 1 checkExpressionValueIsNotNull 3
4 post 6 )
' 7 6 .
' 9 WireMock.post(requestUrl) ; put = )
' > = .
' @ WireMock.put(requestUrl) B patch D )
' E 3com/github/tomakehurst/wiremock/matching/UrlPattern G 8com/github/tomakehurst/wiremock/matching/AnythingPattern I (Ljava/lang/String;)V K L
J M ;com/github/tomakehurst/wiremock/matching/StringValuePattern O A(Lcom/github/tomakehurst/wiremock/matching/StringValuePattern;Z)V K Q
H R 4WireMock.patch(UrlPatter…tern(requestUrl), false)) T delete V )
' W V .
' Y WireMock.delete(requestUrl) [ "java/lang/IllegalArgumentException ] java/lang/StringBuilder _ ()V K a
` b $MockMvc extensions does not support d append -(Ljava/lang/String;)Ljava/lang/StringBuilder; f g
` h name ()Ljava/lang/String; j k
! l toString n k
` o
^ M java/lang/Throwable r it 5Lcom/github/tomakehurst/wiremock/matching/UrlPattern; $i$a$-let-MockMvcData$request$1 I $i$a$-let-MockMvcData$request$2 $i$a$-let-MockMvcData$request$3 $i$a$-let-MockMvcData$request$4 $i$a$-let-MockMvcData$request$5 url this 7Lno/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 ? ?
? ? Companion Lkotlin/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 ? .+ ? matching Q(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 ? verify N()Lorg/springframework/cloud/contract/wiremock/restdocs/ContractResultHandler; ? ?
? ? path 0Lno/skatteetaten/aurora/mockmvc/extensions/Path; ? ? ? .no/skatteetaten/aurora/mockmvc/extensions/Path ? getPriority ? #
? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ?
atPriority L(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 ? andDo j(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$iv Ljava/lang/Object; $receiver$iv Ljava/lang/Iterable; $i$f$forEach 4Lorg/springframework/test/web/servlet/ResultActions; mappingBuilder 7Lcom/github/tomakehurst/wiremock/client/MappingBuilder; headers &Lorg/springframework/http/HttpHeaders; addDocumentation p(Lorg/springframework/http/HttpMethod;Ljava/lang/String;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData; getSnippetName 9(Lorg/springframework/http/HttpMethod;)Ljava/lang/String;
,org/springframework/restdocs/snippet/Snippet =org/springframework/restdocs/mockmvc/MockMvcRestDocumentation document ?(Ljava/lang/String;[Lorg/springframework/restdocs/snippet/Snippet;)Lorg/springframework/restdocs/mockmvc/RestDocumentationResultHandler;
!this.andDo(document(snippetName)) snippetName docsIdentifier kotlin/TypeCastException 5null cannot be cast to non-null type java.lang.String
M toLowerCase k
? ((this as java.lang.String).toLowerCase() getUrl" k
?# /% -' _) [{}]+
? M . getPath 2()Lno/skatteetaten/aurora/mockmvc/extensions/Path; results
getResults 6()Lorg/springframework/test/web/servlet/ResultActions;2 5 g(Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/test/web/servlet/ResultActions;)V ?2
b \{.+?}; ? p0 4Lorg/springframework/test/web/servlet/ResultHandler; andExpect j(Lorg/springframework/test/web/servlet/ResultMatcher;)Lorg/springframework/test/web/servlet/ResultActions;@A B 4Lorg/springframework/test/web/servlet/ResultMatcher; andReturn 2()Lorg/springframework/test/web/servlet/MvcResult;EF G
component1
component2 copy ?(Lno/skatteetaten/aurora/mockmvc/extensions/Path;Lorg/springframework/test/web/servlet/ResultActions;)Lno/skatteetaten/aurora/mockmvc/extensions/MockMvcData; K7
MKL
O MockMvcData(path=Q -(Ljava/lang/Object;)Ljava/lang/StringBuilder; fS
`T
, results=V )X hashCodeZ #
[ equals (Ljava/lang/Object;)Z areEqual '(Ljava/lang/Object;Ljava/lang/Object;)Z_`
a Lkotlin/Metadata; mv
bv k d1??f
??
??
??
??
??
??
??
??
??20B00¢J0??2020J!
*002
*00HJ!
*002
*00HJ
*00HJ 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¢
??
¨, d2 kotlin.jvm.PlatformType 0Lorg/springframework/test/web/servlet/MvcResult; other mockmvc-extensions-kotlin mockMvcData.kt RuntimeInvisibleAnnotations Code
StackMapTable LineNumberTable LocalVariableTable $RuntimeInvisibleParameterAnnotations
SourceFile SourceDebugExtension RuntimeVisibleAnnotations 1
? ? s
2 s
t b 9+? *? M+? _? %.? $ M v ? ?,Y? N-:6? +Y? ? ?W*? -? 0Y2? 5? ?,Y? N-:6? 8Y? ? ?W*? -? :Y