Class groovyx.net.http.ApacheEncodersSpec

5

tests

0

failures

0

ignored

2.931s

duration

100%

successful

Tests

Test Duration Result
multipart: field 2.826s passed
multipart: file (bytes) 0.022s passed
multipart: file (path) 0.041s passed
multipart: file (stream) 0.017s passed
multipart: file (string) 0.025s passed

Standard output

07:27:48.164 [Test worker] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
07:27:48.181 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@1dbcf893
07:27:48.198 [Test worker] INFO org.xnio - XNIO version 3.3.6.Final
07:27:48.240 [Test worker] INFO org.xnio.nio - XNIO NIO Implementation Version 3.3.6.Final
07:27:48.320 [XNIO-1 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-1', selector sun.nio.ch.EPollSelectorImpl@4c7d8e16
07:27:48.320 [XNIO-1 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-2', selector sun.nio.ch.EPollSelectorImpl@5afe0ff7
07:27:48.320 [XNIO-1 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-3', selector sun.nio.ch.EPollSelectorImpl@432dbb7f
07:27:48.320 [XNIO-1 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-4', selector sun.nio.ch.EPollSelectorImpl@2e08689d
07:27:48.320 [XNIO-1 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-5', selector sun.nio.ch.EPollSelectorImpl@5e2a3560
07:27:48.321 [XNIO-1 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-6', selector sun.nio.ch.EPollSelectorImpl@28003697
07:27:48.321 [XNIO-1 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-7', selector sun.nio.ch.EPollSelectorImpl@2be28d05
07:27:48.321 [XNIO-1 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 I/O-8', selector sun.nio.ch.EPollSelectorImpl@43b20007
07:27:48.321 [XNIO-1 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-1 Accept', selector sun.nio.ch.EPollSelectorImpl@67d35ea6
07:27:48.324 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:27:48.779 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=rYOxl7mLY0], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_121)], Host=[localhost:40173]}, cookies=[:]): --rYOxl7mLY0
Content-Disposition: form-data; name="alpha"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

one
--rYOxl7mLY0
Content-Disposition: form-data; name="bravo"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

two
--rYOxl7mLY0--
 }
07:27:48.936 [XNIO-1 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:27:49.021 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@1dbcf893
07:27:49.040 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@2b9cd2bd
07:27:49.042 [XNIO-2 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-2', selector sun.nio.ch.EPollSelectorImpl@7eb768c0
07:27:49.042 [XNIO-2 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-1', selector sun.nio.ch.EPollSelectorImpl@63bed306
07:27:49.042 [XNIO-2 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-4', selector sun.nio.ch.EPollSelectorImpl@22436e09
07:27:49.042 [XNIO-2 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-3', selector sun.nio.ch.EPollSelectorImpl@4e4c4cd8
07:27:49.042 [XNIO-2 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-5', selector sun.nio.ch.EPollSelectorImpl@4141ef27
07:27:49.042 [XNIO-2 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-6', selector sun.nio.ch.EPollSelectorImpl@4dad3a84
07:27:49.042 [XNIO-2 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-7', selector sun.nio.ch.EPollSelectorImpl@56d583ff
07:27:49.043 [XNIO-2 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 I/O-8', selector sun.nio.ch.EPollSelectorImpl@1af29bb4
07:27:49.043 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:27:49.043 [XNIO-2 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-2 Accept', selector sun.nio.ch.EPollSelectorImpl@6572a78e
07:27:49.061 [XNIO-2 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=BFVk2xMlJJ], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_121)], Host=[localhost:37063]}, cookies=[:]): --BFVk2xMlJJ
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--BFVk2xMlJJ
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--BFVk2xMlJJ--
 }
07:27:49.064 [XNIO-2 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:27:49.065 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@2b9cd2bd
07:27:49.072 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@c196921
07:27:49.075 [XNIO-3 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-2', selector sun.nio.ch.EPollSelectorImpl@f18b416
07:27:49.075 [XNIO-3 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-1', selector sun.nio.ch.EPollSelectorImpl@696f492c
07:27:49.075 [XNIO-3 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-3', selector sun.nio.ch.EPollSelectorImpl@6cdb5e7d
07:27:49.075 [XNIO-3 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-4', selector sun.nio.ch.EPollSelectorImpl@6752db81
07:27:49.075 [XNIO-3 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-5', selector sun.nio.ch.EPollSelectorImpl@2669aa66
07:27:49.075 [XNIO-3 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-6', selector sun.nio.ch.EPollSelectorImpl@2220b591
07:27:49.075 [XNIO-3 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-7', selector sun.nio.ch.EPollSelectorImpl@18572013
07:27:49.075 [XNIO-3 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 I/O-8', selector sun.nio.ch.EPollSelectorImpl@9e6e1de
07:27:49.075 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:27:49.075 [XNIO-3 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-3 Accept', selector sun.nio.ch.EPollSelectorImpl@14a981d8
07:27:49.083 [XNIO-3 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=Wl9FTc82Ia], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_121)], Host=[localhost:37019]}, cookies=[:]): --Wl9FTc82Ia
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--Wl9FTc82Ia
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--Wl9FTc82Ia--
 }
07:27:49.086 [XNIO-3 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:27:49.087 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@c196921
07:27:49.093 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@70ef0572
07:27:49.095 [XNIO-4 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-1', selector sun.nio.ch.EPollSelectorImpl@6cfc744
07:27:49.096 [XNIO-4 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-2', selector sun.nio.ch.EPollSelectorImpl@50acb3e6
07:27:49.097 [XNIO-4 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-3', selector sun.nio.ch.EPollSelectorImpl@61ed8c0
07:27:49.097 [XNIO-4 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-5', selector sun.nio.ch.EPollSelectorImpl@76ad37bc
07:27:49.097 [XNIO-4 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-4', selector sun.nio.ch.EPollSelectorImpl@6ac9d034
07:27:49.097 [XNIO-4 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-6', selector sun.nio.ch.EPollSelectorImpl@7f8b52be
07:27:49.098 [XNIO-4 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-7', selector sun.nio.ch.EPollSelectorImpl@4302cc75
07:27:49.098 [XNIO-4 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 I/O-8', selector sun.nio.ch.EPollSelectorImpl@d4324c5
07:27:49.098 [XNIO-4 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-4 Accept', selector sun.nio.ch.EPollSelectorImpl@47efc1f3
07:27:49.098 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:27:49.108 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=oaFk9uEMGL], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_121)], Host=[localhost:37145]}, cookies=[:]): --oaFk9uEMGL
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--oaFk9uEMGL
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--oaFk9uEMGL--
 }
07:27:49.111 [XNIO-4 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:27:49.112 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@70ef0572
07:27:49.117 [Test worker] DEBUG io.undertow - starting undertow server io.undertow.Undertow@49db39bd
07:27:49.118 [XNIO-5 I/O-2] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-2', selector sun.nio.ch.EPollSelectorImpl@4461c408
07:27:49.118 [XNIO-5 I/O-3] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-3', selector sun.nio.ch.EPollSelectorImpl@58d13163
07:27:49.118 [XNIO-5 I/O-4] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-4', selector sun.nio.ch.EPollSelectorImpl@1e819b7f
07:27:49.118 [XNIO-5 I/O-1] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-1', selector sun.nio.ch.EPollSelectorImpl@2c1e3541
07:27:49.118 [Test worker] DEBUG io.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
07:27:49.118 [XNIO-5 I/O-5] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-5', selector sun.nio.ch.EPollSelectorImpl@3d4c77a1
07:27:49.118 [XNIO-5 I/O-8] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-8', selector sun.nio.ch.EPollSelectorImpl@336514e1
07:27:49.119 [XNIO-5 I/O-7] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-7', selector sun.nio.ch.EPollSelectorImpl@10800235
07:27:49.119 [XNIO-5 Accept] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 Accept', selector sun.nio.ch.EPollSelectorImpl@549a7be8
07:27:49.119 [XNIO-5 I/O-6] DEBUG org.xnio.nio - Started channel thread 'XNIO-5 I/O-6', selector sun.nio.ch.EPollSelectorImpl@85e808e
07:27:49.126 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { POST /multi (query=[:], headers={Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate], Transfer-Encoding=[chunked], Content-Type=[multipart/form-data; boundary=KJkC3swAaQ], User-Agent=[Apache-HttpClient/4.5.2 (Java/1.8.0_121)], Host=[localhost:37377]}, cookies=[:]): --KJkC3swAaQ
Content-Disposition: form-data; name="filea"; filename="file-a.txt"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-a-content
--KJkC3swAaQ
Content-Disposition: form-data; name="fileb"; filename="file-b.xtx"
Content-Type: text/plain
Content-Transfer-Encoding: binary

some-b-content
--KJkC3swAaQ--
 }
07:27:49.128 [XNIO-5 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
07:27:49.129 [Test worker] DEBUG io.undertow - stopping undertow server io.undertow.Undertow@49db39bd