ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canAddCoopSharesReversalTransaction(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(HsOfficeCoopSharesTransactionEntity, b1328044-d660-49b8-a1dc-876010aa2413)
HTTP/1.1 201
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:37195/api/hs/office/coopsharestransactions/0aa01714-62ad-47c5-bcdf-86a6f920c6cc
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 15:05:19 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"uuid": "0aa01714-62ad-47c5-bcdf-86a6f920c6cc",
"membership.uuid": "b24c9688-1def-4de3-8c97-1f799c9026d8",
"transactionType": "REVERSAL",
"shareCount": -13,
"valueDate": "2022-10-30",
"reference": "test reversal ref",
"comment": "some coop shares reversal transaction",
"revertedShareTx": {
"uuid": "b1328044-d660-49b8-a1dc-876010aa2413",
"membership.uuid": null,
"transactionType": "SUBSCRIPTION",
"shareCount": 13,
"valueDate": "2022-10-20",
"reference": "test ref",
"comment": null
},
"reversalShareTx": null
}
toCleanup(HsOfficeCoopSharesTransactionEntity, 0aa01714-62ad-47c5-bcdf-86a6f920c6cc)
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeCoopSharesTransactionEntity#0aa01714-62ad-47c5-bcdf-86a6f920c6cc deleted 1 rows
DELETING temporary HsOfficeCoopSharesTransactionEntity#b1328044-d660-49b8-a1dc-876010aa2413 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:37195/api/hs/office/coopsharestransactions/61179964-5d77-4bcc-9752-93c669abddd6
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 15:05:20 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"uuid": "61179964-5d77-4bcc-9752-93c669abddd6",
"membership.uuid": "b24c9688-1def-4de3-8c97-1f799c9026d8",
"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-10T15:05:21.752Z WARN 371 --- [o-auto-1-exec-5] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T15:05:21.752Z ERROR 371 --- [o-auto-1-exec-5] 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 15:05:21 GMT
Connection: close
{
"timestamp": "2026-08-10 03:05:21",
"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