01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.model.mock;
14:
15: import com.eviware.soapui.impl.wsdl.mock.WsdlMockService;
16: import com.eviware.soapui.model.ModelItem;
17: import com.eviware.soapui.model.project.Project;
18:
19: /**
20: * ModelItem for mocking a number of Interfaces and their Operations
21: *
22: * @author ole.matzura
23: */
24:
25: public interface MockService extends ModelItem {
26: public final static String PATH_PROPERTY = WsdlMockService.class
27: .getName()
28: + "@path";
29: public final static String PORT_PROPERTY = MockService.class
30: .getName()
31: + "@port";
32:
33: public Project getProject();
34:
35: public int getMockOperationCount();
36:
37: public MockOperation getMockOperationAt(int index);
38:
39: public MockOperation getMockOperationByName(String name);
40:
41: public String getPath();
42:
43: public int getPort();
44:
45: public MockRunner start() throws Exception;
46:
47: public void addMockRunListener(MockRunListener listener);
48:
49: public void removeMockRunListener(MockRunListener listener);
50:
51: public void addMockServiceListener(MockServiceListener listener);
52:
53: public void removeMockServiceListener(MockServiceListener listener);
54: }
|