Fix some typos; import correct class

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@644831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2008-04-04 19:16:15 +00:00
parent ab10b4a1fc
commit b267a38af4
4 changed files with 9 additions and 10 deletions

View File

@ -43,7 +43,7 @@ public class BeanShellAssertion extends BeanShellTestElement implements Assertio
public static final String PARAMETERS = "BeanShellAssertion.parameters"; //$NON-NLS-1$
public static final String RESET_INTREPRETER = "BeanShellSampler.resetInterpreter"; //$NON-NLS-1$
public static final String RESET_INTERPRETER = "BeanShellAssertion.resetInterpreter"; //$NON-NLS-1$
// can be specified in jmeter.properties
public static final String INIT_FILE = "beanshell.assertion.init"; //$NON-NLS-1$
@ -65,7 +65,7 @@ public class BeanShellAssertion extends BeanShellTestElement implements Assertio
}
public boolean isResetInterpreter() {
return getPropertyAsBoolean(RESET_INTREPRETER);
return getPropertyAsBoolean(RESET_INTERPRETER);
}
/*

View File

@ -29,7 +29,6 @@ import javax.swing.JTextArea;
import javax.swing.JTextField;
import org.apache.jmeter.assertions.BeanShellAssertion;
import org.apache.jmeter.protocol.java.sampler.BeanShellSampler;
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.testelement.property.BooleanProperty;
import org.apache.jmeter.util.JMeterUtils;
@ -52,7 +51,7 @@ public class BeanShellAssertionGui extends AbstractAssertionGui {
scriptField.setText(element.getPropertyAsString(BeanShellAssertion.SCRIPT));
filename.setText(element.getPropertyAsString(BeanShellAssertion.FILENAME));
parameters.setText(element.getPropertyAsString(BeanShellAssertion.PARAMETERS));
resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTREPRETER));
resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellAssertion.RESET_INTERPRETER));
super.configure(element);
}
@ -73,7 +72,7 @@ public class BeanShellAssertionGui extends AbstractAssertionGui {
te.setProperty(BeanShellAssertion.SCRIPT, scriptField.getText());
te.setProperty(BeanShellAssertion.FILENAME, filename.getText());
te.setProperty(BeanShellAssertion.PARAMETERS, parameters.getText());
te.setProperty(new BooleanProperty(BeanShellAssertion.RESET_INTREPRETER, resetInterpreter.isSelected()));
te.setProperty(new BooleanProperty(BeanShellAssertion.RESET_INTERPRETER, resetInterpreter.isSelected()));
}
public String getLabelResource() {
@ -96,7 +95,7 @@ public class BeanShellAssertionGui extends AbstractAssertionGui {
private JPanel createResetPanel() {
resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter")); // $NON-NLS-1$
resetInterpreter.setName(BeanShellSampler.PARAMETERS);
resetInterpreter.setName(BeanShellAssertion.PARAMETERS);
JPanel resetInterpreterPanel = new JPanel(new BorderLayout());
resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST);

View File

@ -52,7 +52,7 @@ public class BeanShellSamplerGui extends AbstractSamplerGui {
scriptField.setText(element.getPropertyAsString(BeanShellSampler.SCRIPT));
filename.setText(element.getPropertyAsString(BeanShellSampler.FILENAME));
parameters.setText(element.getPropertyAsString(BeanShellSampler.PARAMETERS));
resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTREPRETER));
resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTERPRETER));
super.configure(element);
}
@ -73,7 +73,7 @@ public class BeanShellSamplerGui extends AbstractSamplerGui {
te.setProperty(BeanShellSampler.SCRIPT, scriptField.getText());
te.setProperty(BeanShellSampler.FILENAME, filename.getText());
te.setProperty(BeanShellSampler.PARAMETERS, parameters.getText());
te.setProperty(new BooleanProperty(BeanShellSampler.RESET_INTREPRETER, resetInterpreter.isSelected()));
te.setProperty(new BooleanProperty(BeanShellSampler.RESET_INTERPRETER, resetInterpreter.isSelected()));
}
/**

View File

@ -48,7 +48,7 @@ public class BeanShellSampler extends BeanShellTestElement implements Sampler
public static final String INIT_FILE = "beanshell.sampler.init"; //$NON-NLS-1$
public static final String RESET_INTREPRETER = "BeanShellSampler.resetInterpreter"; //$NON-NLS-1$
public static final String RESET_INTERPRETER = "BeanShellSampler.resetInterpreter"; //$NON-NLS-1$
protected String getInitFileProperty() {
return INIT_FILE;
@ -77,7 +77,7 @@ public class BeanShellSampler extends BeanShellTestElement implements Sampler
}
public boolean isResetInterpreter() {
return getPropertyAsBoolean(RESET_INTREPRETER);
return getPropertyAsBoolean(RESET_INTERPRETER);
}
public SampleResult sample(Entry e)// Entry tends to be ignored ...