| Summary: | Use a unique resource name per test method | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Caspar D. <caspar_d> | ||||||||||||||
| Component: | cdo.core | Assignee: | Caspar D. <caspar_d> | ||||||||||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||||||||||
| Severity: | enhancement | ||||||||||||||||
| Priority: | P3 | CC: | saulius.tvarijonas | ||||||||||||||
| Version: | 4.0 | Flags: | stepper:
review+
stepper: review+ |
||||||||||||||
| Target Milestone: | --- | ||||||||||||||||
| Hardware: | All | ||||||||||||||||
| OS: | All | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Bug Depends on: | |||||||||||||||||
| Bug Blocks: | 335653, 337196 | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Caspar D.
Created attachment 188975 [details]
Patch A
This patch contains only the method I want to add to AbstractCDOTest.
Later today I'll attach part B, which will actually put this method
to work in pretty much all cases we have. Hence, part B will be large,
but very trivial, mostly a sed 's/x/y/' job replacing stuff like
"/test1" with getResourcePath("/test1").
Created attachment 188977 [details]
Patch B
This puts the method added in 'Patch A' to use in all normal test
cases (i.e. non-DB).
Note: the changes in patch B are almost all trivial, the only exceptions being a small number of assertions where I had to raise the number of expected objects by +1, because using a test-specific resource path creates a top-level ResourceFolder with the test name. Created attachment 188986 [details]
Patch (all in one)
Created attachment 189013 [details]
Patch v4 - adjusted to HEAD
Committed to trunk, rev. 7086 Not resolving yet, I'll provide a similar patch for the DB test classes today. Created attachment 189070 [details]
Patch for DB tests
Created attachment 189160 [details]
Patch for DB tests v2
Committed to trunk, rev. 7180 Available in R20110608-1407 |