1   /*
2    * $Id: ComponentInterceptorTestCase.java 10845 2008-02-18 13:42:40Z acooke $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.config.spring;
12  
13  import org.mule.module.client.MuleClient;
14  import org.mule.api.MuleException;
15  
16  /**
17   * MULE-2999 - This fails because we do not register components with the spring registry.
18   */
19  public class ComponentInterceptorTestCase extends AbstractInterceptorTestCase
20  {
21  
22      protected String getConfigResources()
23      {
24          return "org/mule/config/spring/component-interceptor-test.xml";
25      }
26  
27      public void testInterceptor() throws MuleException, InterruptedException
28      {
29          MuleClient client = new MuleClient();
30          client.send("vm://in", MESSAGE, null);
31          assertMessageIntercepted();
32      }
33  
34  }