INT-3526 Used Expanded URI In Exception Message
JIRA: https://jira.spring.io/browse/INT-3526 Previously, the URI in the exception message is the raw URI with placeholders, if present. Use the expanded URI in the message instead.
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
|
||||
package org.springframework.integration.http.outbound;
|
||||
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertThat;
|
||||
import static org.junit.Assert.fail;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
@@ -71,6 +73,7 @@ public class UriVariableExpressionTests {
|
||||
}
|
||||
catch (Exception e) {
|
||||
assertEquals("intentional", e.getCause().getMessage());
|
||||
assertThat(e.getMessage(), containsString("http://test/bar"));
|
||||
}
|
||||
assertEquals("http://test/bar", uriHolder.get().toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user