PingControllerRestTest

5

tests

0

failures

0

ignored

0.035s

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.004s passed
pongPostReturnsPongedWithSubject() pongPostReturnsPongedWithSubject() 0.007s passed
pongReturnsPongedWithSubject() pongReturnsPongedWithSubject() 0.005s passed
versionReturnsVersionInfo() versionReturnsVersionInfo() 0.008s passed

Standard output

2026-08-10T14:41:15.837Z  INFO 233 --- [    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-10T14:41:15.856Z  INFO 233 --- [    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-10T14:41:15.904Z  INFO 233 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Starting PingControllerRestTest using Java 21.0.11 with PID 233 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/mihoe_pmd-cognitive-complexity-refactorings-376268732714)
2026-08-10T14:41:15.904Z  INFO 233 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T14:41:16.230Z  INFO 233 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T14:41:16.230Z  INFO 233 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T14:41:16.230Z  INFO 233 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms
2026-08-10T14:41:16.235Z  INFO 233 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Started PingControllerRestTest in 0.353 seconds (process running for 30.464)

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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzY0NzYsImp0aSI6IjlmNDZkNmUyLTgwNzUtNGNlZS1hODdmLWViYWExYjNhMTQ4OCJ9.rzGOSAHS8voLzGsnlDvT0oWDTR_g_JG_UyVAlIBRYTLAI90QYhLPFiho3U5VU-hOmputNBOd5iFNRjIm75hArDFkVtlC3fu_SM4qm2BFLw0o_sVRLtuzv0P0JWcK-F5RRo7ICfGHpu_A3xXh2GvCiOC5rIl5FhW2kGme8rtDs7Bbl_NhiR7075Sj8tfpiv8z1UO4zB8IbbgmFT0sS0INT33wqdyNilm0-zWvmMDHY1_31IpONDODnLEfmlFCW0w9UHxnQkXlzL-hq77_DFzBQL3zoYkdWmo5RZ94sn3o4JL0dV1kyDJqXHI-T5C3IYQ_ojMlzxF-UNRc8MaRQCudsQ", 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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzY0NzYsImp0aSI6Ijk3NTQ3NzA5LWNjNDgtNDEyOS04MjYxLTYzMTQ0OWUyMzlkOCJ9.k_W-qBQcYF6nm92TNlleeyPutDqgDtejIautV1Ph02vWcOia343DvprTif6wqThhyYxnj1g5irEMK4r5LSFcSKZJMqkUM2W9RjolW64Kr5iIl1OqLSWAWF7k7SU2erkWgX5B8TALmDW5ukDumod4e0oZt4O6A10LaWti0wDnIxGLs6BEXkllaX0O-ABwDPhtR_FV9f9rhzdItif9uqGWn7SVOFaUUGHUNDkSeMKvU1njI8PpvZPHvdBrs6Lsk55s3m4msgN6cRtuaFcOGCg60T-evm3jHLn02cGvUlC31CZJFpvG7t8m7G0-aSJpoULYdGsH8JMFn3h-5GMPoylu4g", 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 = []