details:   /erp/devel/int/rev/a7c862c13fc5
changeset: 6542:a7c862c13fc5
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Mon Mar 01 19:13:54 2010 +0100
summary:   Fixed 12515: Add some junit-tests for the ErrorTextParser classes
The testcase use some xsql-methods to raise a number of db-exceptions
then uses the ErrorTextParser to translate those inho user-readable
error messages and compares those to some expted values (which have
to be in sync with the ad_message strings used for the translation)

details:   /erp/devel/int/rev/fda935b731fe
changeset: 6543:fda935b731fe
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Mon Mar 01 22:20:45 2010 +0100
summary:   Moved hardcoded table style in MessageBox to css class

diffstat:

 src-test/org/openbravo/test/system/ErrorTextParserTest.java                    
                  |  132 ++++++++++
 src-wad/src/org/openbravo/wad/TemplateSortTab_Relation.html                    
                  |    2 +-
 src-wad/src/org/openbravo/wad/Template_ActionButton.html                       
                  |    2 +-
 src-wad/src/org/openbravo/wad/Template_Edition.html                            
                  |    2 +-
 src-wad/src/org/openbravo/wad/Template_Relation.html                           
                  |    2 +-
 src/org/openbravo/base/secureApp/Advise.html                                   
                  |    2 +-
 src/org/openbravo/base/secureApp/AdvisePopUp.html                              
                  |    2 +-
 src/org/openbravo/base/secureApp/AdvisePopUpRefresh.html                       
                  |    2 +-
 src/org/openbravo/base/secureApp/Error.html                                    
                  |    2 +-
 src/org/openbravo/base/secureApp/ErrorPopUp.html                               
                  |    2 +-
 src/org/openbravo/base/secureApp/HtmlErrorLogin.html                           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement.html            
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFile.html                    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Shipment.html   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice.html            
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/DocAction.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/EditCCPMeasureValues.html          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_actionButton/InsertAcces.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/AlertManagement.html                      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/CallAcctServer.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/EdiFileImport.html                        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/FileImport.html                           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html              
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/HeartbeatConfirm.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InitialOrgSetup.html                      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InstanceManagement.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InstanceManagementActivateLocal.html      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InstanceManagementActivateOnline.html     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InstanceManagementDeactivate.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagementAdd.html                  
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagementHistory.html              
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagementInstalled.html            
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagement_ErrorCommercial.html     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagement_InstallLocal.html        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagement_InstallP1.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagement_InstallP2.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ModuleManagement_InstallP4.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/RegistrationConfirm.html                  
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/RequisitionToOrderCreate.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/Resultado.html                            
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/Role.html                                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/SQLExecutor.html                          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ShowLogFile.html                          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ShowSessionPreferences.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/Translation.html                          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_forms/UpdateReferenceData.html                  
                  |    2 +-
 src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Element_F1.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_F1.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Field_F1.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/ApplyModules.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/CashBankOperations.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/CopyFromGLJournal.html                  
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/CreateCashFlowStatement.html            
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html                    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/DeleteClient.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/GenerateHelp.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/PriceListCreateAll.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/PrintInvoices.html                      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/RegisterModule.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_process/SendMailText.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/GenerateModel347.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/MInOutTraceReports.html                 
                  |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportAccountingCountDimensionalAnalysesFilter.html
       |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportAgingBalance.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.html          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportAssetDepreciationSchedule.html    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportBank.html                         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportBankJR.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportBudgetGenerateExcel.html          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportCash.html                         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportCashFlow.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html                       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportCashflowForecast.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportDebtPayment.html                  
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportExpense.html                      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html                
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournalDetail.html   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html              
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInventory.html                    
                  |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html
       |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html
     |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilter.html        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR.html      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscount.html              
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.html            
                  |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html
       |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorFilterJR.html        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoices.html                     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportInvoicesJR.html                   
                  |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html
            |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionEditionJR.html 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionFilter.html    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.html                    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportOffer.html                        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportOrderNotInvoiceFilterJR.html      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportParetoProduct.html                
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportPendingProductionJr.html          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html                    
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProductMovement.html              
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProduction.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProductionCost.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProductionJR.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProductionRunJR.html              
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSite.html          
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html        
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.html       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportProjectProgress.html              
                  |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html
            |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html
 |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html
           |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html
                |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderFilterJR.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderInvoicedJasper.html     
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItem.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItemJR.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderProvidedJR.html         
                  |    2 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html
             |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportShipmentFilterJR.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportShipper.html                      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportStandardCostJRFilter.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoice.html                   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignment.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignmentJR.html       
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportTotalProductTemplate.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html                 
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceDetail.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html               
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html             
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWarehouseDetailInventoryJR.html   
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWarehousePartnerJR.html           
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDaily.html         
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html      
                  |    2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementJR.html            
                  |    2 +-
 src/org/openbravo/erpCommon/businessUtility/Buscador.html                      
                  |    2 +-
 src/org/openbravo/erpCommon/businessUtility/TabAttachments_F1.html             
                  |    2 +-
 src/org/openbravo/erpCommon/obps/ErrorActivatedInstancesOnly.html              
                  |    2 +-
 src/org/openbravo/erpCommon/security/Login_F1.html                             
                  |    2 +-
 src/org/openbravo/erpCommon/utility/PoolStatus.html                            
                  |    2 +-
 src/org/openbravo/erpCommon/utility/SetPriority.html                           
                  |    2 +-
 src/org/openbravo/erpCommon/utility/UsedByLink.html                            
                  |    2 +-
 src/org/openbravo/erpCommon/utility/WindowTree.html                            
                  |    2 +-
 src/org/openbravo/erpCommon/utility/reporting/printing/PrintOptions.html       
                  |    2 +-
 src/org/openbravo/erpCommon/utility/reporting/printing/PrintStatus.html        
                  |    2 +-
 src/org/openbravo/erpReports/ReportPaymentFilter.html                          
                  |    2 +-
 src/org/openbravo/erpReports/ReportRegisterFilter.html                         
                  |    2 +-
 src/org/openbravo/test/system/ErrorTextParserTest_data.xsql                    
                  |   92 ++++++
 web/js/utils.js                                                                
                  |    2 +-
 web/skins/Default/Openbravo_ERP_250.css                                        
                  |    5 +
 172 files changed, 398 insertions(+), 169 deletions(-)

