HsAccountControllerRestTest
|
100%
successful |
Tests
| Test | Duration | Result |
|---|---|---|
| deleteByAccountDeletesExisingAccount() | 0.010s | passed |
| getByUuidFetchesSingleAccount() | 0.010s | passed |
| getByUuidForUnknownAccountUuidReturnsNotFound() | 0.007s | passed |
| getCurrentLoginUserReturnsOnwAccount() | 0.011s | passed |
| getCurrentLoginUserWithoutOwnAccountReturnsSubjectWithoutPerson() | 0.008s | passed |
| getListOfAccountsForCurrentSubjectReturnsAccountsOfSamePerson() | 0.008s | passed |
| getListOfAccountsForGivenPersonUuidReturnsThatPersonsAccounts() | 0.009s | passed |
| getListOfAccountsForGlobalAdminReturnsAllAccounts() | 0.013s | passed |
| getListOfAccountsForInaccessiblePersonUuidReturnsErrorMessage() | 0.010s | passed |
| postNewAccountForSubjectWhichAlreadyHasAnAccountIsRejected() | 0.010s | passed |
| postNewAccountReferencingAnExistingUserSubjectUsesThatSubject() | 0.011s | passed |
| postNewAccountReferencingAnUnknownSubjectUuidIsRejected() | 0.010s | passed |
| postNewAccountRejectsCreatingAccountForNonNaturalPerson() | 0.008s | passed |
| postNewAccountRejectsCreatingAccountForUnknownPersonUuid() | 0.009s | passed |
| postNewAccountSucceedsEvenIfActingGlobalAdminHasNoOwnAccount() | 0.010s | passed |
| postNewAccountWithBothSubjectAndSubjectUuidIsRejected() | 0.009s | passed |
| postNewAccountWithExistingSubjectAndNewPersonCreatesAccountAndPerson() | 0.016s | passed |
| postNewAccountWithNewSubjectCreatesThatSubject() | 0.013s | passed |
| postNewAccountWithNewSubjectOfTypeGroupIsRejected() | 0.014s | passed |
| postNewAccountWithNewSubjectWhichAlreadyExistsIsRejected() | 0.008s | passed |
| postNewAccountWithNewSubjectWithoutUuidIsRejected() | 0.030s | passed |
| postNewAccountWithSubjectUuidOfGroupSubjectIsRejected() | 0.008s | passed |
| postNewAccountWithoutAnySubjectReferenceIsRejected() | 0.008s | passed |
| postNewAccountWithoutGlobalIdsAutoAssignsThemEqual() | 0.211s | passed |
| postNewAccountsRejectsCreatingAccountWithoutPersonReference() | 0.011s | passed |
Standard output
2026-08-10T14:41:02.885Z INFO 233 --- [ 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-10T14:41:02.917Z INFO 233 --- [ 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-10T14:41:02.942Z INFO 233 --- [ Test worker] n.h.h.h.a.HsAccountControllerRestTest : Starting HsAccountControllerRestTest 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:02.942Z INFO 233 --- [ Test worker] n.h.h.h.a.HsAccountControllerRestTest : The following 2 profiles are active: "fake-jwt", "test" 2026-08-10T14:41:03.935Z INFO 233 --- [ Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 2026-08-10T14:41:03.935Z INFO 233 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 2026-08-10T14:41:03.936Z INFO 233 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 2026-08-10T14:41:03.944Z INFO 233 --- [ Test worker] n.h.h.h.a.HsAccountControllerRestTest : Started HsAccountControllerRestTest in 1.024 seconds (process running for 18.173)