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.config.spring;
8   
9   import org.mule.module.client.MuleClient;
10  import org.mule.api.MuleException;
11  
12  import org.junit.Test;
13  
14  public class NamedInterceptorTestCase extends AbstractInterceptorTestCase
15  {
16  
17      @Override
18      protected String getConfigResources()
19      {
20          return "org/mule/config/spring/named-interceptor-test.xml";
21      }
22  
23      @Test
24      public void testInterceptor() throws MuleException, InterruptedException
25      {
26          MuleClient client = new MuleClient(muleContext);
27          client.send("vm://in", MESSAGE, null);
28          assertMessageIntercepted();
29      }
30  
31  }