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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011682
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2009-12-08 14:322009-12-11 00:00
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiondcd4113188f6
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0011682: Testclasses must preferably use the default set user context methods

DescriptionThe 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()
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0022548)
hgbot (developer)
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 (developer)
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 (manager)
2009-12-08 22:09

An additional changeset is related to this issue:
https://code.openbravo.com/erp/devel/pi/rev/dcd4113188f6 [^]
(0022629)
shuehner (administrator)
2009-12-10 12:35

tested, now run.all.tests runs fine even with changed default role for openbravo admin.

- Issue History
Date Modified Username Field Change
2009-12-08 14:32 mtaal New Issue
2009-12-08 14:32 mtaal Assigned To => mtaal
2009-12-08 14:37 mtaal Type feature request => defect
2009-12-08 16:46 hgbot Checkin
2009-12-08 16:46 hgbot Note Added: 0022548
2009-12-08 16:46 hgbot Status new => resolved
2009-12-08 16:46 hgbot Resolution open => fixed
2009-12-08 16:46 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/26e665271d0e3989ccfe82392cf9c8b30652ee46 [^]
2009-12-08 22:09 hgbot Checkin
2009-12-08 22:09 hgbot Note Added: 0022551
2009-12-08 22:09 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/26e665271d0e3989ccfe82392cf9c8b30652ee46 [^] => http://code.openbravo.com/erp/devel/pi/rev/dcd4113188f6732ac1aba0feb6047974b7dc44e2 [^]
2009-12-08 22:09 mtaal Note Added: 0022552
2009-12-10 12:35 shuehner Note Added: 0022629
2009-12-10 12:35 shuehner Status resolved => closed
2009-12-11 00:00 anonymous sf_bug_id 0 => 2912324


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker