PingControllerRestTest

5

tests

0

failures

0

ignored

0.043s

duration

100%

successful

Tests

Test Method name Duration Result
[1] testCase=EN pingReturnsPingedInRequestedLanguage(I18nTestCases)[1] 0.011s passed
[2] testCase=DE pingReturnsPingedInRequestedLanguage(I18nTestCases)[2] 0.005s passed
pongPostReturnsPongedWithSubject() pongPostReturnsPongedWithSubject() 0.009s passed
pongReturnsPongedWithSubject() pongReturnsPongedWithSubject() 0.008s passed
versionReturnsVersionInfo() versionReturnsVersionInfo() 0.010s passed

Standard output

2026-08-10T13:31:47.688Z  INFO 234 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.ping.PingControllerRestTest]: PingControllerRestTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T13:31:47.706Z  INFO 234 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.ping.PingControllerRestTest

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.5.5)

2026-08-10T13:31:47.723Z  INFO 234 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Starting PingControllerRestTest using Java 21.0.11 with PID 234 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/mihoe_base-tx-context-seqTxId-performance-3915db90eedb)
2026-08-10T13:31:47.723Z  INFO 234 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T13:31:48.068Z  INFO 234 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T13:31:48.068Z  INFO 234 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T13:31:48.069Z  INFO 234 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms
2026-08-10T13:31:48.074Z  INFO 234 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Started PingControllerRestTest in 0.364 seconds (process running for 29.014)

MockHttpServletRequest:
      HTTP Method = GET
      Request URI = /api/ping
       Parameters = {}
          Headers = [Accept-Language:"en", Accept:"text/plain"]
             Body = null
    Session Attrs = {}

Handler:
             Type = net.hostsharing.hsadminng.ping.PingController
           Method = net.hostsharing.hsadminng.ping.PingController#ping()

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = null

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 200
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"text/plain;charset=UTF-8", Content-Length:"20", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
     Content type = text/plain;charset=UTF-8
             Body = pinged - in English

    Forwarded URL = null
   Redirected URL = null
          Cookies = []

MockHttpServletRequest:
      HTTP Method = GET
      Request URI = /api/ping
       Parameters = {}
          Headers = [Accept-Language:"de", Accept:"text/plain"]
             Body = null
    Session Attrs = {}

Handler:
             Type = net.hostsharing.hsadminng.ping.PingController
           Method = net.hostsharing.hsadminng.ping.PingController#ping()

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = null

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 200
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"text/plain;charset=UTF-8", Content-Length:"21", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
     Content type = text/plain;charset=UTF-8
             Body = pinged - auf Deutsch

    Forwarded URL = null
   Redirected URL = null
          Cookies = []

MockHttpServletRequest:
      HTTP Method = POST
      Request URI = /api/pong
       Parameters = {}
          Headers = [Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzIzMDgsImp0aSI6IjA2Y2NiNWQzLWYxZDItNDk1Yy04OWVkLTU2MDI4N2JlMTk2MiJ9.BZPd2DUhDZaQ5fe9ZErBJ07IrdogJZPsOrrtgH0goDU7SWnOtvsppEabldnLzC-XfNlAaXjRPUoe89avTHXaa_IW-gZDRHIkq3PQYVPCRyu1C0V7VOateeud9dd-gj4NPOmWCU_PQfkIlMvBeiJdO5Xqq-Va435M2ktdSDdC1_wLgF6XrLG5lWojT67sx3K3Xkj964nfwZgxnvwKqyficUWWs8QA_ZgEbhbURfjLtlXCHJAQT6Bj8vqME6b90Vf3jtmRy1XIabdY4sW-d7x84DzuVlLp_18QhFcxOji6TUqeD8-6vlrkvdBTXgoYxSnvpePUgmWBUD1RSI3hoRF7lQ", Accept-Language:"de", Accept:"text/plain"]
             Body = null
    Session Attrs = {}

Handler:
             Type = net.hostsharing.hsadminng.ping.PingController
           Method = net.hostsharing.hsadminng.ping.PingController#pongPost()

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = null

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 200
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"text/plain;charset=UTF-8", Content-Length:"40", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
     Content type = text/plain;charset=UTF-8
             Body = ponged hsh-alex_superuser - auf Deutsch

    Forwarded URL = null
   Redirected URL = null
          Cookies = []

MockHttpServletRequest:
      HTTP Method = GET
      Request URI = /api/version
       Parameters = {}
          Headers = [Accept:"application/json"]
             Body = null
    Session Attrs = {}

Handler:
             Type = net.hostsharing.hsadminng.ping.PingController
           Method = net.hostsharing.hsadminng.ping.PingController#version()

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = null

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 200
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"application/json", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
     Content type = application/json
             Body = {"version":"0.0.1-SNAPSHOT","group":"net.hostsharing","artifact":"hsadmin-ng","name":"hsadmin-ng","buildTime":"2026-07-10T17:34:23.309Z","buildHost":"test-build-host","gitBranch":"master","gitCommit":"0123456789abcdef0123456789abcdef01234567","gitDirty":false}
    Forwarded URL = null
   Redirected URL = null
          Cookies = []

MockHttpServletRequest:
      HTTP Method = GET
      Request URI = /api/pong
       Parameters = {}
          Headers = [Authorization:"Bearer eyJraWQiOiJ0ZXN0LWtleSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzIzMDgsImp0aSI6IjYzMjQ3ZTlhLTVhZGItNGExZS1iM2I3LTc4OTQwOGE5M2M2MCJ9.gxlLTZ9J8LIBYSlnLaRmy72DU1rlCAnNlqai1TkWwKrRjO0SPlLiGgdELmRXe42XnQjT0Q4wRiUV3qUDA8eJOavHbuxbzLMEBVINkTTAAh4452vh4R4k7pn1hAUzASD5ERECcn_1xpWPS9EZKy0p0AxCRcwKLWHeuoTEAz-eDqfjfoTFTQjIi6wzxP6PmDeT09pqNnV6tL2-xPVbcyiQ0f52gQyj5RjsVa9cw9CaQ6bjb_qrYC0pKj9xeB8UqpORdRm0cqqLFcJN8tD37J1hBtfW4uHQ5W3oC3I3t5C5r9sogcU8OEC107B2fSC34277qG3M8L4kJzmtRTID5ytPKw", Accept-Language:"de", Accept:"text/plain"]
             Body = null
    Session Attrs = {}

Handler:
             Type = net.hostsharing.hsadminng.ping.PingController
           Method = net.hostsharing.hsadminng.ping.PingController#pong()

Async:
    Async started = false
     Async result = null

Resolved Exception:
             Type = null

ModelAndView:
        View name = null
             View = null
            Model = null

FlashMap:
       Attributes = null

MockHttpServletResponse:
           Status = 200
    Error message = null
          Headers = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"text/plain;charset=UTF-8", Content-Length:"40", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"]
     Content type = text/plain;charset=UTF-8
             Body = ponged hsh-alex_superuser - auf Deutsch

    Forwarded URL = null
   Redirected URL = null
          Cookies = []