PingControllerRestTest

5

tests

0

failures

0

ignored

0.032s

duration

100%

successful

Tests

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

Standard output

2026-08-10T16:36:14.824Z  INFO 235 --- [    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-10T16:36:14.858Z  INFO 235 --- [    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-10T16:36:14.897Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Starting PingControllerRestTest using Java 21.0.11 with PID 235 (started by root in /home/tallyman/hs.hsadmin.ng/.git/gittally/worktrees/mihoe_ci-build-performance-improvements-8da83bafd50c)
2026-08-10T16:36:14.898Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T16:36:15.335Z  INFO 235 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T16:36:15.336Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T16:36:15.336Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms
2026-08-10T16:36:15.340Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Started PingControllerRestTest in 0.472 seconds (process running for 28.208)

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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzODMzNzUsImp0aSI6IjBlNWQ0MTdkLTQ1OTAtNGVjNi04MTQyLTA2MTc4NjYzOTc0NCJ9.jkC89aXporfJJQNzWyxjjlrC3Wwoh8OUMh08rlIV0Si585exS9ZxLk2TK6k1KBF0hsD1OO-Wo_ZJb7Kuo7tgLo2bLQg9GadPonv91R9NTwDMxAo-L8dOA7EVFPwa6W2PwSC1pdfTl6lqTV8LUE4EbU-82Cd8Ft-DjB7cMXp5pgDw2ZymMisD0FCfM4zbCAd2orJrvuRaWBIvOkt1TF2OndyiqXnwwz0nnwvd3hwyg857unoT2ML3tFjZOnFPCO9ll0VLVfCC8i9Z2KBPsB-LtjZPEF3G9Q0lYivV0wn_xERt3DYqVvLxl7ug0cbepHZvbk7RNAzKwcpdaOD7gqHacg", 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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzODMzNzUsImp0aSI6IjBjNDBkZWNhLWIwZmQtNDdiYS05MzMxLTUyYjA1Y2Y4MTEzMyJ9.IcBqP41UmAtKJshNq2UbJRYmCuXS78639JipO1p-WY8Orximob4ID3iqKXjppPhgPNHaRjJq0STWhHpBKJ5mHbxofVVixGnOjDGk0hGJsyn1ypqK_z7TjROkJW6hKtwKD1G0C4DTPCZEM8BBNH52uXGy1Wa3HPmTnKYHxo8oP68YXgiysyjlo2yLSe7JCYYiQzcDD-rQQWRe11BS3fevF0GMRtvXnadbn6ew8PhvXf1dpTYakqsrlOutWdx3CAE5LEcbN3MtqZTFPMSau3KHxR72V6mY2YjusIlbHEbOgAcR1x6F3cltqdlCbOn1Hfo5p2r_xPLy6q_PShNvCZm82g", 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 = []