Migrates to assertj in test

This commit is contained in:
spencergibb
2023-01-11 16:29:19 -05:00
parent cb235831d6
commit f8df845c61

View File

@@ -56,7 +56,7 @@ public class ServerWebExchangeUtilsTests {
@Test
public void missingVarThrowsException() {
MockServerWebExchange exchange = mockExchange(Collections.emptyMap());
Assertions.assertThrows(IllegalArgumentException.class, () -> expand(exchange, "my-{foo}-{baz}"));
Assertions.assertThatThrownBy(() -> expand(exchange, "my-{foo}-{baz}")).isInstanceOf(IllegalArgumentException.class);
}
@Test