Skip to content

Commit

Permalink
Fix CustomProfileIntegrationTest with 2023-09
Browse files Browse the repository at this point in the history
Add JavaSE-17 osgi.ee capability to allow resolving.
Simplify test setup while at it.
  • Loading branch information
akurtakov committed Sep 28, 2023
1 parent 6246949 commit ffb6996
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tycho-its/projects/eeProfile.custom/build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</repository>
<repository>
<id>repo-with-test-runtime</id>
<url>${test-runtime-repo}</url>
<url>${target-platform}</url>
<layout>p2</layout>
</repository>
</repositories>
Expand Down
1 change: 1 addition & 0 deletions tycho-its/projects/eeProfile.custom/repository/content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
<provided namespace='osgi.ee' name='JavaSE' version='1.8.0'/>
<provided namespace='osgi.ee' name='JavaSE/compact1' version='1.8.0'/>
<provided namespace='osgi.ee' name='JavaSE' version='11'/>
<provided namespace='osgi.ee' name='JavaSE' version='17'/>
</provides>
<touchpoint id='org.eclipse.equinox.p2.native' version='1.0.0'/>
</unit>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012 SAP AG and others.
* Copyright (c) 2012, 2023 SAP AG and others.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -27,14 +27,13 @@ public class CustomProfileIntegrationTest extends AbstractTychoIntegrationTest {
@Test
public void testBuildWithCustomProfile() throws Exception {
// reactor with a test bundle importing javax.activation;version="1.1.0"
Verifier verifier = getVerifier("eeProfile.custom/build", false);
Verifier verifier = getVerifier("eeProfile.custom/build", true);

// repository where the custom EE is the only provider of
// javax.activation;version="1.1.0"
verifier.setSystemProperty("custom-profile-repo",
ResourceUtil.resolveTestResource("projects/eeProfile.custom/repository").toURI().toString());

verifier.setSystemProperty("test-runtime-repo", ResourceUtil.P2Repositories.ECLIPSE_LATEST.toString());
verifier.executeGoal("verify");
verifier.verifyErrorFreeLog();

Expand Down

0 comments on commit ffb6996

Please sign in to comment.