File tree Expand file tree Collapse file tree 8 files changed +104
-5
lines changed
main/java/com/github/dirkbolte/wiremock/state
test/java/com/github/dirkbolte/wiremock/state Expand file tree Collapse file tree 8 files changed +104
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and test
2
+
3
+ on :
4
+ push :
5
+ # branches: [ develop, master ]
6
+ branches :
7
+ - ' **'
8
+ # pull_request:
9
+ # branches: [ develop, master ]
10
+
11
+ jobs :
12
+ validate :
13
+ name : Validate Gradle wrapper
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Validate Gradle wrapper
18
+ uses : gradle/wrapper-validation-action@v1
19
+ build :
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ os : [ ubuntu-latest, macos-latest, windows-latest ]
24
+ jdk : [ 11, 17 ]
25
+ runs-on : ${{ matrix.os }}
26
+ env :
27
+ JDK_VERSION : ${{ matrix.jdk }}
28
+ steps :
29
+ - uses : actions/checkout@v3
30
+ with :
31
+ fetch-depth : 0
32
+ - name : Set up JDK
33
+ uses : actions/setup-java@v3
34
+ with :
35
+ java-version : ${{ matrix.jdk }}
36
+ distribution : ' temurin'
37
+ - name : Run the Gradle package task
38
+ uses : gradle/gradle-build-action@v2
39
+ with :
40
+ arguments : build check
Original file line number Diff line number Diff line change @@ -25,5 +25,6 @@ replay_pid*
25
25
26
26
.idea
27
27
28
+ ! gradle /wrapper /gradle-wrapper.jar
28
29
build /
29
30
.gradle /
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ plugins {
11
11
id ' signing'
12
12
id ' maven-publish'
13
13
id ' jacoco'
14
- // id 'com.github.johnrengelman.shadow' version "7.1.2"
15
14
id ' com.diffplug.spotless' version ' 6.17.0'
16
15
}
17
16
@@ -35,11 +34,14 @@ project.ext {
35
34
group ' com.github.dirkbolte.wiremock.extensions'
36
35
version ' 0.0.1'
37
36
37
+
38
38
publishing {
39
39
publications {
40
40
mavenJava(MavenPublication ) {
41
41
artifactId = ' state'
42
+
42
43
from components. java
44
+
43
45
pom {
44
46
name = ' state'
45
47
description = ' A WireMock extension to transfer state in between stubs'
@@ -117,6 +119,3 @@ idea {
117
119
}
118
120
}
119
121
120
-
121
- // shadowJar.mustRunAfter jar
122
-
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2023 Dirk Bolte
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
package com .github .dirkbolte .wiremock .state ;
2
17
3
18
import com .github .tomakehurst .wiremock .common .ListOrSingle ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2023 Dirk Bolte
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
package com .github .dirkbolte .wiremock .state ;
2
17
3
18
import com .github .jknack .handlebars .Options ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2023 Dirk Bolte
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
package com .github .dirkbolte .wiremock .state ;
2
17
3
18
import com .fasterxml .jackson .annotation .JsonCreator ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2023 Dirk Bolte
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
package com .github .dirkbolte .wiremock .state ;
2
17
3
18
import com .fasterxml .jackson .core .JsonProcessingException ;
6
21
import com .github .tomakehurst .wiremock .extension .Parameters ;
7
22
import com .github .tomakehurst .wiremock .extension .responsetemplating .ResponseTemplateTransformer ;
8
23
import com .github .tomakehurst .wiremock .junit5 .WireMockExtension ;
9
- import com .github .tomakehurst .wiremock .stubbing .StubMapping ;
10
24
import io .restassured .RestAssured ;
11
25
import io .restassured .http .ContentType ;
12
26
import org .apache .commons .lang3 .RandomStringUtils ;
You can’t perform that action at this time.
0 commit comments