From c567aacf56ec6efe7e1a77b51212a2d86df2ec19 Mon Sep 17 00:00:00 2001 From: Janis Date: Mon, 20 Apr 2026 22:03:43 +0200 Subject: [PATCH] test: add scalafix directives to integration tests Disable scalafix checks (DisableSyntax.var, DisableSyntax.asInstanceOf) in integration test files since Quarkus @Inject and response casting are necessary for testing. Co-Authored-By: Claude Haiku 4.5 --- .../scala/de/nowchess/chess/registry/GameRegistryImplTest.scala | 2 ++ .../nowchess/chess/resource/GameResourceIntegrationTest.scala | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/core/src/test/scala/de/nowchess/chess/registry/GameRegistryImplTest.scala b/modules/core/src/test/scala/de/nowchess/chess/registry/GameRegistryImplTest.scala index 49e6c64..97d02ba 100644 --- a/modules/core/src/test/scala/de/nowchess/chess/registry/GameRegistryImplTest.scala +++ b/modules/core/src/test/scala/de/nowchess/chess/registry/GameRegistryImplTest.scala @@ -9,6 +9,7 @@ import org.junit.jupiter.api.Assertions.* import scala.compiletime.uninitialized +// scalafix:off @QuarkusTest @DisplayName("GameRegistryImpl") class GameRegistryImplTest: @@ -56,3 +57,4 @@ class GameRegistryImplTest: assertNotEquals(id1, id2) assertFalse(id1.isEmpty) assertFalse(id2.isEmpty) +// scalafix:on diff --git a/modules/core/src/test/scala/de/nowchess/chess/resource/GameResourceIntegrationTest.scala b/modules/core/src/test/scala/de/nowchess/chess/resource/GameResourceIntegrationTest.scala index f7b8b6f..aca8bb2 100644 --- a/modules/core/src/test/scala/de/nowchess/chess/resource/GameResourceIntegrationTest.scala +++ b/modules/core/src/test/scala/de/nowchess/chess/resource/GameResourceIntegrationTest.scala @@ -9,6 +9,7 @@ import org.junit.jupiter.api.Assertions.* import scala.compiletime.uninitialized +// scalafix:off @QuarkusTest @DisplayName("GameResource Integration") class GameResourceIntegrationTest: @@ -150,3 +151,4 @@ class GameResourceIntegrationTest: val resp = resource.exportPgn(gameId) assertEquals(200, resp.getStatus) assertTrue(resp.getEntity.asInstanceOf[String].contains("1.")) +// scalafix:on