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;
8   
9   import org.mule.tck.junit4.AbstractMuleTestCase;
10  
11  import org.junit.Test;
12  
13  import static org.junit.Assert.fail;
14  
15  public class KeyedPoolMessageDispatcherFactoryAdapterTestCase extends AbstractMuleTestCase
16  {
17  
18      @Test
19      public void testNullFactory()
20      {
21          try
22          {
23              new KeyedPoolMessageDispatcherFactoryAdapter(null);
24              fail("expected IllegalArgumentException");
25          }
26          catch (IllegalArgumentException iex)
27          {
28              // OK
29          }
30      }
31  
32  }