sebb 2005/03/20 14:02:52
Modified: src/core/org/apache/jmeter JMeter.java
Log:
Remove unnecessary throws clauses; moved isEnabled to TestElement
Revision Changes Path
1.33 +5 -18 jakarta-jmeter/src/core/org/apache/jmeter/JMeter.java
Index: JMeter.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/JMeter.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- JMeter.java 18 Mar 2005 15:26:57 -0000 1.32
+++ JMeter.java 20 Mar 2005 22:02:52 -0000 1.33
@@ -208,11 +208,6 @@
* Starts up JMeter in GUI mode
*/
public void startGui(CLOption testFile)
- throws
- IllegalUserActionException,
- IllegalAccessException,
- ClassNotFoundException,
- InstantiationException
{
PluginManager.install(this, true);
@@ -501,10 +496,7 @@
CLOption logFile,
CLOption remoteStart)
throws
- IllegalUserActionException,
- IllegalAccessException,
- ClassNotFoundException,
- InstantiationException
+ IllegalUserActionException
{
// add a system property so samplers can check to see if JMeter
// is running in NonGui mode
@@ -603,13 +595,6 @@
log.error("", e);
}
}
-
- private boolean isEnabled(TestElement te){//TODO - belongs in
TestElement ...
- return
- te.getProperty(TestElement.ENABLED) instanceof NullProperty
- ||
- te.getPropertyAsBoolean(TestElement.ENABLED);
- }
/**
* Code copied from AbstractAction.java and modified to suit TestElements
@@ -620,7 +605,7 @@
while (iter.hasNext())
{
TestElement item = (TestElement) iter.next();
- if (isEnabled(item))
+ if (item.isEnabled())
{//TODO handle ReplaceableControllers
// if (item instanceof
ReplaceableController)
// {
@@ -718,15 +703,17 @@
}
catch (InterruptedException e)
{
+ // ignored
}
println("... end of run");
System.exit(0);
}
/**
- * @see TestListener#iterationStart(IterationEvent)
+ * @see TestListener#testIterationStart(LoopIterationEvent)
*/
public void testIterationStart(LoopIterationEvent event)
{
+ // ignored
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]