File tree Expand file tree Collapse file tree 9 files changed +20
-18
lines changed
src/main/groovy/pl/touk/mockserver/client
src/test/groovy/pl/touk/mockserver/tests
src/main/groovy/pl/touk/mockserver/server Expand file tree Collapse file tree 9 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ In closures input parameter (called req) contains properties:
192192- text - request body as java.util.String
193193- headers - java.util.Map with request headers
194194- query - java.util.Map with query parameters
195- - xml - groovy.util .slurpersupport.GPathResult created from request body (if request body is valid xml)
196- - soap - groovy.util .slurpersupport.GPathResult created from request body without Envelope and Body elements (if request body is valid soap xml)
195+ - xml - groovy.xml .slurpersupport.GPathResult created from request body (if request body is valid xml)
196+ - soap - groovy.xml .slurpersupport.GPathResult created from request body without Envelope and Body elements (if request body is valid soap xml)
197197- json - java.lang.Object created from request body (if request body is valid json)
198198- path - java.util.List<String > with not empty parts of request path
199199
Original file line number Diff line number Diff line change 1414 </build >
1515 <dependencies >
1616 <dependency >
17- <groupId >org.codehaus .groovy</groupId >
17+ <groupId >org.apache .groovy</groupId >
1818 <artifactId >groovy</artifactId >
1919 </dependency >
2020 <dependency >
21- <groupId >org.codehaus .groovy</groupId >
21+ <groupId >org.apache .groovy</groupId >
2222 <artifactId >groovy-json</artifactId >
2323 </dependency >
2424 <dependency >
25- <groupId >org.codehaus .groovy</groupId >
25+ <groupId >org.apache .groovy</groupId >
2626 <artifactId >groovy-xml</artifactId >
2727 </dependency >
2828 <dependency >
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ package pl.touk.mockserver.client
33import groovy.json.JsonSlurper
44import groovy.transform.CompileStatic
55import groovy.transform.TypeChecked
6- import groovy.util.slurpersupport.GPathResult
6+ import groovy.xml.slurpersupport.GPathResult
7+ import groovy.xml.XmlSlurper
78import org.apache.http.HttpEntity
89import org.apache.http.client.methods.CloseableHttpResponse
910import org.apache.http.util.EntityUtils
Original file line number Diff line number Diff line change 1515
1616 <dependencies >
1717 <dependency >
18- <groupId >org.codehaus .groovy</groupId >
18+ <groupId >org.apache .groovy</groupId >
1919 <artifactId >groovy</artifactId >
2020 </dependency >
2121 <dependency >
Original file line number Diff line number Diff line change 11package pl.touk.mockserver.tests
22
3- import groovy.util .slurpersupport.GPathResult
3+ import groovy.xml .slurpersupport.GPathResult
44import org.apache.http.client.methods.CloseableHttpResponse
55import org.apache.http.client.methods.HttpPost
66import org.apache.http.conn.ssl.SSLConnectionSocketFactory
Original file line number Diff line number Diff line change 11package pl.touk.mockserver.tests
22
3- import groovy.util .slurpersupport.GPathResult
3+ import groovy.xml .slurpersupport.GPathResult
44import org.apache.http.client.methods.CloseableHttpResponse
55import org.apache.http.client.methods.HttpDelete
66import org.apache.http.client.methods.HttpGet
Original file line number Diff line number Diff line change 1111
1212 <dependencies >
1313 <dependency >
14- <groupId >org.codehaus .groovy</groupId >
14+ <groupId >org.apache .groovy</groupId >
1515 <artifactId >groovy</artifactId >
1616 </dependency >
1717 <dependency >
18- <groupId >org.codehaus .groovy</groupId >
18+ <groupId >org.apache .groovy</groupId >
1919 <artifactId >groovy-json</artifactId >
2020 </dependency >
2121 <dependency >
22- <groupId >org.codehaus .groovy</groupId >
22+ <groupId >org.apache .groovy</groupId >
2323 <artifactId >groovy-xml</artifactId >
2424 </dependency >
2525 <dependency >
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package pl.touk.mockserver.server
33import com.sun.net.httpserver.Headers
44import groovy.json.JsonSlurper
55import groovy.transform.PackageScope
6- import groovy.util .slurpersupport.GPathResult
6+ import groovy.xml .slurpersupport.GPathResult
77import groovy.xml.XmlUtil
8+ import groovy.xml.XmlSlurper
89
910@PackageScope
1011class MockRequest {
Original file line number Diff line number Diff line change 2424 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2525 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
2626 <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
27- <groovy .version>3 .0.25 </groovy .version>
27+ <groovy .version>4 .0.29 </groovy .version>
2828 <httpclient .version>4.5.14</httpclient .version>
29- <spock-core .version>2.3-groovy-3 .0</spock-core .version>
29+ <spock-core .version>2.3-groovy-4 .0</spock-core .version>
3030 <commons-lang3 .version>3.19.0</commons-lang3 .version>
3131 <slf4j-api .version>1.7.30</slf4j-api .version>
3232 <logback .version>1.5.20</logback .version>
4747 <dependencyManagement >
4848 <dependencies >
4949 <dependency >
50- <groupId >org.codehaus .groovy</groupId >
50+ <groupId >org.apache .groovy</groupId >
5151 <artifactId >groovy</artifactId >
5252 <version >${groovy.version} </version >
5353 </dependency >
5454 <dependency >
55- <groupId >org.codehaus .groovy</groupId >
55+ <groupId >org.apache .groovy</groupId >
5656 <artifactId >groovy-json</artifactId >
5757 <version >${groovy.version} </version >
5858 </dependency >
5959 <dependency >
60- <groupId >org.codehaus .groovy</groupId >
60+ <groupId >org.apache .groovy</groupId >
6161 <artifactId >groovy-xml</artifactId >
6262 <version >${groovy.version} </version >
6363 </dependency >
You can’t perform that action at this time.
0 commit comments