diffs (truncated from 2276 to 300 lines):

diff -r 163ea059a644 -r fda935b731fe 
src-test/org/openbravo/test/system/ErrorTextParserTest.java
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/src-test/org/openbravo/test/system/ErrorTextParserTest.java       Mon Mar 
01 22:20:45 2010 +0100
@@ -0,0 +1,132 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SL 
+ * All portions are Copyright (C) 2010 Openbravo SL 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+
+package org.openbravo.test.system;
+
+import java.sql.Connection;
+
+import javax.servlet.ServletException;
+
+import org.apache.log4j.Logger;
+import org.openbravo.base.provider.OBConfigFileProvider;
+import org.openbravo.base.secureApp.VariablesSecureApp;
+import org.openbravo.database.ConnectionProvider;
+import org.openbravo.database.ConnectionProviderImpl;
+import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.Utility;
+import org.openbravo.test.base.BaseTest;
+
+/**
+ * Test the ErrorTextParser class logic.
+ * 
+ * @author huehner
+ */
+
+public class ErrorTextParserTest extends BaseTest {
+
+  private static final Logger log = 
Logger.getLogger(ErrorTextParserTest.class);
+
+  public void testDuplicatePrimaryKey() throws Exception {
+    doErrorTextParserTest(1);
+  }
+
+  // test disabled as postgresql notnull error message text cannot be parsed 
right now
+  // public void testNotNull() throws Exception {
+  // doErrorTextParserTest(2);
+  // }
+
+  public void testBoolean() throws Exception {
+    doErrorTextParserTest(3);
+  }
+
+  public void testUniqueSingleField() throws Exception {
+    doErrorTextParserTest(4);
+  }
+
+  public void testUniqueMultipleFields() throws Exception {
+    doErrorTextParserTest(5);
+  }
+
+  public void testFKInsert() throws Exception {
+    doErrorTextParserTest(6);
+  }
+
+  public void testFKDelete() throws Exception {
+    doErrorTextParserTest(7);
+  }
+
+  public void testNonBooleanCheck() throws Exception {
+    doErrorTextParserTest(8);
+  }
+
+  private void doErrorTextParserTest(int testCase) throws Exception {
+    String propFile = OBConfigFileProvider.getInstance().getFileLocation();
+    ConnectionProvider conn = new ConnectionProviderImpl(propFile + 
"/Openbravo.properties");
+    VariablesSecureApp vars = new VariablesSecureApp("", "", "");
+    Connection con = conn.getTransactionConnection();
+    String errorMessage = "";
+    String expectedErrorMessage = "";
+    try {
+      switch (testCase) {
+      case 1:
+        expectedErrorMessage = "Internal Error: Duplicate primary key/uuid. 
Your record has not been saved into the table User/Contact";
+        ErrorTextParserTestData.insertUserPK(con, conn, "0", "N", "name");
+        break;
+      case 2:
+        expectedErrorMessage = "The column Active is mandatory and cannot be 
left empty.";
+        ErrorTextParserTestData.insertUser(con, conn, null, "name");
+        break;
+      case 3:
+        expectedErrorMessage = "Only values 'Y'or 'N' may be entered into the 
field Active.";
+        ErrorTextParserTestData.insertUser(con, conn, "B", "name");
+        break;
+      case 4:
+        expectedErrorMessage = "There is already a Client with the same Name. 
Name must be unique. You must change the values entered.";
+        ErrorTextParserTestData.insertClientWithName(con, conn, "System", 
"System");
+        break;
+      case 5:
+        expectedErrorMessage = "There is already a Month Translation with the 
same (Month, Language). (Month, Language) must be unique. You must change the 
values entered.";
+        ErrorTextParserTestData.insertMonthTrl(con, conn);
+        break;
+      case 6:
+        expectedErrorMessage = "This record cannot be deleted because it is 
associated with other existing elements. Please see Linked Items";
+        ErrorTextParserTestData.insertUserWithClient(con, conn, "42", "Y", 
"Openbravo");
+        break;
+      case 7:
+        expectedErrorMessage = "This record cannot be deleted because it is 
associated with other existing elements. Please see Linked Items";
+        ErrorTextParserTestData.deleteClient(con, conn, "0");
+        break;
+      case 8:
+        expectedErrorMessage = "There is a constraint defined that was not 
satisfied. Please check the data entered";
+        ErrorTextParserTestData.insertProcess(con, conn, "value", "name", 
"test");
+        break;
+      }
+
+    } catch (ServletException se) {
+      errorMessage = se.getMessage();
+    } finally {
+      conn.releaseRollbackConnection(con);
+    }
+
+    OBError trlError = Utility.translateError(conn, vars, "en_US", 
errorMessage);
+
+    assertEquals(expectedErrorMessage, trlError.getMessage());
+  }
+
+}
\ No newline at end of file
diff -r 163ea059a644 -r fda935b731fe 
src-wad/src/org/openbravo/wad/TemplateSortTab_Relation.html
--- a/src-wad/src/org/openbravo/wad/TemplateSortTab_Relation.html       Mon Mar 
01 18:25:17 2010 +0100
+++ b/src-wad/src/org/openbravo/wad/TemplateSortTab_Relation.html       Mon Mar 
01 22:20:45 2010 +0100
@@ -83,7 +83,7 @@
     <td class="MessageBox_LeftMargin"></td>
     <td>
 
