PingControllerRestTest

5

tests

0

failures

0

ignored

0.056s

duration

100%

successful

Tests

Test Method name Duration Result
[1] testCase=EN pingReturnsPingedInRequestedLanguage(I18nTestCases)[1] 0.012s passed
[2] testCase=DE pingReturnsPingedInRequestedLanguage(I18nTestCases)[2] 0.005s passed
pongPostReturnsPongedWithSubject() pongPostReturnsPongedWithSubject() 0.014s passed
pongReturnsPongedWithSubject() pongReturnsPongedWithSubject() 0.007s passed
versionReturnsVersionInfo() versionReturnsVersionInfo() 0.018s passed

Standard output

2026-08-10T16:28:14.273Z  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:28:14.298Z  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:28:14.318Z  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/master-fc613b4dfd67)
2026-08-10T16:28:14.319Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T16:28:14.666Z  INFO 235 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T16:28:14.667Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T16:28:14.667Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms
2026-08-10T16:28:14.672Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Started PingControllerRestTest in 0.37 seconds (process running for 27.28)

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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzODI4OTQsImp0aSI6IjU0YmExMDc5LTFkYmUtNDIwYi04MmIwLTgxZDM2OWYxMTc1NSJ9.WK-x73ba15Rx6so0WKUO3rY7K_T3p0mrrAzAHd2ZNWrPl_eWgNx2SCWR9tr7Nk-76hF3jEhabGbHHUktQ6Mtq3mE-q3pORh5vIsB4CnmiIjI-yk3xIH9S87T5oLNZb_rFX02_eH38gP-6YBgFQLOAOyATnLppu3983_Uof7z2lbe2DQrdW6DdKCewKO0k8HEzDpUn3NDZiFwb7w0af_zXrsECjIWORhWce5XefmEKk1EnWhekt16USiyaMcONco3EiDej9mn2gdI-hVpTP9tqZU9YCh_y-SgrWTymctzIIRnMHhqpIDfVdbz1-8FY8TmKrtbEvU4iSPjnRlhTwi5zA", 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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzODI4OTQsImp0aSI6IjQ5NzFhN2ZjLWJiMGYtNDJkZS05YmMzLTg3MDk5NjJjZjE4MyJ9.JGYVF-WUgjQ9JLSHy6pflsc2yiFVmXBc0QhUEQHl-ExvuVnSIkzMFoJ34keDDB6W5kt304hsisnXUasevDuPHpiOGkroJHpODwl93ewE9IXF6AhpsjYPYT7p3FFn66a2ZpkZsbC2a2jeoajLujyoRKvJZH_86zPrhUDNuoqJok2rgG4N844TEhyoBUFN-DAk1KkYejkN2OJ7LcjWeB8xobVjYIUZWsYKWwnmnlQJIzGDV6Y2wpFhi5rkoPAXGK1lF9xwDD4VvWwrcUu4mPlAXKXfiDF0fLnqkIWhE2p60n9HjfS6jgeq-xccHCeoit65TXkaRHBjSuVzVT0wpiiv2g", 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 = []