Author: akazakov
Date: 2012-05-24 15:16:22 -0400 (Thu, 24 May 2012)
New Revision: 41372
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
Log:
https://issues.jboss.org/browse/JBIDE-11552 Share project
"org.jboss.tools.cdi.deltaspike.core.test" into
"https://svn.jboss.org/repos/jbosstools"
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
(rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath 2012-05-24 19:16:22 UTC
(rev 41372)
@@ -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: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
(rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project 2012-05-24 19:16:22 UTC
(rev 41372)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.cdi.deltaspike.core.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: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
(rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,30 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Deltaspike Core Test
+Bundle-SymbolicName: org.jboss.tools.cdi.deltaspike.core.test;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Vendor: JBoss by Red Hat
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.jboss.tools.cdi.seam.core,
+ org.eclipse.jdt.core,
+ org.junit,
+ org.jboss.tools.jst.web.kb,
+ org.eclipse.core.resources;bundle-version="3.7.100",
+ org.jboss.tools.tests,
+ org.eclipse.core.runtime;bundle-version="3.7.0",
+ org.jboss.tools.cdi.core,
+ org.jboss.tools.jst.jsp.base.test,
+ org.jboss.tools.cdi.core.test,
+ org.jboss.tools.common,
+ org.eclipse.ui;bundle-version="3.7.0",
+ org.jboss.tools.common.base.test,
+ org.eclipse.jface.text;bundle-version="3.7.0",
+ org.jboss.tools.common.el.core,
+ org.jboss.tools.common.text.ext,
+ org.jboss.tools.jst.text.ext,
+ org.jboss.tools.jst.text.ext.test,
+ org.jboss.tools.cdi.seam.solder.core.test,
+ org.eclipse.wst.validation;bundle-version="1.2.300",
+ org.jboss.tools.jst.jsp
+Export-Package: org.jboss.tools.cdi.deltaspike.core.test
+Eclipse-BundleShape: dir
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
(rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ projects/
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
(rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml 2012-05-24 19:16:22 UTC
(rev 41372)
@@ -0,0 +1,15 @@
+<?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.cdi</groupId>
+ <artifactId>tests</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.cdi.tests</groupId>
+ <artifactId>org.jboss.tools.cdi.deltaspike.core.test</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <emma.instrument.bundles>org.jboss.tools.cdi.seam.core,org.jboss.tools.cdi.core,org.jboss.tools.cdi.xml</emma.instrument.bundles>
+ </properties>
+</project>
\ No newline at end of file
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
===================================================================
---
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
(rev 0)
+++
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
===================================================================
---
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
(rev 0)
+++
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>DeltaspikeCoreTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
===================================================================
---
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
(rev 0)
+++
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * 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.cdi.deltaspike.core.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.jdt.internal.core.JavaModelManager;
+import org.eclipse.wst.validation.ValidationFramework;
+import org.jboss.tools.cdi.deltaspike.core.test.validation.DeltaspikeValidationTest;
+import org.jboss.tools.common.base.test.validation.ValidationExceptionTest;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeCoreAllTests {
+ public static String PLUGIN_ID = "org.jboss.tools.cdi.deltaspike.core.test";
+
+ public static Test suite() {
+ JavaModelManager.getIndexManager().disable();
+
+ ValidationFramework.getDefault().suspendAllValidation(true);
+
+ ValidationExceptionTest.initLogger();
+
+ TestSuite suiteAll = new TestSuite("Deltasipke Core Tests");
+
+ TestSuite suite = new TestSuite("Deltaspike Core Project Tests");
+ suite.addTestSuite(DeltaspikeValidationTest.class);
+
+ suiteAll.addTest(new DeltaspikeCoreTestSetup(suite));
+
+ suiteAll.addTestSuite(ValidationExceptionTest.class); // This test should be added
last!
+
+ return suiteAll;
+ }
+}
\ No newline at end of file
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
===================================================================
---
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
(rev 0)
+++
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.cdi.deltaspike.core.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeCoreTest extends TestCase {
+
+ protected IProject getTestProject() throws Exception {
+ return
ResourcesPlugin.getWorkspace().getRoot().getProject(DeltaspikeCoreTestSetup.PROJECT_NAME);
+ }
+}
\ No newline at end of file
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
===================================================================
---
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
(rev 0)
+++
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.cdi.deltaspike.core.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.jboss.tools.common.base.test.validation.TestUtil;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeCoreTestSetup extends TestSetup {
+
+ public static final String PLUGIN_ID =
"org.jboss.tools.cdi.deltaspike.core.test";
+ public static final String PROJECT_NAME = "DeltaspikeCoreTest";
+ public static final String PROJECT_PATH = "/projects/DeltaspikeCoreTest";
+ public static final String ROOT_PROJECT_NAME = "DeltaspikeCoreRootTest";
+ public static final String ROOT_PROJECT_PATH =
"/projects/DeltaspikeRootTest";
+
+ protected IProject project;
+ protected IProject rootProject;
+
+ public DeltaspikeCoreTestSetup(Test test) {
+ super(test);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ project = ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECT_NAME);
+ if(!project.exists()) {
+ project = ResourcesUtils.importProject(PLUGIN_ID, PROJECT_PATH);
+ TestUtil._waitForValidation(project);
+ rootProject = ResourcesUtils.importProject(PLUGIN_ID, ROOT_PROJECT_PATH);
+ TestUtil._waitForValidation(rootProject);
+ } else {
+ assertTrue(ResourcesPlugin.getWorkspace().getRoot().getProject(ROOT_PROJECT_NAME).exists());
+ }
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ project.delete(true, true, null);
+ rootProject.delete(true, true, null);
+ JobUtils.waitForIdle();
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ }
+}
\ No newline at end of file
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
===================================================================
---
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
(rev 0)
+++
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java 2012-05-24
19:16:22 UTC (rev 41372)
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.cdi.deltaspike.core.test.validation;
+
+import org.jboss.tools.cdi.deltaspike.core.test.DeltaspikeCoreTest;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeValidationTest extends DeltaspikeCoreTest {
+
+ public void testValidation() throws Exception {
+ // TODO
+ }
+}
\ No newline at end of file
Property changes on:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain