org.apache.camel.FailedToStartRouteException Java Examples
The following examples show how to use
org.apache.camel.FailedToStartRouteException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MqttMainStandaloneIntegrationTest.java From Ardulink-2 with Apache License 2.0 | 5 votes |
@Test public void clientFailsToConnectUsingWrongCredentialsToNewlyStartedBroker() throws Exception { String user = "someUser"; sut = mqttMain().withBrokerPort(freePort()).withBrokerUser(user) .withBrokerPassword("theBrokersPassword").withClientUser(user) .withClientPassword("notTheBrokersPassword"); exceptions.expect(FailedToStartRouteException.class); // exceptions.expectMessage("CONNECTION_REFUSED_BAD_USERNAME_OR_PASSWORD"); sut.connectToMqttBroker(); }
Example #2
Source File: ReactorIntegrationTest.java From wildfly-camel with Apache License 2.0 | 5 votes |
@Test(expected = FailedToStartRouteException.class) public void testOnlyOneCamelProducerPerPublisher() throws Exception { CamelContext camelctx = new DefaultCamelContext(); camelctx.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:one") .to("reactive-streams:stream"); from("direct:two") .to("reactive-streams:stream"); } }); camelctx.start(); }
Example #3
Source File: MongoDBConnectorMissingDatabaseOptionsTest.java From syndesis with Apache License 2.0 | 4 votes |
@Override @Before public void setUp() { Assertions.assertThatExceptionOfType(FailedToStartRouteException.class).isThrownBy(super::setUp); }