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 2003/10/08 18:20:13 UTC

cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/threads ThreadGroup.java

sebb        2003/10/08 09:20:13

  Modified:    src/core/org/apache/jmeter/threads ThreadGroup.java
  Log:
  Correct the string test (doh!) and make case insensitive
  
  Revision  Changes    Path
  1.18      +6 -4      jakarta-jmeter/src/core/org/apache/jmeter/threads/ThreadGroup.java
  
  Index: ThreadGroup.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/threads/ThreadGroup.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ThreadGroup.java	5 Oct 2003 22:21:23 -0000	1.17
  +++ ThreadGroup.java	8 Oct 2003 16:20:13 -0000	1.18
  @@ -440,7 +440,8 @@
        */
       public boolean getOnErrorStopThread()
       {
  -        return getPropertyAsString(ThreadGroup.ON_SAMPLE_ERROR) == ON_SAMPLE_ERROR_STOPTHREAD;
  +        return getPropertyAsString(ThreadGroup.ON_SAMPLE_ERROR)
  +            .equalsIgnoreCase(ON_SAMPLE_ERROR_STOPTHREAD);
       }
   
       /**
  @@ -450,7 +451,8 @@
        */
       public boolean getOnErrorStopTest()
       {
  -		return getPropertyAsString(ThreadGroup.ON_SAMPLE_ERROR) == ON_SAMPLE_ERROR_STOPTEST;
  +        return getPropertyAsString(ThreadGroup.ON_SAMPLE_ERROR)
  +		    .equalsIgnoreCase(ON_SAMPLE_ERROR_STOPTEST);
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org