jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1452110 - /jmeter/trunk/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptSampler.java
Date Sun, 03 Mar 2013 19:40:21 GMT
Author: pmouawad
Date: Sun Mar  3 19:40:20 2013
New Revision: 1452110

URL: http://svn.apache.org/r1452110
Log:
Bug 54584 - MongoDB plugin
Cleanup code
Bugzilla Id: 54584

Modified:
    jmeter/trunk/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptSampler.java

Modified: jmeter/trunk/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptSampler.java?rev=1452110&r1=1452109&r2=1452110&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptSampler.java
(original)
+++ jmeter/trunk/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptSampler.java
Sun Mar  3 19:40:20 2013
@@ -36,6 +36,8 @@ public class MongoScriptSampler
     extends AbstractSampler
         implements TestBean {
 
+    private static final long serialVersionUID = -7789012234636439896L;
+
     private static final Logger log = LoggingManager.getLoggerForClass();
 
     public final static String SOURCE = "MongoScriptSampler.source"; //$NON-NLS-1$
@@ -43,10 +45,8 @@ public class MongoScriptSampler
     public final static String DATABASE = "MongoScriptSampler.database"; //$NON-NLS-1$
     public final static String USERNAME = "MongoScriptSampler.username"; //$NON-NLS-1$
     public final static String PASSWORD = "MongoScriptSampler.password"; //$NON-NLS-1$
-
     public final static String SCRIPT = "MongoScriptSampler.script"; //$NON-NLS-1$
 
-    private static final long serialVersionUID = -7789012234636439896L;
 
     public MongoScriptSampler() {
         trace("MongoScriptSampler()");
@@ -61,7 +61,7 @@ public class MongoScriptSampler
 
         res.setSampleLabel(getTitle());
         res.setResponseCodeOK();
-        res.setResponseCode("200");
+        res.setResponseCode("200"); // $NON-NLS-1$
         res.setSuccessful(true);
         res.setResponseMessageOK();
         res.setSamplerData(data);
@@ -82,8 +82,7 @@ public class MongoScriptSampler
         }
         catch (Exception ex) {
             res.sampleEnd();
-            log.warn("", ex);
-            res.setResponseCode("500");// $NON-NLS-1$
+            res.setResponseCode("500"); // $NON-NLS-1$
             res.setSuccessful(false);
             res.setResponseMessage(ex.toString());
             res.setResponseData(ex.getMessage().getBytes());



Mime
View raw message