@Test public void suspendAndNoManagedRequired() throws Exception { PolicyUtil.require(exchange, TransactionPolicy.NO_MANAGED_TRANSACTION); suspendsRequired(); Assert.assertTrue(PolicyUtil.isProvided(exchange, TransactionPolicy.NO_MANAGED_TRANSACTION)); }
private boolean suspendsRequired(Exchange exchange) { return PolicyUtil.isRequired(exchange, TransactionPolicy.SUSPENDS_TRANSACTION); }
TransactionHandler implements ExchangeHandler { private boolean suspendsRequired(Exchange exchange) { return PolicyUtil.isRequired(exchange, TransactionPolicy.SUSPENDS_TRANSACTION); } }
TransactionHandler implements ExchangeHandler { private boolean suspendsRequired(Exchange exchange) { return PolicyUtil.isRequired(exchange, TransactionPolicy.SUSPENDS_TRANSACTION); } TransactionHandler(); }
TransactionHandler implements ExchangeHandler { private boolean suspendsRequired(Exchange exchange) { return PolicyUtil.isRequired(exchange, TransactionPolicy.SUSPENDS_TRANSACTION); } TransactionHandler(); @Override void handleMessage(Exchange exchange); @Override void handleFault(Exchange exchange); }
TransactionHandler implements ExchangeHandler { private boolean suspendsRequired(Exchange exchange) { return PolicyUtil.isRequired(exchange, TransactionPolicy.SUSPENDS_TRANSACTION); } TransactionHandler(); @Override void handleMessage(Exchange exchange); @Override void handleFault(Exchange exchange);  }