ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canAddCoopSharesReversalTransaction(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(HsOfficeCoopSharesTransactionEntity, 93edc4ff-3707-419c-8886-b2b846b6b369)
HTTP/1.1 201
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:35729/api/hs/office/coopsharestransactions/8240133b-8437-480a-aa1c-2eb6ab82c6e5
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:39:10 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"uuid": "8240133b-8437-480a-aa1c-2eb6ab82c6e5",
"membership.uuid": "f254ae68-9b56-4013-8be3-946d593c9542",
"transactionType": "REVERSAL",
"shareCount": -13,
"valueDate": "2022-10-30",
"reference": "test reversal ref",
"comment": "some coop shares reversal transaction",
"revertedShareTx": {
"uuid": "93edc4ff-3707-419c-8886-b2b846b6b369",
"membership.uuid": null,
"transactionType": "SUBSCRIPTION",
"shareCount": 13,
"valueDate": "2022-10-20",
"reference": "test ref",
"comment": null
},
"reversalShareTx": null
}
toCleanup(HsOfficeCoopSharesTransactionEntity, 8240133b-8437-480a-aa1c-2eb6ab82c6e5)
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeCoopSharesTransactionEntity#8240133b-8437-480a-aa1c-2eb6ab82c6e5 deleted 1 rows
DELETING temporary HsOfficeCoopSharesTransactionEntity#93edc4ff-3707-419c-8886-b2b846b6b369 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:35729/api/hs/office/coopsharestransactions/00c4d827-e0f3-4329-a993-eb99207f5a13
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:39:11 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"uuid": "00c4d827-e0f3-4329-a993-eb99207f5a13",
"membership.uuid": "f254ae68-9b56-4013-8be3-946d593c9542",
"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:39:13.348Z WARN 380 --- [-auto-1-exec-11] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T16:39:13.348Z ERROR 380 --- [-auto-1-exec-11] 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:39:13 GMT
Connection: close
{
"timestamp": "2026-08-10 04:39: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