HsAccountControllerRestTest

25

tests

0

failures

0

ignored

0.455s

duration

100%

successful

Tests

Test Duration Result
deleteByAccountDeletesExisingAccount() 0.009s passed
getByUuidFetchesSingleAccount() 0.010s passed
getByUuidForUnknownAccountUuidReturnsNotFound() 0.006s passed
getCurrentLoginUserReturnsOnwAccount() 0.011s passed
getCurrentLoginUserWithoutOwnAccountReturnsSubjectWithoutPerson() 0.008s passed
getListOfAccountsForCurrentSubjectReturnsAccountsOfSamePerson() 0.008s passed
getListOfAccountsForGivenPersonUuidReturnsThatPersonsAccounts() 0.010s passed
getListOfAccountsForGlobalAdminReturnsAllAccounts() 0.014s passed
getListOfAccountsForInaccessiblePersonUuidReturnsErrorMessage() 0.010s passed
postNewAccountForSubjectWhichAlreadyHasAnAccountIsRejected() 0.009s passed
postNewAccountReferencingAnExistingUserSubjectUsesThatSubject() 0.011s passed
postNewAccountReferencingAnUnknownSubjectUuidIsRejected() 0.009s passed
postNewAccountRejectsCreatingAccountForNonNaturalPerson() 0.010s passed
postNewAccountRejectsCreatingAccountForUnknownPersonUuid() 0.008s passed
postNewAccountSucceedsEvenIfActingGlobalAdminHasNoOwnAccount() 0.010s passed
postNewAccountWithBothSubjectAndSubjectUuidIsRejected() 0.009s passed
postNewAccountWithExistingSubjectAndNewPersonCreatesAccountAndPerson() 0.016s passed
postNewAccountWithNewSubjectCreatesThatSubject() 0.012s passed
postNewAccountWithNewSubjectOfTypeGroupIsRejected() 0.016s passed
postNewAccountWithNewSubjectWhichAlreadyExistsIsRejected() 0.008s passed
postNewAccountWithNewSubjectWithoutUuidIsRejected() 0.028s passed
postNewAccountWithSubjectUuidOfGroupSubjectIsRejected() 0.009s passed
postNewAccountWithoutAnySubjectReferenceIsRejected() 0.009s passed
postNewAccountWithoutGlobalIdsAutoAssignsThemEqual() 0.196s passed
postNewAccountsRejectsCreatingAccountWithoutPersonReference() 0.009s passed

Standard output

2026-08-10T16:28:02.789Z  INFO 235 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.hs.accounts.HsAccountControllerRestTest]: HsAccountControllerRestTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T16:28:02.823Z  INFO 235 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.hs.accounts.HsAccountControllerRestTest

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

 :: Spring Boot ::                (v3.5.5)

2026-08-10T16:28:02.855Z  INFO 235 --- [    Test worker] n.h.h.h.a.HsAccountControllerRestTest    : Starting HsAccountControllerRestTest 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:02.855Z  INFO 235 --- [    Test worker] n.h.h.h.a.HsAccountControllerRestTest    : The following 2 profiles are active: "fake-jwt", "test"
2026-08-10T16:28:03.695Z  INFO 235 --- [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2026-08-10T16:28:03.695Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2026-08-10T16:28:03.696Z  INFO 235 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms
2026-08-10T16:28:03.704Z  INFO 235 --- [    Test worker] n.h.h.h.a.HsAccountControllerRestTest    : Started HsAccountControllerRestTest in 0.878 seconds (process running for 16.312)