Class groovyx.net.http.OkHttpEncodersSpec

5

tests

0

failures

0

ignored

0.393s

duration

100%

successful

Tests

Test Duration Result
multipart: field 0.073s passed
multipart: file (bytes) 0.048s passed
multipart: file (path) 0.064s passed
multipart: file (stream) 0.059s passed
multipart: file (string) 0.149s passed

Standard output

18:09:10.233 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@67ccba4a
18:09:10.239 [XNIO-65 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-1', selector sun.nio.ch.EPollSelectorImpl@752b8f93
18:09:10.246 [XNIO-65 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-3', selector sun.nio.ch.EPollSelectorImpl@5d0f15cc
18:09:10.247 [XNIO-65 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-4', selector sun.nio.ch.EPollSelectorImpl@35920b1c
18:09:10.247 [XNIO-65 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-2', selector sun.nio.ch.EPollSelectorImpl@a85e36b
18:09:10.247 [XNIO-65 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-5', selector sun.nio.ch.EPollSelectorImpl@7a725e96
18:09:10.255 [XNIO-65 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-6', selector sun.nio.ch.EPollSelectorImpl@1ddf8b66
18:09:10.256 [XNIO-65 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-7', selector sun.nio.ch.EPollSelectorImpl@41af3e6d
18:09:10.257 [XNIO-65 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 I/O-8', selector sun.nio.ch.EPollSelectorImpl@26972cb2
18:09:10.262 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
18:09:10.267 [XNIO-65 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-65 Accept', selector sun.nio.ch.EPollSelectorImpl@39d87abe
18:09:10.275 [XNIO-65 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=b0501183-8286-484b-9b52-36096947ba85; charset=utf-8], Content-Length=[266], User-Agent=[okhttp/3.5.0], Host=[localhost:37639]}, cookies=[:]): --b0501183-8286-484b-9b52-36096947ba85
Content-Disposition: form-data; name="alpha"
Content-Length: 3

one
--b0501183-8286-484b-9b52-36096947ba85
Content-Disposition: form-data; name="bravo"
Content-Length: 3

two
--b0501183-8286-484b-9b52-36096947ba85--
 }
18:09:10.278 [XNIO-65 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
18:09:10.279 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@67ccba4a
18:09:10.294 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@1f01ed01
18:09:10.311 [XNIO-66 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-1', selector sun.nio.ch.EPollSelectorImpl@3d4c77a1
18:09:10.313 [XNIO-66 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-2', selector sun.nio.ch.EPollSelectorImpl@85e808e
18:09:10.318 [XNIO-66 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-3', selector sun.nio.ch.EPollSelectorImpl@10800235
18:09:10.319 [XNIO-66 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-4', selector sun.nio.ch.EPollSelectorImpl@336514e1
18:09:10.320 [XNIO-66 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-5', selector sun.nio.ch.EPollSelectorImpl@549a7be8
18:09:10.320 [XNIO-66 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-6', selector sun.nio.ch.EPollSelectorImpl@7beffca6
18:09:10.321 [XNIO-66 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-7', selector sun.nio.ch.EPollSelectorImpl@108149bb
18:09:10.322 [XNIO-66 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 I/O-8', selector sun.nio.ch.EPollSelectorImpl@567dfad0
18:09:10.323 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
18:09:10.329 [XNIO-66 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-66 Accept', selector sun.nio.ch.EPollSelectorImpl@70a1d3a4
18:09:10.339 [XNIO-66 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=0c430849-197d-4614-985d-f3c03383c9ea; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:35875]}, cookies=[:]): --0c430849-197d-4614-985d-f3c03383c9ea
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--0c430849-197d-4614-985d-f3c03383c9ea
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--0c430849-197d-4614-985d-f3c03383c9ea--
 }
18:09:10.342 [XNIO-66 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
18:09:10.343 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@1f01ed01
18:09:10.348 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@4899ba56
18:09:10.353 [XNIO-67 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-1', selector sun.nio.ch.EPollSelectorImpl@2d17a13a
18:09:10.354 [XNIO-67 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-2', selector sun.nio.ch.EPollSelectorImpl@24240700
18:09:10.355 [XNIO-67 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-3', selector sun.nio.ch.EPollSelectorImpl@6addf453
18:09:10.355 [XNIO-67 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-4', selector sun.nio.ch.EPollSelectorImpl@a245e08
18:09:10.356 [XNIO-67 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-5', selector sun.nio.ch.EPollSelectorImpl@19c60cbb
18:09:10.363 [XNIO-67 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-6', selector sun.nio.ch.EPollSelectorImpl@67f11261
18:09:10.367 [XNIO-67 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-7', selector sun.nio.ch.EPollSelectorImpl@58e199d1
18:09:10.371 [XNIO-67 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 I/O-8', selector sun.nio.ch.EPollSelectorImpl@29382a73
18:09:10.374 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
18:09:10.374 [XNIO-67 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-67 Accept', selector sun.nio.ch.EPollSelectorImpl@2c9722a8
18:09:10.386 [XNIO-67 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=2f0905c8-bdc6-49c3-93f6-ce412b8733fd; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:37965]}, cookies=[:]): --2f0905c8-bdc6-49c3-93f6-ce412b8733fd
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--2f0905c8-bdc6-49c3-93f6-ce412b8733fd
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--2f0905c8-bdc6-49c3-93f6-ce412b8733fd--
 }
18:09:10.390 [XNIO-67 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
18:09:10.391 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@4899ba56
18:09:10.395 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@6d7e0499
18:09:10.399 [XNIO-68 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-1', selector sun.nio.ch.EPollSelectorImpl@42d287e6
18:09:10.399 [XNIO-68 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-2', selector sun.nio.ch.EPollSelectorImpl@40fa34a0
18:09:10.399 [XNIO-68 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-3', selector sun.nio.ch.EPollSelectorImpl@7a4b00cf
18:09:10.399 [XNIO-68 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-4', selector sun.nio.ch.EPollSelectorImpl@ef6ed64
18:09:10.400 [XNIO-68 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-5', selector sun.nio.ch.EPollSelectorImpl@58d51ad4
18:09:10.403 [XNIO-68 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-6', selector sun.nio.ch.EPollSelectorImpl@2f8205cf
18:09:10.405 [XNIO-68 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-7', selector sun.nio.ch.EPollSelectorImpl@1fdeb3ac
18:09:10.406 [XNIO-68 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 I/O-8', selector sun.nio.ch.EPollSelectorImpl@a88e49a
18:09:10.407 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
18:09:10.415 [XNIO-68 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-68 Accept', selector sun.nio.ch.EPollSelectorImpl@78d0dfc7
18:09:10.423 [XNIO-68 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=ee95c1b9-11bb-4b55-bcbb-18fd78182d6c; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:41971]}, cookies=[:]): --ee95c1b9-11bb-4b55-bcbb-18fd78182d6c
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--ee95c1b9-11bb-4b55-bcbb-18fd78182d6c
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--ee95c1b9-11bb-4b55-bcbb-18fd78182d6c--
 }
18:09:10.539 [XNIO-68 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
18:09:10.541 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@6d7e0499
18:09:10.545 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@5fbfda2d
18:09:10.552 [XNIO-69 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-1', selector sun.nio.ch.EPollSelectorImpl@306a3c1c
18:09:10.555 [XNIO-69 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-2', selector sun.nio.ch.EPollSelectorImpl@2f8f115
18:09:10.559 [XNIO-69 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-3', selector sun.nio.ch.EPollSelectorImpl@2c67fb33
18:09:10.563 [XNIO-69 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-4', selector sun.nio.ch.EPollSelectorImpl@43784ce4
18:09:10.563 [XNIO-69 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-5', selector sun.nio.ch.EPollSelectorImpl@2d004be2
18:09:10.563 [XNIO-69 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-6', selector sun.nio.ch.EPollSelectorImpl@66bd7e07
18:09:10.563 [XNIO-69 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-8', selector sun.nio.ch.EPollSelectorImpl@5e941375
18:09:10.563 [XNIO-69 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 I/O-7', selector sun.nio.ch.EPollSelectorImpl@3555c573
18:09:10.563 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
18:09:10.563 [XNIO-69 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-69 Accept', selector sun.nio.ch.EPollSelectorImpl@2507ec12
18:09:10.596 [XNIO-69 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=a9f523fa-bd57-440d-92a7-4fcc6141169b; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:36859]}, cookies=[:]): --a9f523fa-bd57-440d-92a7-4fcc6141169b
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--a9f523fa-bd57-440d-92a7-4fcc6141169b
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--a9f523fa-bd57-440d-92a7-4fcc6141169b--
 }
18:09:10.598 [XNIO-69 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
18:09:10.600 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@5fbfda2d