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:
Gary Russell
2014-10-04 10:11:59 +01:00
parent a7b5158f4a
commit 113716effd
2 changed files with 8 additions and 2 deletions

View File

@@ -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());
}