Paradaux

PAR-320

0

Fix stale FirmPlayerTest: malformed UUID returns null, not throws

Pending ReleaseUnassignedBusiness

FirmPlayerTest.malformedUuidStillThrows() still asserted the pre-ADT-35 behaviour (that FirmPlayer.getUniqueId() throws IllegalArgumentException on a malformed stored UUID). Commit 28b9763 (ADT-35) made the getter null-safe — it now catches the exception and returns null per the documented @Nullable contract — but left this test asserting the old throwing behaviour. As a result :business:business-api:test fails on develop.

Fix: renamed the test to malformedUuidReturnsNull() and asserted getUniqueId() returns null for a malformed value, matching the documented contract. Removed the now-unused assertThatThrownBy import.

Found while building/installing plugins locally.

Resources

Comments

No comments yet.

Activity

  • ParadauxIO linked a commit — Commit f440407 — Align stale FirmPlayerTest with null-safe getUniqueId contract (PAR-320)
  • tesks changed status to Status → Pending Release
  • tesks created the issue