-      <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
+      <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
         <tbody>
         <tr>
           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src-wad/src/org/openbravo/wad/Template_ActionButton.html
--- a/src-wad/src/org/openbravo/wad/Template_ActionButton.html  Mon Mar 01 
18:25:17 2010 +0100
+++ b/src-wad/src/org/openbravo/wad/Template_ActionButton.html  Mon Mar 01 
22:20:45 2010 +0100
@@ -171,7 +171,7 @@
             <tr>
               <td class="MessageBox_LeftMargin"></td>
               <td>
-                <table cellpadding="0" cellspacing="0" style="width: 100%; 
height: 100%">
+                <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                   <tbody>
                   <tr>
                     <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src-wad/src/org/openbravo/wad/Template_Edition.html
--- a/src-wad/src/org/openbravo/wad/Template_Edition.html       Mon Mar 01 
18:25:17 2010 +0100
+++ b/src-wad/src/org/openbravo/wad/Template_Edition.html       Mon Mar 01 
22:20:45 2010 +0100
@@ -148,7 +148,7 @@
     <td class="MessageBox_LeftMargin"></td>
     <td>
 
-      <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
+      <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
         <tbody>
         <tr>
           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src-wad/src/org/openbravo/wad/Template_Relation.html
--- a/src-wad/src/org/openbravo/wad/Template_Relation.html      Mon Mar 01 
18:25:17 2010 +0100
+++ b/src-wad/src/org/openbravo/wad/Template_Relation.html      Mon Mar 01 
22:20:45 2010 +0100
@@ -184,7 +184,7 @@
     <td class="MessageBox_LeftMargin"></td>
     <td>
 
-      <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
+      <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
         <tbody>
         <tr>
           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/base/secureApp/Advise.html
--- a/src/org/openbravo/base/secureApp/Advise.html      Mon Mar 01 18:25:17 
2010 +0100
+++ b/src/org/openbravo/base/secureApp/Advise.html      Mon Mar 01 22:20:45 
2010 +0100
@@ -112,7 +112,7 @@
                     <td class="MessageBox_LeftMargin"></td>
                     <td>
 
-                      <table cellpadding="0" cellspacing="0" style="width: 
100%; height: 100%;">
+                      <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                         <tbody>
                         <tr>
                           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/base/secureApp/AdvisePopUp.html
