Skip to content

Commit 88b807d

Browse files
committed
[Tycho] Tycho 4.0.5 and fix tests fragment dependency
- With Tycho 4.0.5 the com.archimatetool.editor.tests fragment is not resolved from com.archimatetool.canvas.tests - See eclipse-tycho/tycho#3441 - Remove the line "extra.. = platform:/fragment/com.archimatetool.editor.tests" from build.properties - Add "Import-Package: com.archimatetool.testingtools" to the com.archimatetool.canvas.tests manifest. This ensures that the com.archimatetool.editor.tests fragment is resolved by forcing it to load because the package name is unique to that fragment (whereas importing a package that also exists in the fragment's host plug-in will load the host, not the fragment)
1 parent 3c8a3e3 commit 88b807d

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.mvn/maven.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-Dtycho-version=4.0.4
1+
-Dtycho-version=4.0.5

tests/com.archimatetool.canvas.tests/META-INF/MANIFEST.MF

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bundle-Name: JUnit Tests for Archi Canvas Editor
44
Bundle-SymbolicName: com.archimatetool.canvas.tests
55
Bundle-Version: 4.0.0
66
Fragment-Host: com.archimatetool.canvas
7-
Import-Package: com.archimatetool.editor.ui.factory
7+
Import-Package: com.archimatetool.testingtools
88
Bundle-Vendor: Archi
99
Require-Bundle: org.junit
1010
Bundle-RequiredExecutionEnvironment: JavaSE-17

tests/com.archimatetool.canvas.tests/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ bin.includes = META-INF/,\
44
jars.compile.order = .
55
source.. = src/
66
output.. = bin/
7-
extra.. = platform:/fragment/com.archimatetool.editor.tests
7+

tests/com.archimatetool.editor.tests/META-INF/MANIFEST.MF

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ Require-Bundle: org.junit,
1010
org.mockito.mockito-core
1111
Bundle-RequiredExecutionEnvironment: JavaSE-17
1212
Bundle-ClassPath: .
13-
Export-Package: com.archimatetool.editor.ui.factory,
14-
com.archimatetool.testingtools
13+
Export-Package: com.archimatetool.testingtools
1514
Automatic-Module-Name: com.archimatetool.editor.tests

0 commit comments

Comments
 (0)