aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tycho-its/src/test/java/org/eclipse/tycho/test/buildextension/MixedTychoVersionsTest.java')
-rw-r--r--tycho-its/src/test/java/org/eclipse/tycho/test/buildextension/MixedTychoVersionsTest.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/tycho-its/src/test/java/org/eclipse/tycho/test/buildextension/MixedTychoVersionsTest.java b/tycho-its/src/test/java/org/eclipse/tycho/test/buildextension/MixedTychoVersionsTest.java
new file mode 100644
index 0000000..02efa6f
--- /dev/null
+++ b/tycho-its/src/test/java/org/eclipse/tycho/test/buildextension/MixedTychoVersionsTest.java
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2012 SAP AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SAP AG - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.tycho.test.buildextension;
+
+import static org.junit.Assert.fail;
+
+import org.apache.maven.it.VerificationException;
+import org.apache.maven.it.Verifier;
+import org.eclipse.tycho.core.utils.TychoVersion;
+import org.eclipse.tycho.test.AbstractTychoIntegrationTest;
+import org.junit.Test;
+
+public class MixedTychoVersionsTest extends AbstractTychoIntegrationTest {
+
+ @Test
+ public void testSeveralTychoVersionsConfigured() throws Exception {
+ Verifier verifier = getVerifier("multipleVersions", false);
+ try {
+ verifier.executeGoal("compile");
+ fail();
+ } catch (VerificationException e) {
+ // expected
+ verifier.verifyTextInLog("[ERROR] Several versions of tycho plugins are configured [0.13.0, 0.14.0, "
+ + TychoVersion.getTychoVersion() + "]:");
+ }
+ }
+
+}