From 100d28e4832291d4e2f63172c04db5b3873fcc7a Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Tue, 16 May 2023 12:46:13 +0200 Subject: [PATCH] Add skipped rounds info --- test.sh | 19 +------- webapp/pom.xml | 11 +++++ .../org/jeudego/pairgoth/model/Pairable.kt | 23 ++++++---- .../org/jeudego/pairgoth/web/ApiServlet.kt | 4 +- .../org/jeudego/pairgoth/web/Logging.kt | 4 +- webapp/src/test/kotlin/BasicTests.kt | 43 +++++++++++++++---- webapp/src/test/kotlin/TestBase.kt | 25 +++++++++++ webapp/src/test/kotlin/TestUtils.kt | 6 +-- 8 files changed, 95 insertions(+), 40 deletions(-) create mode 100644 webapp/src/test/kotlin/TestBase.kt diff --git a/test.sh b/test.sh index d205924..1574922 100755 --- a/test.sh +++ b/test.sh @@ -1,19 +1,4 @@ #!/bin/bash -curl -s --header "Accept: application/json" --header "Content-Type: application/json" \ - --request POST \ - --data '{ "type":"INDIVIDUAL","name":"Mon Tournoi", "shortName": "mon-tournoi", "startDate": "2023-05-10", "endDate": "2023-05-12", "country": "FR", "location": "Marseille", "online": false, "timeSystem": { "type": "fisher", "mainTime": "1200", "increment": "10" }, "pairing": { "type": "ROUNDROBIN" } }' \ - http://localhost:8080/api/tour - -curl -s --header "Accept: application/json" http://localhost:8080/api/tour - -curl -s --header "Accept: application/json" http://localhost:8080/api/tour/1 - -curl -s --header "Accept: application/json" --header "Content-Type: application/json" \ - --request POST \ - --data '{ "name": "Burma", "firstname": "Nestor", "rating": 1600, "rank": -2, "country": "FR", "club": "13Ma" }' \ - http://localhost:8080/api/tour/1/part - -curl -s --header "Accept: application/json" http://localhost:8080/api/tour/1/part - - +#mvn -Dorg.slf4j.simpleLogger.log.test=trace package verify +mvn package verify diff --git a/webapp/pom.xml b/webapp/pom.xml index 0508430..6a09c33 100644 --- a/webapp/pom.xml +++ b/webapp/pom.xml @@ -97,6 +97,11 @@ org.apache.maven.plugins maven-surefire-plugin + + + com.republicate:webapp-slf4j-logger + + @@ -169,6 +174,12 @@ 3.0 runtime + + org.slf4j + slf4j-simple + ${slf4j.version} + test +