View Javadoc

1   /*
2    * $Id: KeyedPoolMessageDispatcherFactoryAdapterTestCase.java 22387 2011-07-12 03:53:36Z dirk.olmes $
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;
12  
13  import org.mule.tck.junit4.AbstractMuleTestCase;
14  
15  import org.junit.Test;
16  
17  import static org.junit.Assert.fail;
18  
19  public class KeyedPoolMessageDispatcherFactoryAdapterTestCase extends AbstractMuleTestCase
20  {
21  
22      @Test
23      public void testNullFactory()
24      {
25          try
26          {
27              new KeyedPoolMessageDispatcherFactoryAdapter(null);
28              fail("expected IllegalArgumentException");
29          }
30          catch (IllegalArgumentException iex)
31          {
32              // OK
33          }
34      }
35  
36  }