You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/04/05 20:55:04 UTC
svn commit: r391717 -
/jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/assertions/HTMLAssertion.java
Author: sebb
Date: Wed Apr 5 11:55:02 2006
New Revision: 391717
URL: http://svn.apache.org/viewcvs?rev=391717&view=rev
Log:
Tidy up; add NLS markers
Modified:
jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/assertions/HTMLAssertion.java
Modified: jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/assertions/HTMLAssertion.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/assertions/HTMLAssertion.java?rev=391717&r1=391716&r2=391717&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/assertions/HTMLAssertion.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/assertions/HTMLAssertion.java Wed Apr 5 11:55:02 2006
@@ -43,23 +43,21 @@
*/
public class HTMLAssertion extends AbstractTestElement implements Serializable, Assertion {
- // constants
- public static final String DEFAULT_DOCTYPE = "omit";
+ private static final Logger log = LoggingManager.getLoggerForClass();
- public static final String DOCTYPE_KEY = "html_assertion_doctype";
+ public static final String DEFAULT_DOCTYPE = "omit"; //$NON-NLS-1$
- public static final String ERRORS_ONLY_KEY = "html_assertion_errorsonly";
+ public static final String DOCTYPE_KEY = "html_assertion_doctype"; //$NON-NLS-1$
- public static final String ERROR_THRESHOLD_KEY = "html_assertion_error_threshold";
+ public static final String ERRORS_ONLY_KEY = "html_assertion_errorsonly"; //$NON-NLS-1$
- public static final String WARNING_THRESHOLD_KEY = "html_assertion_warning_threshold";
+ public static final String ERROR_THRESHOLD_KEY = "html_assertion_error_threshold"; //$NON-NLS-1$
- public static final String FORMAT_KEY = "html_assertion_format";
+ public static final String WARNING_THRESHOLD_KEY = "html_assertion_warning_threshold"; //$NON-NLS-1$
- public static final String FILENAME_KEY = "html_assertion_filename";
+ public static final String FORMAT_KEY = "html_assertion_format"; //$NON-NLS-1$
- // class attributes
- transient private static Logger log = LoggingManager.getLoggerForClass();
+ public static final String FILENAME_KEY = "html_assertion_filename"; //$NON-NLS-1$
/**
*
@@ -279,7 +277,7 @@
*/
public void setErrorThreshold(long inErrorThreshold) {
if (inErrorThreshold < 0L) {
- throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative"));
+ throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); //$NON-NLS-1$
}
if (inErrorThreshold == Long.MAX_VALUE) {
setProperty(new LongProperty(ERROR_THRESHOLD_KEY, 0));
@@ -295,7 +293,7 @@
*/
public void setWarningThreshold(long inWarningThreshold) {
if (inWarningThreshold < 0L) {
- throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative"));
+ throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); //$NON-NLS-1$
}
if (inWarningThreshold == Long.MAX_VALUE) {
setProperty(new LongProperty(WARNING_THRESHOLD_KEY, 0));
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org