1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package testData;
18  
19  import java.util.HashMap;
20  
21  import org.apache.geronimo.ews.ws4j2ee.context.J2EEWebServiceContext;
22  import org.apache.geronimo.ews.ws4j2ee.context.JaxRpcMapperContext;
23  import org.apache.geronimo.ews.ws4j2ee.context.MiscInfo;
24  import org.apache.geronimo.ews.ws4j2ee.context.impl.MiscInfoImpl;
25  import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
26  import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.WebContext;
27  import org.apache.geronimo.ews.ws4j2ee.context.webservices.client.interfaces.ServiceReferanceContext;
28  import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFContext;
29  import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext;
30  import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeFactory;
31  
32  /***
33   * @author hemapani@opensource.lk
34   */
35  public class MockWs4J2eeContext implements J2EEWebServiceContext{
36      private MiscInfo miscinfo = new MiscInfoImpl(new HashMap());
37  	public WSDLContext getWSDLContext() {return null;}
38  	public void setWSDLContext(WSDLContext wsdlcontext) {}
39  	public WSCFContext getWSCFContext() {return null;}
40  	public void setWSCFContext(WSCFContext wscfcontext) {}
41  	public JaxRpcMapperContext getJAXRPCMappingContext() {return null;}
42  	public void setJAXRPCMappingContext(JaxRpcMapperContext context) {}
43  	public MiscInfo getMiscInfo() {return miscinfo;}
44  	public void setMiscInfo(MiscInfo info) {}
45  	public void validate() {
46  	}
47  	public void setFactory(Ws4J2eeFactory factory){}
48  	public Ws4J2eeFactory getFactory(){
49  		return null;
50  	}
51  
52  	public EJBContext getEJBDDContext(){
53  		return null;
54  	}
55  	public void setEJBDDContext(EJBContext context){}
56  
57  	public WebContext getWebDDContext(){
58  		return null;
59  	}
60  	public void setWebDDContext(WebContext context){}
61  
62  	public ServiceReferanceContext getServiceReferanceContext(int index){
63  		return null;
64  	}
65  	public void addServiceReferanceContext(ServiceReferanceContext context){}
66  	public int getServiceReferanceContextCount(){
67  		return 0;
68  	}
69  }