Class groovyx.net.http.OkHttpEncodersSpec

5

tests

0

failures

0

ignored

0.220s

duration

100%

successful

Tests

Test Duration Result
multipart: field 0.145s passed
multipart: file (bytes) 0.014s passed
multipart: file (path) 0.032s passed
multipart: file (stream) 0.013s passed
multipart: file (string) 0.016s passed

Standard output

07:28:46.603 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@18f15447
07:28:46.604 [XNIO-53 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-1', selector sun.nio.ch.EPollSelectorImpl@5cb6c9d3
07:28:46.604 [XNIO-53 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-3', selector sun.nio.ch.EPollSelectorImpl@4565454d
07:28:46.604 [XNIO-53 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-2', selector sun.nio.ch.EPollSelectorImpl@4c0ee6d7
07:28:46.604 [XNIO-53 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-4', selector sun.nio.ch.EPollSelectorImpl@1a3ee0a5
07:28:46.604 [XNIO-53 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-5', selector sun.nio.ch.EPollSelectorImpl@7b7bbf
07:28:46.604 [XNIO-53 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-6', selector sun.nio.ch.EPollSelectorImpl@5b77a42e
07:28:46.604 [XNIO-53 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-8', selector sun.nio.ch.EPollSelectorImpl@dabbbfa
07:28:46.604 [XNIO-53 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 Accept', selector sun.nio.ch.EPollSelectorImpl@6773a050
07:28:46.604 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:28:46.604 [XNIO-53 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-53 I/O-7', selector sun.nio.ch.EPollSelectorImpl@52068186
07:28:46.631 [XNIO-53 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=73869d59-f86a-4803-89d3-e370647d86f1], User-Agent=[okhttp/3.5.0], Host=[localhost:34735]}, cookies=[:]): --73869d59-f86a-4803-89d3-e370647d86f1
Content-Disposition: form-data; name="alpha"
Content-Length: 3

one
--73869d59-f86a-4803-89d3-e370647d86f1
Content-Disposition: form-data; name="bravo"
Content-Length: 3

two
--73869d59-f86a-4803-89d3-e370647d86f1--
 }
07:28:46.710 [XNIO-53 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:28:46.711 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@18f15447
07:28:46.722 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@70a97232
07:28:46.724 [XNIO-54 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-2', selector sun.nio.ch.EPollSelectorImpl@22b7a238
07:28:46.724 [XNIO-54 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-1', selector sun.nio.ch.EPollSelectorImpl@41397d00
07:28:46.724 [XNIO-54 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-3', selector sun.nio.ch.EPollSelectorImpl@16f4307
07:28:46.724 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:28:46.724 [XNIO-54 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-4', selector sun.nio.ch.EPollSelectorImpl@3994df94
07:28:46.724 [XNIO-54 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-5', selector sun.nio.ch.EPollSelectorImpl@6be4ffe7
07:28:46.724 [XNIO-54 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 Accept', selector sun.nio.ch.EPollSelectorImpl@16d80187
07:28:46.724 [XNIO-54 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-8', selector sun.nio.ch.EPollSelectorImpl@140bf88e
07:28:46.724 [XNIO-54 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-7', selector sun.nio.ch.EPollSelectorImpl@765bf8f3
07:28:46.724 [XNIO-54 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-54 I/O-6', selector sun.nio.ch.EPollSelectorImpl@6c79be6d
07:28:46.740 [XNIO-54 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=387bf05c-e07b-44ad-a4bc-d186538abfc6], User-Agent=[okhttp/3.5.0], Host=[localhost:33175]}, cookies=[:]): --387bf05c-e07b-44ad-a4bc-d186538abfc6
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--387bf05c-e07b-44ad-a4bc-d186538abfc6
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--387bf05c-e07b-44ad-a4bc-d186538abfc6--
 }
07:28:46.742 [XNIO-54 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:28:46.743 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@70a97232
07:28:46.747 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@6692305e
07:28:46.748 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:28:46.749 [XNIO-55 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-4', selector sun.nio.ch.EPollSelectorImpl@a7700f4
07:28:46.749 [XNIO-55 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-3', selector sun.nio.ch.EPollSelectorImpl@57b8bb
07:28:46.749 [XNIO-55 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-1', selector sun.nio.ch.EPollSelectorImpl@5d451431
07:28:46.749 [XNIO-55 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-2', selector sun.nio.ch.EPollSelectorImpl@3e105439
07:28:46.749 [XNIO-55 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-5', selector sun.nio.ch.EPollSelectorImpl@67852713
07:28:46.749 [XNIO-55 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-6', selector sun.nio.ch.EPollSelectorImpl@3f70d01a
07:28:46.749 [XNIO-55 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-7', selector sun.nio.ch.EPollSelectorImpl@2424490b
07:28:46.749 [XNIO-55 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 I/O-8', selector sun.nio.ch.EPollSelectorImpl@7da56100
07:28:46.749 [XNIO-55 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-55 Accept', selector sun.nio.ch.EPollSelectorImpl@2f8edc47
07:28:46.754 [XNIO-55 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=3f11c28d-a82a-4c16-a963-1801952df68a], User-Agent=[okhttp/3.5.0], Host=[localhost:42427]}, cookies=[:]): --3f11c28d-a82a-4c16-a963-1801952df68a
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--3f11c28d-a82a-4c16-a963-1801952df68a
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--3f11c28d-a82a-4c16-a963-1801952df68a--
 }
07:28:46.757 [XNIO-55 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:28:46.758 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@6692305e
07:28:46.761 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@10ccb494
07:28:46.762 [XNIO-56 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-2', selector sun.nio.ch.EPollSelectorImpl@63e46a35
07:28:46.762 [XNIO-56 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-1', selector sun.nio.ch.EPollSelectorImpl@6b386343
07:28:46.762 [XNIO-56 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-3', selector sun.nio.ch.EPollSelectorImpl@3d050567
07:28:46.762 [XNIO-56 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-4', selector sun.nio.ch.EPollSelectorImpl@7fb96ae2
07:28:46.762 [XNIO-56 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-5', selector sun.nio.ch.EPollSelectorImpl@5e4170b4
07:28:46.762 [XNIO-56 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-6', selector sun.nio.ch.EPollSelectorImpl@30310f1
07:28:46.762 [XNIO-56 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-7', selector sun.nio.ch.EPollSelectorImpl@39a42647
07:28:46.762 [XNIO-56 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 I/O-8', selector sun.nio.ch.EPollSelectorImpl@c9f3647
07:28:46.762 [XNIO-56 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-56 Accept', selector sun.nio.ch.EPollSelectorImpl@2e7100a0
07:28:46.762 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:28:46.772 [XNIO-56 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=538aa501-8ee3-44fb-9572-9c0243c92d14], User-Agent=[okhttp/3.5.0], Host=[localhost:33997]}, cookies=[:]): --538aa501-8ee3-44fb-9572-9c0243c92d14
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--538aa501-8ee3-44fb-9572-9c0243c92d14
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--538aa501-8ee3-44fb-9572-9c0243c92d14--
 }
07:28:46.774 [XNIO-56 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:28:46.775 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@10ccb494
07:28:46.777 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@7a12403f
07:28:46.779 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:28:46.779 [XNIO-57 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-5', selector sun.nio.ch.EPollSelectorImpl@30979069
07:28:46.779 [XNIO-57 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-2', selector sun.nio.ch.EPollSelectorImpl@1a5e547f
07:28:46.779 [XNIO-57 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 Accept', selector sun.nio.ch.EPollSelectorImpl@239ccd3
07:28:46.779 [XNIO-57 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-1', selector sun.nio.ch.EPollSelectorImpl@2c0add36
07:28:46.779 [XNIO-57 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-3', selector sun.nio.ch.EPollSelectorImpl@5d29ddfa
07:28:46.779 [XNIO-57 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-8', selector sun.nio.ch.EPollSelectorImpl@32ac5505
07:28:46.779 [XNIO-57 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-4', selector sun.nio.ch.EPollSelectorImpl@3c735b36
07:28:46.779 [XNIO-57 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-7', selector sun.nio.ch.EPollSelectorImpl@6550bb90
07:28:46.779 [XNIO-57 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-57 I/O-6', selector sun.nio.ch.EPollSelectorImpl@24dbf1cd
07:28:46.785 [XNIO-57 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=2bd92feb-82e5-41c7-97a2-cee29584a6a2], User-Agent=[okhttp/3.5.0], Host=[localhost:38673]}, cookies=[:]): --2bd92feb-82e5-41c7-97a2-cee29584a6a2
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Length: 14

some-a-content
--2bd92feb-82e5-41c7-97a2-cee29584a6a2
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Length: 14

some-b-content
--2bd92feb-82e5-41c7-97a2-cee29584a6a2--
 }
07:28:46.786 [XNIO-57 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:28:46.787 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@7a12403f