ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canAddCoopSharesReversalTransaction(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(HsOfficeCoopSharesTransactionEntity, 9752efcd-3c35-48dc-9dff-a8ff0054b93b)
HTTP/1.1 201
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:44731/api/hs/office/coopsharestransactions/c52c1893-d752-4052-b61a-2eacdb16f5b6
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:31:11 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"uuid": "c52c1893-d752-4052-b61a-2eacdb16f5b6",
"membership.uuid": "9aa7e8c8-db2c-4ef7-8c1e-082d2a01e46b",
"transactionType": "REVERSAL",
"shareCount": -13,
"valueDate": "2022-10-30",
"reference": "test reversal ref",
"comment": "some coop shares reversal transaction",
"revertedShareTx": {
"uuid": "9752efcd-3c35-48dc-9dff-a8ff0054b93b",
"membership.uuid": null,
"transactionType": "SUBSCRIPTION",
"shareCount": 13,
"valueDate": "2022-10-20",
"reference": "test ref",
"comment": null
},
"reversalShareTx": null
}
toCleanup(HsOfficeCoopSharesTransactionEntity, c52c1893-d752-4052-b61a-2eacdb16f5b6)
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeCoopSharesTransactionEntity#c52c1893-d752-4052-b61a-2eacdb16f5b6 deleted 1 rows
DELETING temporary HsOfficeCoopSharesTransactionEntity#9752efcd-3c35-48dc-9dff-a8ff0054b93b deleted 1 rows
globalAdmin_canAddCoopSharesReversalTransaction(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canAddCoopSharesTransaction(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 201
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:44731/api/hs/office/coopsharestransactions/61e5cf63-1878-4324-abd9-ef7b122ff1b6
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:31:12 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"uuid": "61e5cf63-1878-4324-abd9-ef7b122ff1b6",
"membership.uuid": "9aa7e8c8-db2c-4ef7-8c1e-082d2a01e46b",
"transactionType": "SUBSCRIPTION",
"shareCount": 8,
"valueDate": "2022-10-13",
"reference": "temp ref A",
"comment": "just some test coop shares transaction",
"revertedShareTx": null,
"reversalShareTx": null
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canAddCoopSharesTransaction(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canNotCancelMoreSharesThanCurrentlySubscribed(): TOTAL OBJECT COUNT (initial): 210 -> 210
2026-08-10T16:31:13.873Z WARN 382 --- [o-auto-1-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T16:31:13.873Z ERROR 382 --- [o-auto-1-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [400] office.coop-shares.transaction-would-result-in-a-negative-number-of-shares
Where: PL/pgSQL function hs_office.coopsharetx_enforce_positive_total() line 12 at RAISE
SQL statement "insert
into hs_office.coopsharetx (uuid, version, membershipuuid, transactiontype, valuedate, sharecount, reference, revertedsharetxuuid, comment)
values (new.uuid, new.version, new.membershipuuid, new.transactiontype, new.valuedate, new.sharecount, new.reference, new.revertedsharetxuuid, new.comment)
returning *"
PL/pgSQL function hs_office.coopsharetx_instead_of_insert_tf() line 5 at SQL statement
HTTP/1.1 400
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
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
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:31:13 GMT
Connection: close
{
"timestamp": "2026-08-10 04:31:13",
"path": "",
"statusCode": 400,
"statusPhrase": "Bad Request",
"message": "ERROR: [400] Geschäftsanteile-Transaktion würde zu negativen Geschäftsanteilen führen"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canNotCancelMoreSharesThanCurrentlySubscribed(): TOTAL OBJECT COUNT (after): 210 -> 210