1   /*
2    * $Id: JettyNamespaceHandlerTestCase.java 12297 2008-07-11 17:54:29Z dandiep $
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.transport.servlet.jetty;
12  
13  import org.mule.tck.FunctionalTestCase;
14  import org.mule.transport.servlet.jetty.JettyHttpConnector;
15  
16  public class JettyNamespaceHandlerTestCase extends FunctionalTestCase
17  {
18  
19      protected String getConfigResources()
20      {
21          return "jetty-namespace-config.xml";
22      }
23  
24      public void testConnectorProperties()
25      {
26          JettyHttpConnector connector = (JettyHttpConnector) muleContext.getRegistry().lookupConnector("jettyConnector");
27          assertNotNull(connector.getConfigFile());
28          assertEquals("jetty-config.xml", connector.getConfigFile());
29      }
30  
31  }