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)