Skip to content

Commit 67576d0

Browse files
committed
🔊 Added logging to test that keeps hanging.
1 parent 4df483e commit 67576d0

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

‎spring/fluentforms-spring-boot-autoconfigure/src/test/java/com/_4point/aem/fluentforms/spring/AemProxyEndpointTest.java‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,20 @@ private void runTest(String endpoint, String inputText, String expectedResponseT
118118

119119
// When
120120
// Make rest call to the proxy endpoint
121-
String result = restClient.get()
122-
.uri(endpoint)
123-
.retrieve()
124-
.body(String.class);
121+
String result;
122+
try {
123+
result = restClient.get()
124+
.uri(endpoint)
125+
.retrieve()
126+
.body(String.class);
127+
} catch (Exception e) {
128+
logger.atError()
129+
.addArgument(endpoint)
130+
.addArgument(inputText)
131+
.addArgument(expectedResponseText)
132+
.log("Caught exception while testing proxy endpoint '{}' with input '{}', expecting response '{}'.");
133+
throw e;
134+
}
125135

126136
assertNotNull(result);
127137
assertEquals(expectedResponseText, result);

0 commit comments

Comments
 (0)