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.transport.soap.axis.mock;
8   
9   import org.apache.axis.AxisEngine;
10  import org.apache.axis.AxisFault;
11  import org.apache.axis.EngineConfiguration;
12  import org.apache.axis.MessageContext;
13  
14  public class MockAxisEngine extends AxisEngine
15  {
16      public MockAxisEngine(EngineConfiguration config)
17      {
18          super(config);
19      }
20  
21      @Override
22      public AxisEngine getClientEngine()
23      {
24          return null;
25      }
26  
27      public void invoke(MessageContext msgContext) throws AxisFault
28      {
29          // not implemented
30      }
31      
32      /**
33       * open up for testing
34       */
35      public static void setCurrentMessageContext(MessageContext messageContext) 
36      {
37          AxisEngine.setCurrentMessageContext(messageContext);
38      }
39  }
40  
41