1   /*
2    * $Id: DirectServiceTestCase.java 11376 2008-03-16 17:44:10Z dfeist $
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.model.direct;
12  
13  import org.mule.api.MuleException;
14  import org.mule.component.DefaultJavaComponent;
15  import org.mule.model.AbstractServiceTestCase;
16  import org.mule.object.SingletonObjectFactory;
17  
18  public class DirectServiceTestCase extends AbstractServiceTestCase
19  {
20  
21      protected void doSetUp() throws Exception
22      {
23          service = new DirectService();
24          service.setName("direct");
25          service.setComponent(new DefaultJavaComponent(new SingletonObjectFactory(Object.class)));
26          service.setModel(new DirectModel());
27          service.setMuleContext(muleContext);
28      }
29  
30      protected void doTearDown() throws Exception
31      {
32          service = null;
33      }
34  
35      public void testStop() throws MuleException
36      {
37          // TODO Remove this overridden empty implementation once MULE-2844 is resolved
38      }
39  
40  }