Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0015950
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorrandom2011-02-11 08:462011-05-24 10:56
ReporterdalsasuaView Statuspublic 
Assigned Todalsasua 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revisionc36d47b6c770
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.6.0_21
OS VersionUbuntu 10.10Database version11.2.0 SEAnt version1.8.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0015950: Randomly the jUnit testUpdateCurrencyByUser test fails

DescriptionRandomly the jUnit testUpdateCurrencyByUser test fails
Proposed Solution--- a/src-test/org/openbravo/test/dal/DalTest.java
+++ b/src-test/org/openbravo/test/dal/DalTest.java
@@ -145,17 +145,15 @@
   // test querying for a specific currency and then updating it
   // should fail for a user
   public void testUpdateCurrencyByUser() {
- setUserContext(getRandomUser().getId());
+ setUserContext("30BB6B32AE984CF08705C57A6C7FAFB9");
     final OBCriteria<Currency> obc = OBDal.getInstance().createCriteria(Currency.class);
     obc.add(Expression.eq(Currency.PROPERTY_ISOCODE, "USD"));
     final List<Currency> cs = obc.list();
TagsclosingMay2011
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0034148)
hgbot (developer)
2011-02-11 11:49

Repository: erp/devel/pi
Changeset: bcbf5a3d9d1ff1ee138b2a862692d781014c2753
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri Feb 11 11:47:20 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bcbf5a3d9d1ff1ee138b2a862692d781014c2753 [^]

Fixes issue 15950: Randomly junit test fails.
Substituted getRandomUser for a concrete one.

---
M src-test/org/openbravo/test/dal/DalTest.java
---
(0034177)
hgbot (developer)
2011-02-14 13:19

Repository: erp/devel/pi
Changeset: c36d47b6c770cba8d6bdf9716f450a4a58d86584
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Feb 14 13:17:41 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c36d47b6c770cba8d6bdf9716f450a4a58d86584 [^]

Fixes issue 15950: Randomly junit test fails.

---
M src-test/org/openbravo/test/dal/DalQueryTest.java
---

- Issue History
Date Modified Username Field Change
2011-02-11 08:46 dalsasua New Issue
2011-02-11 08:46 dalsasua Assigned To => dalsasua
2011-02-11 08:46 dalsasua Modules => Core
2011-02-11 11:45 dalsasua Status new => scheduled
2011-02-11 11:45 dalsasua fix_in_branch => pi
2011-02-11 11:49 hgbot Checkin
2011-02-11 11:49 hgbot Note Added: 0034148
2011-02-11 11:49 hgbot Status scheduled => resolved
2011-02-11 11:49 hgbot Resolution open => fixed
2011-02-11 11:49 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bcbf5a3d9d1ff1ee138b2a862692d781014c2753 [^]
2011-02-14 13:19 hgbot Checkin
2011-02-14 13:19 hgbot Note Added: 0034177
2011-02-14 13:19 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/bcbf5a3d9d1ff1ee138b2a862692d781014c2753 [^] => http://code.openbravo.com/erp/devel/pi/rev/c36d47b6c770cba8d6bdf9716f450a4a58d86584 [^]
2011-05-24 10:08 dalsasua Tag Attached: closingMay2011
2011-05-24 10:56 dalsasua Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker