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 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.Assertions.*
|
|||||||
|
|
||||||
import scala.compiletime.uninitialized
|
import scala.compiletime.uninitialized
|
||||||
|
|
||||||
|
// scalafix:off
|
||||||
@QuarkusTest
|
@QuarkusTest
|
||||||
@DisplayName("GameRegistryImpl")
|
@DisplayName("GameRegistryImpl")
|
||||||
class GameRegistryImplTest:
|
class GameRegistryImplTest:
|
||||||
@@ -56,3 +57,4 @@ class GameRegistryImplTest:
|
|||||||
assertNotEquals(id1, id2)
|
assertNotEquals(id1, id2)
|
||||||
assertFalse(id1.isEmpty)
|
assertFalse(id1.isEmpty)
|
||||||
assertFalse(id2.isEmpty)
|
assertFalse(id2.isEmpty)
|
||||||
|
// scalafix:on
|
||||||
|
|||||||
+2
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.Assertions.*
|
|||||||
|
|
||||||
import scala.compiletime.uninitialized
|
import scala.compiletime.uninitialized
|
||||||
|
|
||||||
|
// scalafix:off
|
||||||
@QuarkusTest
|
@QuarkusTest
|
||||||
@DisplayName("GameResource Integration")
|
@DisplayName("GameResource Integration")
|
||||||
class GameResourceIntegrationTest:
|
class GameResourceIntegrationTest:
|
||||||
@@ -150,3 +151,4 @@ class GameResourceIntegrationTest:
|
|||||||
val resp = resource.exportPgn(gameId)
|
val resp = resource.exportPgn(gameId)
|
||||||
assertEquals(200, resp.getStatus)
|
assertEquals(200, resp.getStatus)
|
||||||
assertTrue(resp.getEntity.asInstanceOf[String].contains("1."))
|
assertTrue(resp.getEntity.asInstanceOf[String].contains("1."))
|
||||||
|
// scalafix:on
|
||||||
|
|||||||
Reference in New Issue
Block a user