Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-05-07 22:47:42 +0000
committerAndrew Niefer2009-05-07 22:47:42 +0000
commit57713caf095eb010a3fa977e6e409e695f160647 (patch)
tree3a267bf619c03cdfb1bb4d9491498801de88dfa2 /bundles/org.eclipse.equinox.p2.tests
parent202af9c95a0db8f602819a57dd088dbab7008423 (diff)
downloadrt.equinox.p2-57713caf095eb010a3fa977e6e409e695f160647.tar.gz
rt.equinox.p2-57713caf095eb010a3fa977e6e409e695f160647.tar.xz
rt.equinox.p2-57713caf095eb010a3fa977e6e409e695f160647.zip
bug 274467 - multiple entries in eclipse.ini
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ProductActionTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ProductActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ProductActionTest.java
index cc2275878..f968a4b4f 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ProductActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ProductActionTest.java
@@ -13,6 +13,7 @@ package org.eclipse.equinox.p2.tests.publisher.actions;
import static org.easymock.EasyMock.*;
import java.io.File;
+import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
import org.easymock.Capture;
@@ -167,6 +168,17 @@ public class ProductActionTest extends ActionTest {
assertEquals("1.0", 1, collector.size());
}
+ public void testMultiConfigspecProductPublishing() throws IOException, Exception {
+ ProductFile productFile = new ProductFile(TestData.getFile("ProductActionTest", "platform.product").toString());
+ PublisherInfo info = new PublisherInfo();
+ info.setConfigurations(new String[] {"carbon.macos.x86", "cocoa.macos.x86"});
+ testAction = new ProductAction(source, productFile, flavorArg, executablesFeatureLocation);
+ testAction.perform(info, publisherResult, null);
+
+ Collection advice = info.getAdvice("carbon.macos.x86", false, null, null, IConfigAdvice.class);
+ assertEquals("1.0", 1, advice.size());
+ }
+
/**
* Tests that correct advice is created for the org.eclipse.platform product.
*/

Back to the top