Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011682Openbravo ERPA. Platformpublic2009-12-08 14:322009-12-11 00:00
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
pi 
pi 
Core
No
0011682: Testclasses must preferably use the default set user context methods
The BaseTest class provides different methods to set the user context. As some test classes make assumptions about the default role of a user testclasses should preferably use one of these methods:
BaseTest.setSystemAdministratorContext()
BaseTest.setBigBazaarAdminContext()
BaseTest.setBigBazaarUserContext()
No tags attached.
Issue History
2009-12-08 14:32mtaalNew Issue
2009-12-08 14:32mtaalAssigned To => mtaal
2009-12-08 14:37mtaalTypefeature request => defect
2009-12-08 16:46hgbotCheckin
2009-12-08 16:46hgbotNote Added: 0022548
2009-12-08 16:46hgbotStatusnew => resolved
2009-12-08 16:46hgbotResolutionopen => fixed
2009-12-08 16:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/26e665271d0e3989ccfe82392cf9c8b30652ee46 [^]
2009-12-08 22:09hgbotCheckin
2009-12-08 22:09hgbotNote Added: 0022551
2009-12-08 22:09hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/26e665271d0e3989ccfe82392cf9c8b30652ee46 [^] => http://code.openbravo.com/erp/devel/pi/rev/dcd4113188f6732ac1aba0feb6047974b7dc44e2 [^]
2009-12-08 22:09mtaalNote Added: 0022552
2009-12-10 12:35shuehnerNote Added: 0022629
2009-12-10 12:35shuehnerStatusresolved => closed
2009-12-11 00:00anonymoussf_bug_id0 => 2912324

Notes
(0022548)
hgbot   
2009-12-08 16:46   
Repository: erp/devel/pi
Changeset: 26e665271d0e3989ccfe82392cf9c8b30652ee46
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Dec 08 16:45:52 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/26e665271d0e3989ccfe82392cf9c8b30652ee46 [^]

fixes issue 11682: Testclasses must preferably use the default set user context methods

---
M src-test/org/openbravo/test/base/BaseTest.java
M src-test/org/openbravo/test/dal/DalComplexQueryRequisitionTest.java
M src-test/org/openbravo/test/dal/DalComplexQueryTestOrderLine.java
M src-test/org/openbravo/test/dal/DalConnectionProviderTest.java
M src-test/org/openbravo/test/dal/DalCopyTest.java
M src-test/org/openbravo/test/dal/DalPerformanceInventoryLineTest.java
M src-test/org/openbravo/test/dal/DalQueryTest.java
M src-test/org/openbravo/test/dal/DalStoredProcedureTest.java
M src-test/org/openbravo/test/dal/DalTest.java
M src-test/org/openbravo/test/dal/DynamicEntityTest.java
M src-test/org/openbravo/test/dal/HiddenUpdateTest.java
M src-test/org/openbravo/test/dal/ValidationTest.java
M src-test/org/openbravo/test/expression/EvaluationTest.java
M src-test/org/openbravo/test/model/OneToManyTest.java
M src-test/org/openbravo/test/modularity/DBPrefixTest.java
M src-test/org/openbravo/test/modularity/DatasetServiceTest.java
M src-test/org/openbravo/test/modularity/TableNameTest.java
M src-test/org/openbravo/test/security/AccessLevelTest.java
M src-test/org/openbravo/test/security/AllowedOrganizationsTest.java
M src-test/org/openbravo/test/security/EntityAccessTest.java
M src-test/org/openbravo/test/security/WritableReadableOrganizationClientTest.java
M src-test/org/openbravo/test/system/SystemServiceTest.java
M src-test/org/openbravo/test/system/SystemValidatorTest.java
M src-test/org/openbravo/test/webservice/BaseWSTest.java
M src-test/org/openbravo/test/webservice/WSUpdateTest.java
M src-test/org/openbravo/test/xml/ClientExportImportTest.java
M src-test/org/openbravo/test/xml/EntityXMLImportTestBusinessObject.java
M src-test/org/openbravo/test/xml/EntityXMLImportTestReference.java
M src-test/org/openbravo/test/xml/EntityXMLImportTestSingle.java
M src-test/org/openbravo/test/xml/EntityXMLImportTestWarning.java
M src-test/org/openbravo/test/xml/EntityXMLIssues.java
M src-test/org/openbravo/test/xml/UniqueConstraintImportTest.java
M src-test/org/openbravo/test/xml/XMLBaseTest.java
---
(0022551)
hgbot   
2009-12-08 22:09   
Repository: erp/devel/pi
Changeset: dcd4113188f6732ac1aba0feb6047974b7dc44e2
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Dec 08 22:08:32 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/dcd4113188f6732ac1aba0feb6047974b7dc44e2 [^]

fix related to issue 11682: Testclasses must preferably use the default set user context methods

---
M src-test/org/openbravo/test/base/BaseTest.java
M src-test/org/openbravo/test/security/EntityAccessTest.java
---
(0022552)
mtaal   
2009-12-08 22:09   
An additional changeset is related to this issue:
https://code.openbravo.com/erp/devel/pi/rev/dcd4113188f6 [^]
(0022629)
shuehner   
2009-12-10 12:35   
tested, now run.all.tests runs fine even with changed default role for openbravo admin.