From 58352087c4b3d21112cf42286ec4d0714d7a4138 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 1 Jun 2026 14:19:54 +0200 Subject: [PATCH] test(game): strengthen legacy-constructor delegation assertions Co-Authored-By: Claude Sonnet 4.6 --- .../test/java/thb/jeanluc/adventure/game/GameSessionTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Semesterprojekt/src/test/java/thb/jeanluc/adventure/game/GameSessionTest.java b/Semesterprojekt/src/test/java/thb/jeanluc/adventure/game/GameSessionTest.java index 9c729f0..d493cab 100644 --- a/Semesterprojekt/src/test/java/thb/jeanluc/adventure/game/GameSessionTest.java +++ b/Semesterprojekt/src/test/java/thb/jeanluc/adventure/game/GameSessionTest.java @@ -48,5 +48,7 @@ class GameSessionTest { GameContext ctx = new GameContext(w, new Player(k, 0), new TestIO()); assertThat(ctx.getSession()).isNotNull(); assertThat(ctx.getSession().getTurn()).isZero(); + assertThat(ctx.getWorld()).isSameAs(w); + assertThat(ctx.getPlayer().getCurrentRoom()).isSameAs(k); } }