Skip to content

Commit 9d5aff0

Browse files
merkstrancexpress
authored andcommitted
Test o.e.equinox.p2.core.feature.source instead of o.e.jdt.source
1 parent cd1e8c1 commit 9d5aff0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/target/TargetDefinitionResolutionTests.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,20 @@ public void testSourceBundleRecognition() throws Exception {
425425
PDETestCase.assumeRunningInStandaloneEclipseSDK();
426426

427427
ITargetDefinition definition = getNewTarget();
428+
String defaultLocation = TargetPlatform.getDefaultLocation();
428429

429-
ITargetLocation directoryContainer = getTargetService().newDirectoryLocation(TargetPlatform.getDefaultLocation() + "/plugins");
430+
ITargetLocation directoryContainer = getTargetService().newDirectoryLocation(defaultLocation + "/plugins");
430431

431-
ITargetLocation profileContainer = getTargetService().newProfileLocation(TargetPlatform.getDefaultLocation(), null);
432+
ITargetLocation profileContainer = getTargetService().newProfileLocation(defaultLocation, null);
432433

433-
ITargetLocation featureContainer = getTargetService().newFeatureLocation(TargetPlatform.getDefaultLocation(), "org.eclipse.jdt", null);
434+
String featureWithCorrespondingSourceFeature = "org.eclipse.equinox.p2.core.feature";
434435

435-
ITargetLocation featureContainer2 = getTargetService().newFeatureLocation(TargetPlatform.getDefaultLocation(), "org.eclipse.jdt.source", null);
436+
ITargetLocation featureContainer = getTargetService().newFeatureLocation(defaultLocation,
437+
featureWithCorrespondingSourceFeature,
438+
null);
439+
440+
ITargetLocation featureContainer2 = getTargetService().newFeatureLocation(defaultLocation,
441+
featureWithCorrespondingSourceFeature + ".source", null);
436442

437443
definition.setTargetLocations(new ITargetLocation[]{directoryContainer, profileContainer, featureContainer, featureContainer2});
438444
definition.resolve(null);
@@ -464,4 +470,5 @@ public void testSourceBundleRecognition() throws Exception {
464470
}
465471
}
466472

473+
467474
}

0 commit comments

Comments
 (0)