Search in sources :

Example 1 with AlreadyStoppedException

use of org.apache.camel.AlreadyStoppedException in project camel by apache.

the class DefaultExceptionPolicyStrategyTest method testNoMatch1ThenNull.

public void testNoMatch1ThenNull() {
    setupPoliciesNoTopLevelException();
    OnExceptionDefinition result = strategy.getExceptionPolicy(policies, null, new AlreadyStoppedException());
    assertNull("Should not find an exception policy to use", result);
}
Also used : AlreadyStoppedException(org.apache.camel.AlreadyStoppedException) OnExceptionDefinition(org.apache.camel.model.OnExceptionDefinition)

Example 2 with AlreadyStoppedException

use of org.apache.camel.AlreadyStoppedException in project camel by apache.

the class DefaultExceptionPolicyStrategyTest method testNoMatch1ThenMatchingJustException.

public void testNoMatch1ThenMatchingJustException() {
    setupPolicies();
    OnExceptionDefinition result = strategy.getExceptionPolicy(policies, null, new AlreadyStoppedException());
    assertEquals(type2, result);
}
Also used : AlreadyStoppedException(org.apache.camel.AlreadyStoppedException) OnExceptionDefinition(org.apache.camel.model.OnExceptionDefinition)

Aggregations

AlreadyStoppedException (org.apache.camel.AlreadyStoppedException)2 OnExceptionDefinition (org.apache.camel.model.OnExceptionDefinition)2