Commit b1b27be
Fix manifestHeaderServiceComponentAdded test on macOS and Windows
Fix manifestHeaderServiceComponentAdded test to read MANIFEST.MF directly
The test was using PluginRegistry.findModel() which returns a cached
in-memory model that may not reflect the updated MANIFEST.MF after the
DS annotation builder writes the Service-Component header. On macOS and
Windows, the model manager's resource change event processing can lag
behind the file changes, causing the test to read stale data.
Fix by reading the MANIFEST.MF file directly using java.util.jar.Manifest,
with refreshLocal() before reading, consistent with how other DS
annotation tests (AnnotationProcessorTest) read their test files.1 parent f0f1778 commit b1b27be
1 file changed
Lines changed: 11 additions & 10 deletions
File tree
- ds/org.eclipse.pde.ds.annotations.tests/src/org/eclipse/pde/ds/internal/annotations/tests
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
15 | | - | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments