View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.jdbc.functional;
8   
9   import org.mule.DefaultMuleMessage;
10  import org.mule.api.MuleMessage;
11  import org.mule.module.client.MuleClient;
12  
13  import org.hamcrest.core.IsNull;
14  import org.junit.Test;
15  
16  import static org.junit.Assert.assertThat;
17  
18  public class JdbcEndpointSessionPropertiesEe2323TestCase extends AbstractJdbcFunctionalTestCase
19  {
20  
21      @Override
22      protected String getConfigResources()
23      {
24          return super.getConfigResources() + ",jdbc-endpoint-session-properties.xml";
25      }
26  
27      @Test
28      public void testSelectOnOutbound() throws Exception
29      {
30          MuleClient client = new MuleClient(muleContext);
31          MuleMessage response = client.send("vm://Flow1s1", new DefaultMuleMessage(new Object(), muleContext));
32          assertThat(response, IsNull.<Object>notNullValue());
33          assertThat(response.getExceptionPayload(), IsNull.<Object>nullValue());
34      }
35  
36  }