View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  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.impl.wsdl.panels.support;
14  
15  import org.apache.log4j.Logger;
16  
17  import com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest;
18  import com.eviware.soapui.model.testsuite.LoadTestRunner;
19  
20  public class MockLoadTestRunner extends AbstractMockTestRunner<WsdlLoadTest> implements LoadTestRunner
21  {
22  	public MockLoadTestRunner( WsdlLoadTest modelItem, Logger logger )
23  	{
24  		super( modelItem, logger );
25  	}
26  
27  	public WsdlLoadTest getLoadTest()
28  	{
29  		return getTestRunnable();
30  	}
31  
32  	public float getProgress()
33  	{
34  		return 0;
35  	}
36  
37  	public int getRunningThreadCount()
38  	{
39  		return ( int )getLoadTest().getThreadCount();
40  	}
41  
42  	public boolean hasStopped()
43  	{
44  		return false;
45  	}
46  }