Updated parameters in the error responses of OAuth2 APIs for coherence
Change-Id: I686373ea3fbf09e7306b3f88f47d2e812fad1f00
diff --git a/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java b/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java
index e44c725..ac94979 100644
--- a/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java
+++ b/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ClientControllerTest.java
@@ -154,7 +154,7 @@
ClientResponse response = registerClient(username, json);
String entity = response.getEntity(String.class);
JsonNode node = JsonUtils.readTree(entity);
- assertEquals("clientName must contain at least 3 characters",
+ assertEquals("client_name must contain at least 3 characters",
node.at("/error_description").asText());
assertEquals("invalid_request",
node.at("/error").asText());
@@ -172,7 +172,7 @@
ClientResponse response = registerClient(username, json);
String entity = response.getEntity(String.class);
JsonNode node = JsonUtils.readTree(entity);
- assertEquals("client description is null",
+ assertEquals("client_description is null",
node.at("/error_description").asText());
assertEquals("invalid_request",
node.at("/error").asText());
diff --git a/full/src/test/resources/log4j2-test.properties b/full/src/test/resources/log4j2-test.properties
index f961961..477f8a5 100644
--- a/full/src/test/resources/log4j2-test.properties
+++ b/full/src/test/resources/log4j2-test.properties
@@ -26,4 +26,11 @@
#logger.file.level = info
#logger.file.appenderRefs = file
#logger.file.appenderRef.file.ref = ERRORLOG
-#logger.file.additivity=false
\ No newline at end of file
+#logger.file.additivity=false
+
+loggers=console
+logger.console.name=org.hibernate
+logger.console.level = fatal
+logger.console.appenderRefs = stdout
+logger.console.appenderRef.file.ref = STDOUT
+logger.console.additivity=false
\ No newline at end of file