Author: jleroux
Date: Tue Dec 18 03:45:26 2007
New Revision: 605190

URL: http://svn.apache.org/viewvc?rev=605190&view=rev
Log:
Refactored previous commit 605186 from BJ Freeman "Allows better testing of 
testmode from propties file of authorize.net" 
(https://issues.apache.org/jira/browse/OFBIZ-1450) - OFBIZ-1450
using right coding conventions

Modified:
    
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java

Modified: 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java?rev=605190&r1=605189&r2=605190&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
 (original)
+++ 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
 Tue Dec 18 03:45:26 2007
@@ -379,10 +379,11 @@
        boolean ret = true;
         String testReq = (String)AIMProperties.get("testReq");
         if(testReq != null) {
-            if(testReq.equals("TRUE"))
+            if(testReq.toUpperCase().equals("TRUE")) {
                 ret = true;
-            else
+            } else {
                 ret = false;
+            }
         }
         return ret;
     }


Reply via email to