summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Dos Santos2014-04-21 18:41:42 (EDT)
committerLeo Dos Santos2014-04-21 18:41:42 (EDT)
commitbe3019cf06ecf13f0c175bd9baf84585524ba782 (patch)
tree8e148544e7fd0a6ccfca902c8ecb0a37aaf2a113
parenta54843daf6b23fa4d8a4d4d8784c8ceef1e7a667 (diff)
downloadorg.eclipse.mylyn.reviews-be3019cf06ecf13f0c175bd9baf84585524ba782.zip
org.eclipse.mylyn.reviews-be3019cf06ecf13f0c175bd9baf84585524ba782.tar.gz
org.eclipse.mylyn.reviews-be3019cf06ecf13f0c175bd9baf84585524ba782.tar.bz2
430204: add GerritCapabilitiesTestrefs/changes/31/25331/1
Change-Id: I7a361119902c4419cc4e82aa6e65177f143c42e6 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=430204 Signed-off-by: Leo Dos Santos <leo.dos.santos@tasktop.com>
-rw-r--r--org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/AllGerritTests.java2
-rw-r--r--org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/core/client/GerritCapabilitiesTest.java28
2 files changed, 30 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/AllGerritTests.java b/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/AllGerritTests.java
index da348a5..1b3f56e 100644
--- a/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/AllGerritTests.java
+++ b/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/AllGerritTests.java
@@ -20,6 +20,7 @@ import org.eclipse.mylyn.commons.sdk.util.ManagedTestSuite;
import org.eclipse.mylyn.commons.sdk.util.TestConfiguration;
import org.eclipse.mylyn.gerrit.tests.core.GerritConnectorTest;
import org.eclipse.mylyn.gerrit.tests.core.GerritSynchronizationTest;
+import org.eclipse.mylyn.gerrit.tests.core.client.GerritCapabilitiesTest;
import org.eclipse.mylyn.gerrit.tests.core.client.GerritClientTest;
import org.eclipse.mylyn.gerrit.tests.core.client.GerritVersionTest;
import org.eclipse.mylyn.gerrit.tests.core.client.OpenIdAuthenticationTest;
@@ -97,6 +98,7 @@ public class AllGerritTests {
fixture.add(GerritReviewRemoteFactoryTest.class);
fixture.add(PatchSetRemoteFactoryTest.class);
fixture.add(GerritUrlHandlerTest.class);
+ fixture.add(GerritCapabilitiesTest.class);
fixture.done();
}
diff --git a/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/core/client/GerritCapabilitiesTest.java b/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/core/client/GerritCapabilitiesTest.java
new file mode 100644
index 0000000..c3f1650
--- /dev/null
+++ b/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/gerrit/tests/core/client/GerritCapabilitiesTest.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Tasktop Technologies 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.gerrit.tests.core.client;
+
+import junit.framework.TestCase;
+
+import org.eclipse.mylyn.gerrit.tests.support.GerritFixture;
+import org.eclipse.mylyn.internal.gerrit.core.client.GerritCapabilities;
+import org.osgi.framework.Version;
+
+public class GerritCapabilitiesTest extends TestCase {
+
+ public void testIsSupported() {
+ Version version = GerritFixture.current().getGerritVersion();
+ GerritCapabilities capabilities = new GerritCapabilities(version);
+ assertTrue(capabilities.isSupported());
+ }
+
+}