From 76665608a03e150fcbb64e2ec4d4216c79dfb726 Mon Sep 17 00:00:00 2001 From: Paul Ambrose Date: Wed, 26 Aug 2020 17:29:37 -0700 Subject: [PATCH] Fix tests --- .travis.yml | 4 ++-- src/test/kotlin/io/battlesnake/kotlin/SnakeTest.kt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7b5978b..4a0dbda 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: java jdk: #- oraclejdk11 - #- openjdk11 - - openjdk8 + - openjdk11 + #- openjdk8 cache: directories: diff --git a/src/test/kotlin/io/battlesnake/kotlin/SnakeTest.kt b/src/test/kotlin/io/battlesnake/kotlin/SnakeTest.kt index bbc3139..7dcda5e 100644 --- a/src/test/kotlin/io/battlesnake/kotlin/SnakeTest.kt +++ b/src/test/kotlin/io/battlesnake/kotlin/SnakeTest.kt @@ -77,6 +77,7 @@ class SnakeTest { fun startTest() { val json = """{"game":{"id":"1551594939037768058", "timeOutMillis":500},"turn":1,"board":{"height":10,"width":10,"food":[{"x":1,"y":1}], + |"hazards":[{"x":2,"y":2}], |"snakes":[{"id":"you","name":"you","shout":"","health":0,"body":[{"x":2,"y":2}]}]},"you":{"id":"you","name":"you", |"shout":"","health":0,"body":[{"x":2,"y":2}]}}""".trimMargin() val request = StartRequest.toObject(json) @@ -96,6 +97,7 @@ class SnakeTest { fun moveTest() { val json = """{"game":{"id":"1551628170849008209", "timeOutMillis":500},"turn":1,"board":{"height":10,"width":10,"food":[{"x":1,"y":1}], + |"hazards":[{"x":2,"y":2}], |"snakes":[{"id":"you","name":"you","shout":"","health":0,"body":[{"x":2,"y":2}]}]},"you":{"id":"you","name":"you", |"shout":"","health":0,"body":[{"x":2,"y":2}]}}""".trimMargin() val request = MoveRequest.toObject(json) @@ -109,6 +111,7 @@ class SnakeTest { fun endTest() { val json = """{"game":{"id":"1551628170849008209", "timeOutMillis":500},"turn":1,"board":{"height":10,"width":10,"food":[{"x":1,"y":1}], + |"hazards":[{"x":2,"y":2}], |"snakes":[{"id":"you","name":"you","shout":"","health":0,"body":[{"x":2,"y":2}]}]},"you":{"id":"you","name":"you", |"shout":"","health":0,"body":[{"x":2,"y":2}]}}""".trimMargin() val request = EndRequest.toObject(json)