Browse Source

Updates verification error test

pull/1668/head
Spencer Gibb 5 years ago
parent
commit
8b66012725
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 9
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/test/RouteConstructionIntegrationTests.java

9
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/test/RouteConstructionIntegrationTests.java

@ -30,10 +30,11 @@ public class RouteConstructionIntegrationTests { @@ -30,10 +30,11 @@ public class RouteConstructionIntegrationTests {
@Test
public void routesWithVerificationShouldFail() {
Assert.assertThrows(Throwable.class, () -> {
new SpringApplicationBuilder(TestConfig.class).profiles("verification-route")
.run();
});
Assert.assertThrows("java.lang.AssertionError: Stop right now!", Throwable.class,
() -> {
new SpringApplicationBuilder(TestConfig.class)
.profiles("verification-route").run();
});
}
@EnableAutoConfiguration

Loading…
Cancel
Save