Class groovyx.net.http.ParsersSpec

2

tests

0

failures

0

ignored

0.174s

duration

100%

successful

Tests

Test Duration Result
multipart 0.068s passed
multipart with JavaMail 0.106s passed

Standard output

06:25:00.133 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@3020c3b2
06:25:00.134 [XNIO-63 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-1', selector sun.nio.ch.EPollSelectorImpl@4e607ef
06:25:00.138 [XNIO-63 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-2', selector sun.nio.ch.EPollSelectorImpl@28ee1c99
06:25:00.142 [XNIO-63 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-3', selector sun.nio.ch.EPollSelectorImpl@5de8918e
06:25:00.142 [XNIO-63 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-4', selector sun.nio.ch.EPollSelectorImpl@1a3a926a
06:25:00.142 [XNIO-63 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-5', selector sun.nio.ch.EPollSelectorImpl@1f3b8bc1
06:25:00.146 [XNIO-63 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-6', selector sun.nio.ch.EPollSelectorImpl@1732b46
06:25:00.149 [XNIO-63 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-7', selector sun.nio.ch.EPollSelectorImpl@7dbc6832
06:25:00.150 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:00.150 [XNIO-63 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 Accept', selector sun.nio.ch.EPollSelectorImpl@24358c25
06:25:00.150 [XNIO-63 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-8', selector sun.nio.ch.EPollSelectorImpl@5979449e
06:25:00.161 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:41437/download
06:25:00.161 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
06:25:00.162 [XNIO-63 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /download (query=[:], headers={Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], Connection=[keep-alive], Accept-Encoding=[gzip, deflate], User-Agent=[Java/1.8.0_131], Host=[localhost:41437]}, cookies=[:]): <empty> }
06:25:00.168 [XNIO-63 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[multipart/mixed; boundary=abc123]}): --abc123
Content-Disposition: form-data; name="alpha"
Content-Type: text/plain

bravo
--abc123
Content-Disposition: form-data; name="charlie"; filename="charlie.txt"
Content-Type: text/plain

This is some text content
--abc123--

06:25:00.169 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: --abc123
Content-Disposition: form-data; name="alpha"
Content-Type: text/plain

bravo
--abc123
Content-Disposition: form-data; name="charlie"; filename="charlie.txt"
Content-Type: text/plain

This is some text content
--abc123--

06:25:00.169 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
06:25:00.169 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
06:25:00.169 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> multipart/mixed; boundary=abc123
06:25:00.169 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 147
06:25:00.169 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Mon, 20 Nov 2017 12:24:53 GMT
06:25:00.175 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@3020c3b2
06:25:00.185 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@4b4cd3fe
06:25:00.187 [XNIO-64 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-1', selector sun.nio.ch.EPollSelectorImpl@594c24a3
06:25:00.187 [XNIO-64 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-2', selector sun.nio.ch.EPollSelectorImpl@729d96d9
06:25:00.187 [XNIO-64 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-3', selector sun.nio.ch.EPollSelectorImpl@2dfd3b56
06:25:00.189 [XNIO-64 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-6', selector sun.nio.ch.EPollSelectorImpl@1e0c6324
06:25:00.189 [XNIO-64 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-7', selector sun.nio.ch.EPollSelectorImpl@d828c74
06:25:00.189 [XNIO-64 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-8', selector sun.nio.ch.EPollSelectorImpl@63458f17
06:25:00.187 [XNIO-64 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-4', selector sun.nio.ch.EPollSelectorImpl@41757b76
06:25:00.189 [XNIO-64 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 Accept', selector sun.nio.ch.EPollSelectorImpl@5e6db8f4
06:25:00.189 [XNIO-64 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-5', selector sun.nio.ch.EPollSelectorImpl@59138c27
06:25:00.189 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:00.200 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:45323/download
06:25:00.200 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
06:25:00.201 [XNIO-64 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /download (query=[:], headers={Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], Connection=[keep-alive], Accept-Encoding=[gzip, deflate], User-Agent=[Java/1.8.0_131], Host=[localhost:45323]}, cookies=[:]): <empty> }
06:25:00.202 [XNIO-64 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[multipart/mixed; boundary=abc123]}): --abc123
Content-Disposition: form-data; name="alpha"
Content-Type: text/plain

bravo
--abc123
Content-Disposition: form-data; name="charlie"; filename="charlie.txt"
Content-Type: text/plain

This is some text content
--abc123--

06:25:00.202 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: --abc123
Content-Disposition: form-data; name="alpha"
Content-Type: text/plain

bravo
--abc123
Content-Disposition: form-data; name="charlie"; filename="charlie.txt"
Content-Type: text/plain

This is some text content
--abc123--

06:25:00.202 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
06:25:00.202 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
06:25:00.202 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> multipart/mixed; boundary=abc123
06:25:00.202 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 147
06:25:00.202 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Mon, 20 Nov 2017 12:24:53 GMT
06:25:00.280 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@4b4cd3fe