Repository navigation
Commit 65cc352
authored
Assert the source archive itself is absent in testNoSources (#318)
Both testNoSources cases asserted that getTestTargetDir("project-005")
does not exist. That helper returns the project's target directory, not
the artifact, so the assertion does not actually check what its message
claims - and it is tied to whether a directory happens to be present
rather than to whether the mojo produced an archive.
Assert the specific jar instead, reusing the existing getSourceArchive
and getTestSourceArchive helpers so each test checks the same artifact
path its positive counterpart asserts.
Fixes #3081 parent 8510aba commit 65cc352
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- src/test/java/org/apache/maven/plugins/source
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments