PingControllerRestTest

5

tests

0

failures

0

ignored

0.033s

duration

100%

successful

Tests

Test Method name Duration Result
[1] testCase=EN pingReturnsPingedInRequestedLanguage(I18nTestCases)[1] 0.007s passed
[2] testCase=DE pingReturnsPingedInRequestedLanguage(I18nTestCases)[2] 0.004s passed
pongPostReturnsPongedWithSubject() pongPostReturnsPongedWithSubject() 0.009s passed
pongReturnsPongedWithSubject() pongReturnsPongedWithSubject() 0.006s passed
versionReturnsVersionInfo() versionReturnsVersionInfo() 0.007s passed

Standard output

2026-08-10T15:02:21.405Z  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-10T15:02:21.432Z  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-10T15:02:21.458Z  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_base-tx-context-seqTxId-performance-3915db90eedb)
2026-08-10T15:02:21.459Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T15:02:21.827Z  INFO 235 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T15:02:21.827Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T15:02:21.828Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms
2026-08-10T15:02:21.832Z  INFO 235 --- [    Test worker] n.h.h.ping.PingControllerRestTest        : Started PingControllerRestTest in 0.393 seconds (process running for 31.132)

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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzc3NDEsImp0aSI6ImRiMTk5OTgzLTUzN2EtNGYxZS1iYjIwLWFkODYwOTk1NjIyOSJ9.eoNz5HPc4OzwQVG5ub2KAfXh6VxkaKskjbOWMJGn0VI_mCcgZJnc1Jac-idztcqtBA1B4FE1Q1pb_cggK6yLD3jVAwj7PncedNVGvjI86l4U7u4jh_xss5s2PFQKn_kwzKFi-HsEbiSwKIawq8dugbn6d-WTyRNMQP9qqc4Hh-aelvb1SB5vat-329uUKJpAls-gEVWwzw_oPt8pT40nU57q5jzz-taIOL374S8BghanXV8EKfXBNTvx4BExNc40q9zI1oY__9LJZPiho3i94M8KAvRYJxakwcOIb9e0UHlYZjz0OiWPhXuk4Ic8qQaid481iqE5r3kEnQeDQgHQ1Q", 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.eyJpc3MiOiJodHRwOi8vdGVzdC1pc3N1ZXIiLCJzdWIiOiJoc2gtYWxleF9zdXBlcnVzZXIiLCJhdWQiOiJhcGkiLCJncm91cHMiOltdLCJleHAiOjE3ODYzNzc3NDEsImp0aSI6IjUwYTFhNzYzLWYzZjYtNGEzYi1iZjhkLThiNzlkNjUxZjUzNiJ9.SX1O6lGafM7yTF6NA2BvGqHpP8TudrFPURkzbLGXeqhA4iz6zRp7pbRca1rLtGUohPAoNe6leqfKksMzFhCbut5BqtdIuiDCePTrptLPAZolxOmb6I8cM1HOIU722TTtDRmLsFd3p39Bu4QgcH-crux7WvUMIkhhxrK1IyYmVrgZk8U1EOHrGHU4syQrvhvW4Hdb3SGwjv9zqBcIX2KWhKm9T-ltrqlaPIzIzWsyUItC7nSAqrqbHbull57TOOan1jxqnFObn9OLJF5lm92p2cBOuXDSM3_lpkUOSd4UHIrZ8uxxsfEOMHX0r6YWnbTRZQxrp0iHup2EPX1_03sPzw", 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 = []