--- a/src/org/openbravo/base/secureApp/AdvisePopUp.html Mon Mar 01 18:25:17 
2010 +0100
+++ b/src/org/openbravo/base/secureApp/AdvisePopUp.html Mon Mar 01 22:20:45 
2010 +0100
@@ -93,7 +93,7 @@
                     <td class="MessageBox_LeftMargin"></td>
                     <td>
 
-                      <table cellpadding="0" cellspacing="0" style="width: 
100%; height: 100%;">
+                      <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                         <tbody>
                         <tr>
                           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/base/secureApp/AdvisePopUpRefresh.html
--- a/src/org/openbravo/base/secureApp/AdvisePopUpRefresh.html  Mon Mar 01 
18:25:17 2010 +0100
+++ b/src/org/openbravo/base/secureApp/AdvisePopUpRefresh.html  Mon Mar 01 
22:20:45 2010 +0100
@@ -101,7 +101,7 @@
                     <td class="MessageBox_LeftMargin"></td>
                     <td>
 
-                      <table cellpadding="0" cellspacing="0" style="width: 
100%; height: 100%;">
+                      <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                         <tbody>
                         <tr>
                           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe src/org/openbravo/base/secureApp/Error.html
--- a/src/org/openbravo/base/secureApp/Error.html       Mon Mar 01 18:25:17 
2010 +0100
+++ b/src/org/openbravo/base/secureApp/Error.html       Mon Mar 01 22:20:45 
2010 +0100
@@ -127,7 +127,7 @@
                     <td class="MessageBox_LeftMargin"></td>
                     <td>
 
-                      <table cellpadding="0" cellspacing="0" style="width: 
100%; height: 100%;">
+                      <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                         <tbody>
                         <tr>
                           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/base/secureApp/ErrorPopUp.html
--- a/src/org/openbravo/base/secureApp/ErrorPopUp.html  Mon Mar 01 18:25:17 
2010 +0100
+++ b/src/org/openbravo/base/secureApp/ErrorPopUp.html  Mon Mar 01 22:20:45 
2010 +0100
@@ -107,7 +107,7 @@
                     <td class="MessageBox_LeftMargin"></td>
                     <td>
 
-                      <table cellpadding="0" cellspacing="0" style="width: 
100%; height: 100%;">
+                      <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                         <tbody>
                         <tr>
                           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/base/secureApp/HtmlErrorLogin.html
--- a/src/org/openbravo/base/secureApp/HtmlErrorLogin.html      Mon Mar 01 
18:25:17 2010 +0100
+++ b/src/org/openbravo/base/secureApp/HtmlErrorLogin.html      Mon Mar 01 
22:20:45 2010 +0100
@@ -87,7 +87,7 @@
                     <td class="MessageBox_LeftMargin"></td>
                     <td>
 
-                      <table cellpadding="0" cellspacing="0" style="width: 
100%; height: 100%;">
+                      <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                         <tbody>
                         <tr>
                           <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.html    Mon Mar 
01 18:25:17 2010 +0100
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.html    Mon Mar 
01 22:20:45 2010 +0100
@@ -210,7 +210,7 @@
               <td class="MessageBox_LeftMargin"></td>
               <td>
 
-                <table cellpadding="0" cellspacing="0" style="width: 100%; 
height: 100%;">
+                <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                   <tbody>
                   <tr>
                     <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement.html       
Mon Mar 01 18:25:17 2010 +0100
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement.html       
Mon Mar 01 22:20:45 2010 +0100
@@ -167,7 +167,7 @@
                 <td class="MessageBox_LeftMargin"></td>
                 <td>
 
-                  <table cellpadding="0" cellspacing="0" style="width: 100%; 
height: 100%;">
+                  <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                     <tbody>
                     <tr>
                       <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/erpCommon/ad_actionButton/CreateFile.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFile.html       Mon Mar 
01 18:25:17 2010 +0100
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFile.html       Mon Mar 
01 22:20:45 2010 +0100
@@ -141,7 +141,7 @@
                                 <td class="MessageBox_LeftMargin"></td>
                                 <td>
 
-                                  <table cellpadding="0" cellspacing="0" 
style="width: 100%; height: 100%;">
+                                  <table cellpadding="0" cellspacing="0" 
class="MessageBox_Container">
                                     <tbody>
                                     <tr>
                                       <td class="MessageBox_LeftTrans">
diff -r 163ea059a644 -r fda935b731fe 
src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html
--- 
a/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html   
    Mon Mar 01 18:25:17 2010 +0100
+++ 
b/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html   
    Mon Mar 01 22:20:45 2010 +0100
@@ -205,7 +205,7 @@
     <td class="MessageBox_LeftMargin"></td>
     <td>
 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to