Class groovyx.net.http.OkHttpEncodersSpec

5

tests

0

failures

0

ignored

6.749s

duration

100%

successful

Tests

Test Duration Result
multipart: field 6.386s passed
multipart: file (bytes) 0.114s passed
multipart: file (path) 0.128s passed
multipart: file (stream) 0.056s passed
multipart: file (string) 0.065s passed

Standard output

06:25:16.321 [Test worker] DEBUG ersatz.jboss.logging - Logging Provider: ersatz.jboss.logging.Slf4jLoggerProvider
06:25:16.408 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@371b1f9e
06:25:16.486 [Test worker] INFO ersatz.xnio - XNIO version 3.3.8.Final
06:25:16.726 [Test worker] INFO ersatz.xnio.nio - XNIO NIO Implementation Version 3.3.8.Final
06:25:16.916 [XNIO-1 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-1', selector sun.nio.ch.EPollSelectorImpl@7a7ea706
06:25:16.918 [XNIO-1 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-2', selector sun.nio.ch.EPollSelectorImpl@6db6e16b
06:25:16.925 [XNIO-1 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-3', selector sun.nio.ch.EPollSelectorImpl@533470ef
06:25:16.938 [XNIO-1 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-4', selector sun.nio.ch.EPollSelectorImpl@58c2de21
06:25:16.958 [XNIO-1 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-5', selector sun.nio.ch.EPollSelectorImpl@571fe052
06:25:16.974 [XNIO-1 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-6', selector sun.nio.ch.EPollSelectorImpl@5dceee11
06:25:17.015 [XNIO-1 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-7', selector sun.nio.ch.EPollSelectorImpl@407deff7
06:25:17.024 [XNIO-1 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-8', selector sun.nio.ch.EPollSelectorImpl@6386c419
06:25:17.024 [XNIO-1 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 Accept', selector sun.nio.ch.EPollSelectorImpl@5369a027
06:25:17.028 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:17.661 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=33df7f39-82e4-48a7-a5b5-04a24388196d; charset=utf-8], Content-Length=[266], User-Agent=[okhttp/3.5.0], Host=[localhost:36331]}, cookies=[:]): --33df7f39-82e4-48a7-a5b5-04a24388196d
Content-Disposition: form-data; name="alpha"
Content-Length: 3

one
--33df7f39-82e4-48a7-a5b5-04a24388196d
Content-Disposition: form-data; name="bravo"
Content-Length: 3

two
--33df7f39-82e4-48a7-a5b5-04a24388196d--
 }
06:25:18.101 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:25:18.745 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@371b1f9e
06:25:18.815 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@32744966
06:25:18.826 [XNIO-2 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-2', selector sun.nio.ch.EPollSelectorImpl@51158bc6
06:25:18.830 [XNIO-2 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-1', selector sun.nio.ch.EPollSelectorImpl@30d28388
06:25:18.835 [XNIO-2 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-3', selector sun.nio.ch.EPollSelectorImpl@7e252a32
06:25:18.850 [XNIO-2 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-7', selector sun.nio.ch.EPollSelectorImpl@3e803b41
06:25:18.835 [XNIO-2 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-4', selector sun.nio.ch.EPollSelectorImpl@39384d52
06:25:18.860 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:18.835 [XNIO-2 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-5', selector sun.nio.ch.EPollSelectorImpl@1c6555e0
06:25:18.865 [XNIO-2 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-8', selector sun.nio.ch.EPollSelectorImpl@27530598
06:25:18.847 [XNIO-2 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-6', selector sun.nio.ch.EPollSelectorImpl@7896380c
06:25:18.860 [XNIO-2 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 Accept', selector sun.nio.ch.EPollSelectorImpl@467144a0
06:25:18.880 [XNIO-2 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=bcd32516-38d6-4da5-a9aa-c3afe817a08b; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:34355]}, cookies=[:]): --bcd32516-38d6-4da5-a9aa-c3afe817a08b
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--bcd32516-38d6-4da5-a9aa-c3afe817a08b
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--bcd32516-38d6-4da5-a9aa-c3afe817a08b--
 }
06:25:18.886 [XNIO-2 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:25:18.888 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@32744966
06:25:18.912 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@32d6c7cd
06:25:18.920 [XNIO-3 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-1', selector sun.nio.ch.EPollSelectorImpl@3131594e
06:25:18.926 [XNIO-3 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-2', selector sun.nio.ch.EPollSelectorImpl@55812aec
06:25:18.936 [XNIO-3 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-3', selector sun.nio.ch.EPollSelectorImpl@18e2629b
06:25:18.949 [XNIO-3 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-4', selector sun.nio.ch.EPollSelectorImpl@11ea5b6a
06:25:18.951 [XNIO-3 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-6', selector sun.nio.ch.EPollSelectorImpl@24fbd50f
06:25:18.954 [XNIO-3 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-7', selector sun.nio.ch.EPollSelectorImpl@1ef86f46
06:25:18.958 [XNIO-3 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-8', selector sun.nio.ch.EPollSelectorImpl@3d0e973c
06:25:18.958 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:18.960 [XNIO-3 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 I/O-5', selector sun.nio.ch.EPollSelectorImpl@64c14d70
06:25:18.966 [XNIO-3 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-3 Accept', selector sun.nio.ch.EPollSelectorImpl@3649f2e2
06:25:19.003 [XNIO-3 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=d7e7591c-96c6-491f-984e-60e4e4c0a5e1; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:33711]}, cookies=[:]): --d7e7591c-96c6-491f-984e-60e4e4c0a5e1
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--d7e7591c-96c6-491f-984e-60e4e4c0a5e1
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--d7e7591c-96c6-491f-984e-60e4e4c0a5e1--
 }
06:25:19.008 [XNIO-3 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:25:19.009 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@32d6c7cd
06:25:19.022 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@1f047686
06:25:19.034 [XNIO-4 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-1', selector sun.nio.ch.EPollSelectorImpl@544ef1eb
06:25:19.038 [XNIO-4 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-6', selector sun.nio.ch.EPollSelectorImpl@7ed7f153
06:25:19.038 [XNIO-4 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-7', selector sun.nio.ch.EPollSelectorImpl@56d508d7
06:25:19.039 [XNIO-4 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-8', selector sun.nio.ch.EPollSelectorImpl@3fbf179c
06:25:19.042 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:19.034 [XNIO-4 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-4', selector sun.nio.ch.EPollSelectorImpl@14929d3
06:25:19.034 [XNIO-4 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-2', selector sun.nio.ch.EPollSelectorImpl@101706e3
06:25:19.034 [XNIO-4 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-5', selector sun.nio.ch.EPollSelectorImpl@3f9fb4c0
06:25:19.034 [XNIO-4 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 I/O-3', selector sun.nio.ch.EPollSelectorImpl@6685610b
06:25:19.042 [XNIO-4 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-4 Accept', selector sun.nio.ch.EPollSelectorImpl@1463e1ca
06:25:19.070 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=627f4719-c1cf-455f-950a-3a9f9c2457dc; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:34661]}, cookies=[:]): --627f4719-c1cf-455f-950a-3a9f9c2457dc
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--627f4719-c1cf-455f-950a-3a9f9c2457dc
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--627f4719-c1cf-455f-950a-3a9f9c2457dc--
 }
06:25:19.074 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:25:19.075 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@1f047686
06:25:19.081 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@5fb3cf2e
06:25:19.087 [XNIO-5 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-1', selector sun.nio.ch.EPollSelectorImpl@1b1733b8
06:25:19.090 [XNIO-5 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-2', selector sun.nio.ch.EPollSelectorImpl@56323dc9
06:25:19.093 [XNIO-5 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-3', selector sun.nio.ch.EPollSelectorImpl@48ad4ec5
06:25:19.094 [XNIO-5 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-5', selector sun.nio.ch.EPollSelectorImpl@4706f6ca
06:25:19.094 [XNIO-5 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-6', selector sun.nio.ch.EPollSelectorImpl@6ed66022
06:25:19.104 [XNIO-5 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-8', selector sun.nio.ch.EPollSelectorImpl@79fadb86
06:25:19.094 [XNIO-5 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-4', selector sun.nio.ch.EPollSelectorImpl@481c67b9
06:25:19.094 [XNIO-5 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 I/O-7', selector sun.nio.ch.EPollSelectorImpl@7d0687e
06:25:19.106 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:19.107 [XNIO-5 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-5 Accept', selector sun.nio.ch.EPollSelectorImpl@7fb87b1d
06:25:19.122 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Content-Type=[multipart/form-data; boundary=3c291025-62b2-438c-9c72-489ba846bb5c; charset=utf-8], Content-Length=[388], User-Agent=[okhttp/3.5.0], Host=[localhost:34807]}, cookies=[:]): --3c291025-62b2-438c-9c72-489ba846bb5c
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--3c291025-62b2-438c-9c72-489ba846bb5c
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--3c291025-62b2-438c-9c72-489ba846bb5c--
 }
06:25:19.127 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:25:19.128 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@5fb3cf2e