Author: fschumacher
Date: Mon Feb 12 16:05:16 2018
New Revision: 1823995

URL: http://svn.apache.org/viewvc?rev=1823995&view=rev
Log:
Spacepolice

Part of #356 on Github. Contributed by Graham Russell (graham at ham1.co.uk)

Modified:
    
jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java

Modified: 
jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java?rev=1823995&r1=1823994&r2=1823995&view=diff
==============================================================================
--- 
jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java 
(original)
+++ 
jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java 
Mon Feb 12 16:05:16 2018
@@ -311,7 +311,7 @@ public class ResponseAssertion extends A
             if (notTest) { // Not should always succeed against an empty result
                 return result;
             }
-            if(log.isDebugEnabled()) {
+            if (log.isDebugEnabled()) {
                 log.debug("Not checking empty response field in: {}", 
response.getSampleLabel());
             }
             return result.setResultForNull();
@@ -352,7 +352,7 @@ public class ResponseAssertion extends A
                         log.debug("Failed: {}", stringPattern);
                         result.setFailure(true);
                         String customMsg = getCustomFailureMessage();
-                        if(StringUtils.isEmpty(customMsg)) {
+                        if (StringUtils.isEmpty(customMsg)) {
                             
result.setFailureMessage(getFailText(stringPattern,toCheck));
                         } else {
                             result.setFailureMessage(customMsg);
@@ -369,7 +369,7 @@ public class ResponseAssertion extends A
                 }
                 result.setFailure(true);
                 String customMsg = getCustomFailureMessage();
-                if(StringUtils.isEmpty(customMsg)) {
+                if (StringUtils.isEmpty(customMsg)) {
                     result.setFailureMessage(errorMsg.toString());
                 } else {
                     result.setFailureMessage(customMsg);
@@ -391,7 +391,7 @@ public class ResponseAssertion extends A
         } else if (isTestFieldResponseData()) {
             toCheck = response.getResponseDataAsString(); // (bug25052)
         } else if (isTestFieldResponseDataAsDocument()) {
-            toCheck = 
Document.getTextFromDocument(response.getResponseData()); 
+            toCheck = Document.getTextFromDocument(response.getResponseData());
         } else if (isTestFieldResponseCode()) {
             toCheck = response.getResponseCode();
         } else if (isTestFieldResponseMessage()) {
@@ -545,7 +545,7 @@ public class ResponseAssertion extends A
         for (int i = 0; i < pad.capacity(); i++){
             pad.append(' ');
         }
-        
+
         if (recDeltaSeq.length() > compDeltaSeq.length()){
             compDeltaSeq += pad.toString();
         } else {


Reply via email to