View Javadoc

1   /*
2    * $Id: InboundMessageLossFlowTransactionsTestCase.java 22552 2011-07-25 07:18:19Z claude.mamo $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.jdbc.reliability;
12  
13  import java.util.Arrays;
14  import java.util.Collection;
15  
16  import org.junit.runners.Parameterized.Parameters;
17  
18  
19  
20  /**
21   * Verify that no inbound messages are lost when exceptions occur.  
22   * The message must either make it all the way to the SEDA queue (in the case of 
23   * an asynchronous inbound endpoint), or be restored/rolled back at the source.
24   * 
25   * In the case of JDBC, this will cause the ACK query to not be executed and therefore 
26   * the source data will still be present the next time the database is polled.
27   */
28  public class InboundMessageLossFlowTransactionsTestCase extends InboundMessageLossTransactionsTestCase
29  {
30      public InboundMessageLossFlowTransactionsTestCase(ConfigVariant variant, String configResources)
31      {
32          super(variant, configResources);
33      }
34  
35      @Parameters
36      public static Collection<Object[]> parameters()
37      {
38          return Arrays.asList(new Object[][]{            
39              {ConfigVariant.FLOW, "reliability/jdbc-connector.xml, reliability/inbound-message-loss-flow-transactions.xml"}
40          });
41      }      
42      
43  }