Class groovyx.net.http.ParsersSpec

2

tests

0

failures

0

ignored

3.854s

duration

100%

successful

Tests

Test Duration Result
multipart 3.388s passed
multipart with JavaMail 0.466s passed

Standard output

19:16:15.031 [Test worker] DEBUG ersatz.jboss.logging - Logging Provider: ersatz.jboss.logging.Slf4jLoggerProvider
19:16:15.178 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@31cf7d8a
19:16:15.255 [Test worker] INFO ersatz.xnio - XNIO version 3.3.8.Final
19:16:15.359 [Test worker] INFO ersatz.xnio.nio - XNIO NIO Implementation Version 3.3.8.Final
19:16:15.688 [XNIO-1 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-1', selector sun.nio.ch.EPollSelectorImpl@568b74e0
19:16:15.714 [XNIO-1 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-2', selector sun.nio.ch.EPollSelectorImpl@7f7feeac
19:16:15.722 [XNIO-1 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-3', selector sun.nio.ch.EPollSelectorImpl@9342b
19:16:15.723 [XNIO-1 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-4', selector sun.nio.ch.EPollSelectorImpl@1db0ac9d
19:16:15.738 [XNIO-1 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-5', selector sun.nio.ch.EPollSelectorImpl@4d709b19
19:16:15.754 [XNIO-1 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-6', selector sun.nio.ch.EPollSelectorImpl@395c5d64
19:16:15.770 [XNIO-1 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-7', selector sun.nio.ch.EPollSelectorImpl@4fbd25c6
19:16:15.778 [XNIO-1 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 I/O-8', selector sun.nio.ch.EPollSelectorImpl@498b1340
19:16:15.784 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:16:15.800 [XNIO-1 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-1 Accept', selector sun.nio.ch.EPollSelectorImpl@1e3c068d
19:16:16.767 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:39959/download
19:16:16.782 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
19:16:17.046 [XNIO-1 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_222], Host=[localhost:39959]}, cookies=[:]): <empty> }
19:16:17.239 [XNIO-1 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--

19:16:17.332 [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--

19:16:17.333 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
19:16:17.334 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
19:16:17.334 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> multipart/mixed; boundary=abc123
19:16:17.334 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 147
19:16:17.334 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Sun, 11 Aug 2019 00:16:17 GMT
19:16:17.385 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@31cf7d8a
19:16:17.435 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@77fd8c97
19:16:17.449 [XNIO-2 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-1', selector sun.nio.ch.EPollSelectorImpl@21be9461
19:16:17.462 [XNIO-2 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-2', selector sun.nio.ch.EPollSelectorImpl@59eb6313
19:16:17.474 [XNIO-2 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-3', selector sun.nio.ch.EPollSelectorImpl@2472c047
19:16:17.490 [XNIO-2 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-4', selector sun.nio.ch.EPollSelectorImpl@6c410177
19:16:17.491 [XNIO-2 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-5', selector sun.nio.ch.EPollSelectorImpl@160c6ff3
19:16:17.498 [XNIO-2 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-6', selector sun.nio.ch.EPollSelectorImpl@51509ba
19:16:17.514 [XNIO-2 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-7', selector sun.nio.ch.EPollSelectorImpl@4690088
19:16:17.527 [XNIO-2 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 I/O-8', selector sun.nio.ch.EPollSelectorImpl@2d612f3a
19:16:17.542 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:16:17.560 [XNIO-2 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-2 Accept', selector sun.nio.ch.EPollSelectorImpl@4d41f439
19:16:17.564 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:38933/download
19:16:17.564 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
19:16:17.590 [XNIO-2 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_222], Host=[localhost:38933]}, cookies=[:]): <empty> }
19:16:17.595 [XNIO-2 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--

19:16:17.599 [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--

19:16:17.600 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
19:16:17.600 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
19:16:17.600 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> multipart/mixed; boundary=abc123
19:16:17.600 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 147
19:16:17.600 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Sun, 11 Aug 2019 00:16:17 GMT
19:16:17.828 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@77fd8c97