Author: akazakov
Date: 2011-11-01 19:01:47 -0400 (Tue, 01 Nov 2011)
New Revision: 36118
Added:
trunk/common/tests/org.jboss.tools.common.mylyn.test/.classpath
trunk/common/tests/org.jboss.tools.common.mylyn.test/.project
trunk/common/tests/org.jboss.tools.common.mylyn.test/META-INF/
trunk/common/tests/org.jboss.tools.common.mylyn.test/META-INF/MANIFEST.MF
trunk/common/tests/org.jboss.tools.common.mylyn.test/build.properties
trunk/common/tests/org.jboss.tools.common.mylyn.test/plugin.properties
trunk/common/tests/org.jboss.tools.common.mylyn.test/pom.xml
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/CommonMylynAllTests.java
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/RepositoryTest.java
Log:
Added: trunk/common/tests/org.jboss.tools.common.mylyn.test/.classpath
===================================================================
--- trunk/common/tests/org.jboss.tools.common.mylyn.test/.classpath
(rev 0)
+++ trunk/common/tests/org.jboss.tools.common.mylyn.test/.classpath 2011-11-01 23:01:47
UTC (rev 36118)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/common/tests/org.jboss.tools.common.mylyn.test/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.mylyn.test/.project
===================================================================
--- trunk/common/tests/org.jboss.tools.common.mylyn.test/.project
(rev 0)
+++ trunk/common/tests/org.jboss.tools.common.mylyn.test/.project 2011-11-01 23:01:47 UTC
(rev 36118)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.common.mylyn.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/common/tests/org.jboss.tools.common.mylyn.test/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.mylyn.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/tests/org.jboss.tools.common.mylyn.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/common/tests/org.jboss.tools.common.mylyn.test/META-INF/MANIFEST.MF 2011-11-01
23:01:47 UTC (rev 36118)
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.jboss.tools.common.mylyn.test;singleton:=true
+Bundle-Version: 3.3.0.qualifier
+Require-Bundle: org.jboss.tools.common.mylyn,
+ org.junit,
+ org.eclipse.mylyn;bundle-version="3.6.0",
+ org.eclipse.mylyn.commons.core;bundle-version="3.6.0",
+ org.eclipse.mylyn.commons.ui;bundle-version="3.6.1",
+ org.eclipse.mylyn.tasks.core;bundle-version="3.6.0",
+ org.eclipse.mylyn.tasks.ui;bundle-version="3.6.2",
+ org.eclipse.core.runtime;bundle-version="3.7.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: %providerName
Property changes on:
trunk/common/tests/org.jboss.tools.common.mylyn.test/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.mylyn.test/build.properties
===================================================================
--- trunk/common/tests/org.jboss.tools.common.mylyn.test/build.properties
(rev 0)
+++ trunk/common/tests/org.jboss.tools.common.mylyn.test/build.properties 2011-11-01
23:01:47 UTC (rev 36118)
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties
+src.includes = src/,\
+ plugin.properties,\
+ META-INF/
Property changes on:
trunk/common/tests/org.jboss.tools.common.mylyn.test/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.mylyn.test/plugin.properties
===================================================================
--- trunk/common/tests/org.jboss.tools.common.mylyn.test/plugin.properties
(rev 0)
+++ trunk/common/tests/org.jboss.tools.common.mylyn.test/plugin.properties 2011-11-01
23:01:47 UTC (rev 36118)
@@ -0,0 +1,2 @@
+providerName=JBoss by Red Hat
+pluginName=JBoss Tools Mylyn Connections Test
\ No newline at end of file
Property changes on:
trunk/common/tests/org.jboss.tools.common.mylyn.test/plugin.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.mylyn.test/pom.xml
===================================================================
--- trunk/common/tests/org.jboss.tools.common.mylyn.test/pom.xml
(rev 0)
+++ trunk/common/tests/org.jboss.tools.common.mylyn.test/pom.xml 2011-11-01 23:01:47 UTC
(rev 36118)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.common</groupId>
+ <artifactId>tests</artifactId>
+ <version>3.3.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.common.tests</groupId>
+ <artifactId>org.jboss.tools.common.mylyn.test</artifactId>
+
+ <packaging>eclipse-test-plugin</packaging>
+
+ <properties>
+ <emma.instrument.bundles>org.jboss.tools.common,org.jboss.tools.common.model</emma.instrument.bundles>
+ </properties>
+</project>
Property changes on: trunk/common/tests/org.jboss.tools.common.mylyn.test/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/CommonMylynAllTests.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/CommonMylynAllTests.java
(rev 0)
+++
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/CommonMylynAllTests.java 2011-11-01
23:01:47 UTC (rev 36118)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.mylyn.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class CommonMylynAllTests {
+
+ public static Test suite() {
+ TestSuite suiteAll = new TestSuite("Common Mylyn Tests");
+ suiteAll.addTestSuite(RepositoryTest.class);
+ return suiteAll;
+ }
+}
\ No newline at end of file
Property changes on:
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/CommonMylynAllTests.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/RepositoryTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/RepositoryTest.java
(rev 0)
+++
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/RepositoryTest.java 2011-11-01
23:01:47 UTC (rev 36118)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.mylyn.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class RepositoryTest extends TestCase {
+
+ public void testBugzilla() {
+ TaskRepository repo =
TasksUiPlugin.getRepositoryManager().getRepository("bugzilla",
"https://bugzilla.redhat.com");
+ assertNotNull(repo);
+ }
+
+ public void testJIRA() {
+ TaskRepository repo =
TasksUiPlugin.getRepositoryManager().getRepository("jira",
"https://issues.jboss.org");
+ assertNotNull(repo);
+ }
+}
\ No newline at end of file
Property changes on:
trunk/common/tests/org.jboss.tools.common.mylyn.test/src/org/jboss/tools/common/mylyn/test/RepositoryTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain