JBoss Tools SVN: r35945 - in trunk/cdi/tests/org.jboss.tools.cdi.bot.test: src/org/jboss/tools/cdi/bot/test and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2011-10-24 11:37:18 -0400 (Mon, 24 Oct 2011)
New Revision: 35945
Added:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIFindObserverForEventTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIATWizardTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIPerspectiveTest.java
Removed:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B1.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/BrokenFarm.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/DisposerProducerBean.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/Dog.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/InterDecor.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean2.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean3.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean4.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean2.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean3.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDIAllBotTests.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/CDIQuickFixTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/seam3/CDISeam3Test.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/editor/BeansEditor.java
Log:
CDIPerspectiveTest added + huge refactoring all cdi bot tests
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B1.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B1.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B1.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.context.SessionScoped;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/B2.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import java.net.URL;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/BrokenFarm.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/BrokenFarm.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/BrokenFarm.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.inject.Inject;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/DisposerProducerBean.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/DisposerProducerBean.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/DisposerProducerBean.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Produces;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/Dog.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/Dog.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/Dog.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
public class Dog extends Animal {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/InterDecor.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/InterDecor.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/InterDecor.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.inject.Disposes;
public class InterDecor {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
public class MyBean {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean2.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean2.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean2.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.ejb.Singleton;
import javax.interceptor.AroundInvoke;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean3.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean3.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean3.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.event.Event;
import javax.inject.Inject;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean4.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean4.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/MyBean4.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.event.Observes;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.inject.Specializes;
import javax.interceptor.Interceptor;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean2.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean2.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean2.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.decorator.Decorator;
import javax.decorator.Delegate;
import javax.enterprise.inject.Produces;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean3.java.cdi
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean3.java.cdi 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/cdi/TestBean3.java.cdi 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,4 +1,4 @@
-package org.cdi.test;
+package cdi;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDIAllBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDIAllBotTests.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDIAllBotTests.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -11,12 +11,14 @@
package org.jboss.tools.cdi.bot.test;
import org.jboss.tools.cdi.bot.test.editor.BeansEditorTest;
+import org.jboss.tools.cdi.bot.test.openon.CDIFindObserverForEventTest;
import org.jboss.tools.cdi.bot.test.openon.CDIOpenOnTest;
import org.jboss.tools.cdi.bot.test.quickfix.CDIQuickFixTest;
import org.jboss.tools.cdi.bot.test.seam3.CDISeam3Test;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
-import org.jboss.tools.cdi.bot.test.wizard.CdiATWizardTest;
+import org.jboss.tools.cdi.bot.test.wizard.CDIATWizardTest;
+import org.jboss.tools.cdi.bot.test.wizard.CDIPerspectiveTest;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.jboss.tools.ui.bot.ext.types.ViewType;
import org.junit.BeforeClass;
@@ -45,18 +47,20 @@
* @author Jaroslav Jankovic
*/
@RunWith(RequirementAwareSuite.class)
-@SuiteClasses({
- CdiATWizardTest.class,
+@SuiteClasses({
+ CDIPerspectiveTest.class,
+ CDIATWizardTest.class,
BeansEditorTest.class,
CDIQuickFixTest.class,
CDIOpenOnTest.class,
+ CDIFindObserverForEventTest.class,
CDISeam3Test.class
})
-public class CDIAllBotTests extends CDIBase{
+public class CDIAllBotTests extends CDIBase {
/*
* init method "setup()" shows a project explorer view as default,
- * disable folding (due to easier source code editing)
+ * disable folding ( to easier source code editing)
*/
@BeforeClass
public static void setUpSuite() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISmokeBotTests.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -12,7 +12,8 @@
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
-import org.jboss.tools.cdi.bot.test.wizard.CdiATWizardTest;
+import org.jboss.tools.cdi.bot.test.wizard.CDIATWizardTest;
+import org.jboss.tools.cdi.bot.test.wizard.CDIPerspectiveTest;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.jboss.tools.ui.bot.ext.types.ViewType;
import org.junit.BeforeClass;
@@ -41,7 +42,8 @@
*/
@RunWith(RequirementAwareSuite.class)
@SuiteClasses({
- CdiATWizardTest.class,
+ CDIPerspectiveTest.class,
+ CDIATWizardTest.class,
})
public class CDISmokeBotTests extends CDIBase {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditorTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -28,6 +28,7 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.SWTBot;
import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
import org.jboss.tools.cdi.bot.test.uiutils.editor.BeansEditor;
@@ -36,6 +37,7 @@
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.types.EntityType;
import org.jboss.tools.ui.bot.ext.view.ProjectExplorer;
import org.junit.After;
import org.junit.AfterClass;
@@ -51,6 +53,11 @@
import org.xml.sax.SAXException;
/**
+ * prerequisite - CDIAtWizardTest
+ *
+ *
+ * TO DO - copy resources into right location - PACKAGE_NAME
+ *
* @author Lukas Jungmann
* @author jjankovi
*/
@@ -61,16 +68,21 @@
private static final String descPath = "WebContent/WEB-INF/beans.xml";
private static final String project = "CDIProject";
- private static final String PACKAGE_NAME = "org.cdi.test";
+ private static final String PACKAGE_NAME = "cdi";
private static final Logger LOGGER = Logger.getLogger(BeansEditorTest.class.getName());
@BeforeClass
public static void prepare() {
+ if (!projectExists(project)) {
+ createAndCheckCDIProject(bot, util, projectExplorer, project);
+ createPackage(PACKAGE_NAME);
+ }
+
copyResource("resources/beans.xml", descPath);
copyResource("resources/Foo.jav_", "src/" + PACKAGE_NAME + "/Foo.java");
- copyResource("resources/Bar.jav_", "src/" + PACKAGE_NAME + "/Bar.java");
+ copyResource("resources/Bar.jav_", "src/" + PACKAGE_NAME + "/Bar.java");
}
-
+
@AfterClass
public static void clean() {
removeObjectInProjectExplorer(PACKAGE_NAME, project + "/Java Resources/src");
@@ -86,6 +98,13 @@
public void waitForJobs() {
util.waitForNonIgnoredJobs();
}
+
+ @Test
+ public void testClasses() {
+ addItem(Item.CLASS, PACKAGE_NAME + ".Foo");
+ addItem(Item.CLASS, PACKAGE_NAME + ".Bar");
+ removeItem(Item.CLASS, PACKAGE_NAME + ".Foo");
+ }
@Test
public void testInterceptors() {
@@ -94,21 +113,16 @@
addItem(Item.INTERCEPTOR, PACKAGE_NAME + ".I2");
}
+
@Test
public void testDecorators() {
addItem(Item.DECORATOR, PACKAGE_NAME + ".MapDecorator");
addItem(Item.DECORATOR, PACKAGE_NAME + ".ComparableDecorator");
removeItem(Item.DECORATOR, PACKAGE_NAME + ".ComparableDecorator");
}
+
@Test
- public void testClasses() {
- addItem(Item.CLASS, PACKAGE_NAME + ".Foo");
- addItem(Item.CLASS, PACKAGE_NAME + ".Bar");
- removeItem(Item.CLASS, PACKAGE_NAME + ".Foo");
- }
-
- @Test
public void testStereotypes() {
addItem(Item.STEREOTYPE, PACKAGE_NAME + ".S2");
addItem(Item.STEREOTYPE, PACKAGE_NAME + ".S3");
@@ -233,6 +247,16 @@
return false;
}
+ private static void createPackage(String packageName) {
+ projectExplorer.selectProject(project);
+ eclipse.createNew(EntityType.JAVA_PACKAGE);
+ SWTBot packageDialogBot = bot.activeShell().bot();
+ packageDialogBot.textWithLabel("Name:").typeText(packageName);
+ packageDialogBot.button("Finish").click();
+ util.waitForNonIgnoredJobs();
+ LOGGER.info("Package " + PACKAGE_NAME + " created");
+ }
+
private static void copyResource(String src, String target) {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProjects()[0];
IFile f = project.getFile(target);
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIFindObserverForEventTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIFindObserverForEventTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIFindObserverForEventTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -0,0 +1,72 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.bot.test.openon;
+
+
+import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
+import org.jboss.tools.cdi.bot.test.CDISmokeBotTests;
+import org.jboss.tools.cdi.bot.test.quickfix.CDIQuickFixTest;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.junit.After;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+* Test operates on CDI perspective
+*
+* @author Jaroslav Jankovic
+*/
+
+@Require(clearProjects = false, perspective = "Java EE", server = @Server(state = ServerState.NotRunning, version = "6.0", operator = ">="))
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({ CDIAllBotTests.class })
+public class CDIFindObserverForEventTest extends CDIBase {
+
+ private static final Logger LOGGER = Logger.getLogger(CDIFindObserverForEventTest.class.getName());
+ private static final String PROJECT_NAME = "CDIProject";
+ private static final String PACKAGE_NAME = "cdi";
+
+
+ @BeforeClass
+ public static void checkAndCreateProject() {
+ if (!projectExists(PROJECT_NAME)) {
+ createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
+ }
+ }
+
+ @After
+ public void waitForJobs() {
+ util.waitForNonIgnoredJobs();
+ }
+
+ //not implemented yet
+ @Test
+ public void testSimpleObserverFinding() {
+
+ }
+ //not implemented yet
+ @Test
+ public void testComplexObserverFinding() {
+
+ }
+
+}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/CDIOpenOnTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -22,6 +22,7 @@
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
import org.junit.After;
import org.junit.AfterClass;
+import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite.SuiteClasses;
@@ -47,11 +48,13 @@
private static final Logger LOGGER = Logger.getLogger(CDIQuickFixTest.class.getName());
private static final String PROJECT_NAME = "CDIProject";
- private static final String PACKAGE_NAME = "org.cdi.test";
-
- @After
- public void waitForJobs() {
- util.waitForNonIgnoredJobs();
+ private static final String PACKAGE_NAME = "cdi";
+
+ @BeforeClass
+ public static void checkAndCreateProject() {
+ if (!projectExists(PROJECT_NAME)) {
+ createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
+ }
}
@AfterClass
@@ -59,14 +62,11 @@
removeObjectInProjectExplorer("beans.xml", PROJECT_NAME + "/WebContent/WEB-INF");
}
- @Test
- public void testCheckProjectExists() {
- if (!projectExists(PROJECT_NAME)) {
- createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
- }
- assertTrue(projectExists(PROJECT_NAME));
+ @After
+ public void waitForJobs() {
+ util.waitForNonIgnoredJobs();
}
-
+
@Test
public void testBeanInjectOpenOn() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/CDIQuickFixTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/CDIQuickFixTest.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/CDIQuickFixTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -23,6 +23,7 @@
import org.jboss.tools.ui.bot.ext.view.ProblemsView;
import org.junit.After;
import org.junit.AfterClass;
+import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite.SuiteClasses;
@@ -39,10 +40,23 @@
public class CDIQuickFixTest extends CDIBase {
private static final String PROJECT_NAME = "CDIProject";
- private static final String PACKAGE_NAME = "org.cdi.test";
+ private static final String PACKAGE_NAME = "cdi";
private static SWTBotTreeItem[] problemsTrees;
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
+
+ @BeforeClass
+ public static void checkAndCreateProject() {
+ if (!projectExists(PROJECT_NAME)) {
+ createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
+ }
+ }
+
+ @AfterClass
+ public static void clean() {
+ removeObjectInProjectExplorer(PACKAGE_NAME, PROJECT_NAME + "/Java Resources/src");
+ }
+
/*
* check problems (warnings and errors in Problems View)
*/
@@ -52,20 +66,8 @@
util.waitForNonIgnoredJobs();
}
- @AfterClass
- public static void clean() {
- removeObjectInProjectExplorer(PACKAGE_NAME, PROJECT_NAME + "/Java Resources/src");
- }
@Test
- public void testCheckProjectExists() {
- if (!projectExists(PROJECT_NAME)) {
- createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
- }
- assertTrue(projectExists(PROJECT_NAME));
- }
-
- @Test
public void testSerializableQF() {
@@ -89,6 +91,7 @@
* CDI Quick Fix test operates over validation
* concerning about Stereoscope component
*/
+
@Test
public void testStereoscopeQF() {
String className = "S1";
@@ -111,6 +114,7 @@
* CDI Quick Fix test operates over validation
* concerning about Qualifier component
*/
+
@Test
public void testQualifiersQF() {
String className = "Q2";
@@ -131,6 +135,7 @@
* CDI Quick Fix test operates over validation
* concerning about Scope component
*/
+
@Test
public void testScopeQF() {
String className = "Scope1";
@@ -172,6 +177,7 @@
* CDI Quick Fix test operates over validation
* concerning about Interceptors/Interceptor Binding/Decorator component
*/
+
@Test
public void testInterDecorQF() {
String className = "InterDecor";
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/seam3/CDISeam3Test.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/seam3/CDISeam3Test.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/seam3/CDISeam3Test.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -24,6 +24,7 @@
import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
import org.junit.After;
+import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite.SuiteClasses;
@@ -42,21 +43,27 @@
private static final Logger LOGGER = Logger.getLogger(CDISeam3Test.class.getName());
private static final String PROJECT_NAME = "CDIProject";
private static final String PACKAGE_NAME = "org.cdi.test";
- private static final String GENERIC_PACKAGE_NAME = "org.cdi.generic";
+ private static final String GENERIC_PACKAGE_NAME = "cdi";
+
+ @BeforeClass
+ public static void checkAndCreateProject() {
+ if (!projectExists(PROJECT_NAME)) {
+ createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
+ }
+ addLibrary("seam-solder.jar");
+ checkLibrary("seam-solder.jar");
+ }
+
@After
public void waitForJobs() {
util.waitForNonIgnoredJobs();
}
+
@Test
- public void testCreateProjectWithSeamLibraries() {
- if (!projectExists(PROJECT_NAME)) {
- createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
- }
- assertTrue(projectExists(PROJECT_NAME));
- addLibrary("seam-solder.jar");
- checkLibrary("seam-solder.jar");
+ public void testCreateProjectWithSeamLibraries() {
+
}
/*
@@ -123,7 +130,7 @@
*/
}
- private void addLibrary(String libraryName) {
+ private static void addLibrary(String libraryName) {
try {
addLibraryIntoProject(PROJECT_NAME, libraryName);
LOGGER.info("Library: \"" + libraryName + "\" copied");
@@ -134,7 +141,7 @@
}
}
- private void checkLibrary(String libraryName) {
+ private static void checkLibrary(String libraryName) {
isLibraryInProjectClassPath(PROJECT_NAME, libraryName);
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/actions/CDIBase.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -132,7 +132,7 @@
}
- public void createAndCheckCDIProject(SWTBotExt bot, SWTUtilExt util,
+ public static void createAndCheckCDIProject(SWTBotExt bot, SWTUtilExt util,
ProjectExplorer projectExplorer, String projectName) {
createCDIProject(util, projectName);
projectExplorer.selectProject(projectName);
@@ -142,20 +142,20 @@
addCDISupport(tree, item, bot, util);
}
- public void createCDIProject(SWTUtilExt util, String projectName) {
+ public static void createCDIProject(SWTUtilExt util, String projectName) {
new NewFileWizardAction().run()
.selectTemplate("Web", "Dynamic Web Project").next();
new DynamicWebProjectWizard().setProjectName(projectName).finish();
- util.waitForNonIgnoredJobs();
+ util.waitForNonIgnoredJobs();
}
- public void addCDISupport(final SWTBotTree tree, SWTBotTreeItem item,
+ public static void addCDISupport(final SWTBotTree tree, SWTBotTreeItem item,
SWTBotExt bot, SWTUtilExt util) {
CDIUtil.nodeContextMenu(tree, item, "Configure",
"Add CDI (Context and Dependency Injection) support...")
.click();
bot.activeShell().bot().button("OK").click();
- bot.sleep(Timing.time2S());
+ bot.sleep(Timing.time2S());
util.waitForNonIgnoredJobs();
}
@@ -168,9 +168,9 @@
openOnString, offset, openOnString.length() - offset));
if (chosenOption != null) {
SWTBotMenu navigateMenu = bot.menu("Navigate");
- bot.sleep(TIME_500MS);
+ bot.sleep(Timing.time500MS());
navigateMenu.menu("Open Hyperlink").click();
- bot.sleep(TIME_500MS);
+ bot.sleep(Timing.time500MS());
SWTBotTable table = bot.activeShell().bot().table(0);
for (int i = 0; i < table.rowCount(); i++) {
if (table.getTableItem(i).getText().contains(chosenOption)) {
@@ -180,14 +180,14 @@
}
} else {
getEd().setFocus();
- bot.sleep(TIME_500MS);
+ bot.sleep(Timing.time500MS());
getEd().pressShortcut(Keystrokes.F3);
}
bot.sleep(Timing.time1S());
setEd(bot.activeEditor().toTextEditor());
}
- public void addLibraryToProjectsClassPath(String projectName, String libraryName) {
+ public static void addLibraryToProjectsClassPath(String projectName, String libraryName) {
SWTBotTree tree = projectExplorer.bot().tree();
ContextMenuHelper.prepareTreeItemForContextMenu(tree);
@@ -199,14 +199,14 @@
bot.tree().expandNode("Java Build Path").select();
bot.tabItem("Libraries").activate();
bot.button("Add JARs...").click();
- bot.sleep(TIME_500MS);
+ bot.sleep(Timing.time500MS());
String file = libraryName;
bot.tree().expandNode(projectName).expandNode(file).select();
bot.button(IDELabel.Button.OK).click();
- bot.sleep(TIME_1S);
+ bot.sleep(Timing.time1S());
bot.button(IDELabel.Button.OK).click();
- bot.sleep(TIME_1S);
+ bot.sleep(Timing.time1S());
}
/*
@@ -261,7 +261,7 @@
+ projectName,libraryInProject);
bot.button(IDELabel.Button.CANCEL).click();
- bot.sleep(TIME_1S);
+ bot.sleep(Timing.time1S());
}
public void moveFileInProjectExplorer(String file, String sourceFolder, String destFolder) {
@@ -291,10 +291,10 @@
bot.button("OK").click();
- bot.sleep(TIME_1S*2);
+ bot.sleep(Timing.time2S());
}
- public boolean projectExists(String projectName) {
+ public static boolean projectExists(String projectName) {
SWTBotTree tree = projectExplorer.bot().tree();
boolean projectExists = false;
try {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/editor/BeansEditor.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/editor/BeansEditor.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/editor/BeansEditor.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.cdi.bot.test.uiutils.editor;
+import org.apache.log4j.Level;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.SWTBot;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton;
@@ -17,6 +18,7 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.eclipse.ui.IEditorReference;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.widgets.SWTBotMultiPageEditor;
@@ -70,7 +72,11 @@
}
private BeansEditor modify(Item item, String name, String actionLabel, DialogHandler h) {
- SWTBotTree tree = bot.tree();
+ SWTBotTree tree = bot.tree(1);
+ for (SWTBotTreeItem ti:tree.getAllItems()) {
+ log.setLevel(Level.FATAL);
+ log.fatal(ti.getText());
+ }
tree.expandNode(ROOT_NODE, item.getNode()).select().click();
selectItem(item, name);
getItemButton(item, actionLabel).click();
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIATWizardTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIATWizardTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIATWizardTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -0,0 +1,396 @@
+/*******************************************************************************
+ * Copyright (c) 2010-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.bot.test.wizard;
+
+import java.util.logging.Logger;
+
+import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
+import org.jboss.tools.cdi.bot.test.CDISmokeBotTests;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.NewCDIFileWizard;
+import org.jboss.tools.cdi.bot.test.uiutils.wizards.CDIWizard;
+import org.jboss.tools.cdi.bot.test.uiutils.wizards.CDIWizardType;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.junit.After;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+ * @author Lukas Jungmann
+ * @author jjankovi
+ */
+@Require(clearProjects = false, perspective = "Java EE", server = @Server(state = ServerState.NotRunning, version = "6.0", operator = ">="))
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({ CDIAllBotTests.class, CDISmokeBotTests.class })
+public class CDIATWizardTest extends CDIBase {
+
+ private static final String PROJECT_NAME = "CDIProject";
+ private static final String PACKAGE_NAME = "cdi";
+ private static final Logger L = Logger.getLogger(CDIATWizardTest.class.getName());
+
+ @After
+ public void waitForJobs() {
+ util.waitForNonIgnoredJobs();
+ }
+
+ @BeforeClass
+ public static void checkAndCreateProject() {
+ if (!projectExists(PROJECT_NAME)) {
+ createAndCheckCDIProject(bot, util, projectExplorer,PROJECT_NAME);
+ }
+ }
+
+ @Test
+ public void testQualifier() {
+ CDIUtil.qualifier(PACKAGE_NAME, "Q1", false, false).finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Q1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Qualifier"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD, PARAMETER, FIELD })"));
+ assertFalse(code.contains("@Inherited"));
+ assertFalse(code.startsWith("/**"));
+
+ CDIUtil.qualifier(PACKAGE_NAME, "Q2", true, true).finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Q2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Qualifier"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD, PARAMETER, FIELD })"));
+ assertTrue(code.contains("@Inherited"));
+ assertTrue(code.startsWith("/**"));
+ }
+
+ @Test
+ public void testScope() {
+ CDIUtil.scope(PACKAGE_NAME, "Scope1", true, false, true, false).finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Scope1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@NormalScope"));
+ assertFalse(code.contains("@Scope"));
+ assertFalse(code.contains("passivating"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
+ assertTrue(code.contains("@Inherited"));
+ assertFalse(code.startsWith("/**"));
+
+ CDIUtil.scope(PACKAGE_NAME, "Scope2", false, true, true, true).finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Scope2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@NormalScope(passivating = true)"));
+ assertFalse(code.contains("@Scope"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
+ assertFalse(code.contains("@Inherited"));
+ assertTrue(code.startsWith("/**"));
+
+ CDIUtil.scope(PACKAGE_NAME, "Scope3", false, true, false, false).finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Scope3.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Scope"));
+ assertFalse(code.contains("@NormalScope"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
+ assertFalse(code.contains("@Inherited"));
+ assertTrue(code.startsWith("/**"));
+ }
+
+ @Test
+ public void testIBinding() {
+ CDIWizard w = CDIUtil.binding(PACKAGE_NAME, "B1", null, true, false);
+ assertEquals(2, w.getTargets().size());
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("B1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@InterceptorBinding"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD })"));
+ assertTrue(code.contains("@Inherited"));
+ assertFalse(code.startsWith("/**"));
+
+ CDIUtil.binding(PACKAGE_NAME, "B2", "TYPE", false, true).finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("B2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@InterceptorBinding"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE })"));
+ assertFalse(code.contains("@Inherited"));
+ assertTrue(code.startsWith("/**"));
+
+ CDIUtil.binding(PACKAGE_NAME, "B3", "TYPE", false, true).finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("B3.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@InterceptorBinding"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE })"));
+ assertFalse(code.contains("@Inherited"));
+ assertTrue(code.startsWith("/**"));
+
+ w = CDIUtil.binding(PACKAGE_NAME, "B4", "TYPE", true, false);
+ w.addIBinding(PACKAGE_NAME + ".B2");
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("B4.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@InterceptorBinding"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE })"));
+ assertTrue(code.contains("@Inherited"));
+ assertFalse(code.startsWith("/**"));
+ assertTrue(code.contains("@B2"));
+ }
+
+ @Test
+ public void testStereotype() {
+ CDIWizard w = CDIUtil.stereotype(PACKAGE_NAME, "S1", null, null, false, false, false, false,
+ false);
+ assertEquals(9, w.getScopes().size());
+ assertEquals(5, w.getTargets().size());
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("S1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Stereotype"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
+ assertFalse(code.contains("@Named"));
+ assertFalse(code.contains("@Alternative"));
+ assertFalse(code.contains("@Inherited"));
+ assertFalse(code.startsWith("/**"));
+
+ CDIUtil.stereotype(PACKAGE_NAME, "S2", "@Scope3", "FIELD", true, true, true, false, true)
+ .finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("S2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Stereotype"));
+ assertTrue(code.contains("@Scope3"));
+ assertTrue(code.contains("@Named"));
+ assertTrue(code.contains("@Alternative"));
+ assertTrue(code.contains("@Inherited"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ FIELD })"));
+ assertTrue(code.startsWith("/**"));
+
+ w = CDIUtil.stereotype(PACKAGE_NAME, "S3", null, null, false, false, true, false, false);
+ w.addIBinding(PACKAGE_NAME + ".B1");
+ w.addStereotype(PACKAGE_NAME + ".S1");
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("S3.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Stereotype"));
+ assertFalse(code.contains("@Scope3"));
+ assertFalse(code.contains("@Named"));
+ assertTrue(code.contains("@Alternative"));
+ assertTrue(code.contains("@B1"));
+ assertTrue(code.contains("@S1"));
+ assertTrue(code.contains("@Retention(RUNTIME)"));
+ assertTrue(code.contains("@Target({ TYPE })"));
+ assertFalse(code.contains("@Inherited"));
+ assertFalse(code.startsWith("/**"));
+ }
+
+ @Test
+ public void testDecorator() {
+ CDIWizard w = CDIUtil.decorator(PACKAGE_NAME, "", "java.lang.Comparable", null, true, true, false, false);
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().editorByTitle("ComparableDecorator.java");
+ assertTrue(("ComparableDecorator.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Decorator"));
+ assertTrue(code.contains("abstract class"));
+ assertTrue(code.contains("@Delegate"));
+ assertTrue(code.contains("@Inject"));
+ assertTrue(code.contains("@Any"));
+ assertTrue(code.contains("private Comparable<T> comparable;"));
+ assertFalse(code.contains("final"));
+ assertFalse(code.startsWith("/**"));
+
+ w = CDIUtil.decorator(PACKAGE_NAME, "", "java.util.Map", "field", false, false, true, true);
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().editorByTitle("MapDecorator.java");
+ assertTrue(("MapDecorator.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@Decorator"));
+ assertFalse(code.contains("abstract"));
+ assertTrue(code.contains("@Delegate"));
+ assertTrue(code.contains("@Inject"));
+ assertTrue(code.contains("@Any"));
+ assertTrue(code.contains("private Map<K, V> field;"));
+ assertTrue(code.contains("final class"));
+ assertTrue(code.startsWith("/**"));
+ }
+
+ @Test
+ public void testInterceptor() {
+ CDIWizard w = CDIUtil.interceptor(PACKAGE_NAME, "I1", "B2", null, null, false);
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().editorByTitle("I1.java");
+ assertTrue(("I1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@B2"));
+ assertTrue(code.contains("@Interceptor"));
+ assertTrue(code.contains("@AroundInvoke"));
+ assertTrue(code.contains("public Object manage(InvocationContext ic) throws Exception {"));
+ assertFalse(code.contains("final"));
+ assertFalse(code.startsWith("/**"));
+
+ w = CDIUtil.interceptor(PACKAGE_NAME, "I2", "B4", "java.util.Date", "sample", true);
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().editorByTitle("I2.java");
+ assertTrue(("I2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("@B4"));
+ assertTrue(code.contains("@Interceptor"));
+ assertTrue(code.contains("@AroundInvoke"));
+ assertTrue(code.contains("public Object sample(InvocationContext ic) throws Exception {"));
+ assertFalse(code.contains("final"));
+ assertTrue(code.startsWith("/**"));
+ assertTrue(code.contains("extends Date"));
+ }
+
+ @Test
+ public void testBeansXml() {
+ CDIWizard w = new NewCDIFileWizard(CDIWizardType.BEANS_XML).run();
+ w.setSourceFolder(PROJECT_NAME + "/WebContent/WEB-INF");
+ assertFalse(w.canFinish());
+ w.setSourceFolder(PROJECT_NAME + "/src/" + PACKAGE_NAME.replaceAll(".", "/"));
+ assertTrue(w.canFinish());
+ w.cancel();
+ w = new NewCDIFileWizard(CDIWizardType.BEANS_XML).run();
+ assertFalse(w.canFinish());
+ w.cancel();
+ }
+
+ @Test
+ public void testBean() {
+ CDIWizard w = CDIUtil.bean(PACKAGE_NAME, "Bean1", true, true, false, false, false, false, null, null, null, null);
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Bean1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("package cdi;"));
+ assertTrue(code.contains("public abstract class Bean1 {"));
+ assertFalse(code.contains("@Named"));
+ assertFalse(code.contains("final"));
+ assertFalse(code.startsWith("/**"));
+
+ w = CDIUtil.bean(PACKAGE_NAME, "Bean2", false, false, true, true, false, false, "", null, "@Dependent", null);
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Bean2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("package cdi;"));
+ assertTrue(code.contains("@Named"));
+ assertFalse(code.contains("@Named("));
+ assertTrue(code.contains("@Dependent"));
+ assertTrue(code.contains("final class Bean2 {"));
+ assertTrue(code.startsWith("/**"));
+
+ w = CDIUtil.bean(PACKAGE_NAME, "Bean3", true, false, false, true, false, false, "TestedBean", null, "@Scope2", "Q1");
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("Bean3.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.fine(code);
+ assertTrue(code.contains("package cdi;"));
+ assertTrue(code.contains("@Named(\"TestedBean\")"));
+ assertTrue(code.contains("@Scope2"));
+ assertTrue(code.contains("@Q1"));
+ assertTrue(code.contains("public class Bean3 {"));
+ assertFalse(code.contains("final"));
+ assertTrue(code.startsWith("/**"));
+ }
+
+ @Test
+ public void testAnnLiteral() {
+ CDIWizard w = CDIUtil.annLiteral(PACKAGE_NAME, "AnnL1", true, false, true, false, PACKAGE_NAME + ".Q1");
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("AnnL1.java").equals(ed.getTitle()));
+ String code = ed.toTextEditor().getText();
+ L.info(code);
+ assertTrue(code.contains("package cdi;"));
+ assertTrue(code.contains("public final class AnnL1 extends AnnotationLiteral<Q1> implements Q1"));
+ assertTrue(code.contains("public static final Q1 INSTANCE = new AnnL1();"));
+ assertFalse(code.contains("abstract"));
+ assertFalse(code.startsWith("/**"));
+
+ w = CDIUtil.annLiteral(PACKAGE_NAME, "AnnL2", false, true, false, true, "Q2");
+ w.finish();
+ util.waitForNonIgnoredJobs();
+ ed = new SWTWorkbenchBot().activeEditor();
+ assertTrue(("AnnL2.java").equals(ed.getTitle()));
+ code = ed.toTextEditor().getText();
+ L.info(code);
+ assertTrue(code.contains("package cdi;"));
+ assertTrue(code.contains("abstract class AnnL2 extends AnnotationLiteral<Q2> implements Q2 {"));
+ assertTrue(code.contains("public static final Q2 INSTANCE = new AnnL2();"));
+ assertFalse(code.substring(code.indexOf("final") + 5).contains("final"));
+ assertTrue(code.contains("abstract"));
+ assertTrue(code.startsWith("/**"));
+ }
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIPerspectiveTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIPerspectiveTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CDIPerspectiveTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -0,0 +1,148 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.bot.test.wizard;
+
+
+import java.util.logging.Logger;
+
+import org.eclipse.swt.SWTException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
+import org.jboss.tools.cdi.bot.test.CDISmokeBotTests;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
+import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.jboss.tools.ui.bot.ext.Timing;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.types.PerspectiveType;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+* Test operates on CDI perspective
+*
+* @author Jaroslav Jankovic
+*/
+
+@Require(clearProjects = false, perspective = "Java EE", server = @Server(state = ServerState.NotRunning, version = "6.0", operator = ">="))
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({ CDIAllBotTests.class, CDISmokeBotTests.class })
+public class CDIPerspectiveTest extends CDIBase {
+
+ private static final Logger LOGGER = Logger.getLogger(CDIPerspectiveTest.class.getName());
+ private static final String PROJECT_NAME = "CDIProject";
+ private enum CDIARTIFACTS {
+ BEAN, QUALIFIER, STEREOTYPE, SCOPE, INTERBINDING, INTERCEPTOR, DECORATOR, ANNOTLITERAL, BEANSXML
+ }
+
+
+ @BeforeClass
+ public static void checkAndCreateProject() {
+ if (!projectExists(PROJECT_NAME)) {
+ createAndCheckCDIProject(bot, util, projectExplorer, PROJECT_NAME);
+ }
+ eclipse.openPerspective(PerspectiveType.CDI);
+ LOGGER.info("CDI perspective selected");
+ bot.sleep(Timing.time2S());
+ }
+
+ @Test
+ public void testCDIArtifactBeanWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.BEAN));
+ }
+
+ @Test
+ public void testCDIArtifactAnnotationLiteralWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.ANNOTLITERAL));
+ }
+
+ @Test
+ public void testCDIArtifactBeanXMLWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.BEANSXML));
+ }
+
+ @Test
+ public void testCDIArtifactDecoratorWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.DECORATOR));
+ }
+
+ @Test
+ public void testCDIArtifactQualifierWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.QUALIFIER));
+ }
+
+ @Test
+ public void testCDIArtifactScopeWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.SCOPE));
+ }
+
+ @Test
+ public void testCDIArtifactStereoscopeWizard() {
+
+ assertTrue(openCDIArtifactsWizard(CDIARTIFACTS.STEREOTYPE));
+ }
+
+ private boolean openCDIArtifactsWizard(CDIARTIFACTS artifact) {
+
+ SWTBotTree tree = packageExplorer.bot().tree();
+ SWTBotTreeItem item = tree.getTreeItem(PROJECT_NAME);
+ item.expand();
+ boolean artifactWizardExists = true;
+ try {
+ CDIUtil.nodeContextMenu(tree, item, "New", getArtifactMenuItem(artifact)).click();
+ bot.sleep(Timing.time500MS());
+ bot.activeShell().bot().button("Cancel").click();
+
+ } catch (SWTException exc) {
+ artifactWizardExists = false;
+ }
+ bot.sleep(Timing.time1S());
+ util.waitForNonIgnoredJobs();
+ return artifactWizardExists;
+ }
+
+ private String getArtifactMenuItem(CDIARTIFACTS artifact) {
+ switch (artifact) {
+ case ANNOTLITERAL:
+ return "Annotation Literal";
+ case BEAN:
+ return "Bean";
+ case BEANSXML:
+ return "File beans.xml";
+ case DECORATOR:
+ return "Decorator";
+ case INTERBINDING:
+ return "Interceptor Binding Annotation";
+ case INTERCEPTOR:
+ return "Interceptor";
+ case QUALIFIER:
+ return "Qualifier Annotation";
+ case SCOPE:
+ return "Scope Annotation";
+ case STEREOTYPE:
+ return "Stereotype Annotation";
+ default:
+ return null;
+ }
+ }
+
+}
Deleted: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java 2011-10-24 15:28:50 UTC (rev 35944)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/wizard/CdiATWizardTest.java 2011-10-24 15:37:18 UTC (rev 35945)
@@ -1,393 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010-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.bot.test.wizard;
-
-import java.util.logging.Logger;
-
-import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
-import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
-import org.jboss.tools.cdi.bot.test.CDIAllBotTests;
-import org.jboss.tools.cdi.bot.test.CDISmokeBotTests;
-import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIBase;
-import org.jboss.tools.cdi.bot.test.uiutils.actions.CDIUtil;
-import org.jboss.tools.cdi.bot.test.uiutils.actions.NewCDIFileWizard;
-import org.jboss.tools.cdi.bot.test.uiutils.wizards.CDIWizard;
-import org.jboss.tools.cdi.bot.test.uiutils.wizards.CDIWizardType;
-import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
-import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
-import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
-import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
-import org.junit.After;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite.SuiteClasses;
-
-/**
- * @author Lukas Jungmann
- * @author jjankovi
- */
-@Require(perspective = "Java EE", server = @Server(state = ServerState.NotRunning, version = "6.0", operator = ">="))
-(a)RunWith(RequirementAwareSuite.class)
-@SuiteClasses({ CDIAllBotTests.class, CDISmokeBotTests.class })
-public class CdiATWizardTest extends CDIBase {
-
- private static final String PROJECT_NAME = "CDIProject";
- private static final String PACKAGE_NAME = "org.cdi.test";
- private static final Logger L = Logger.getLogger(CdiATWizardTest.class.getName());
-
- @After
- public void waitForJobs() {
- util.waitForNonIgnoredJobs();
- }
-
- @Test
- public void createProject() {
- createAndCheckCDIProject(bot, util, projectExplorer, PROJECT_NAME);
- }
-
- @Test
- public void testQualifier() {
- CDIUtil.qualifier(PACKAGE_NAME, "Q1", false, false).finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Q1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Qualifier"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD, PARAMETER, FIELD })"));
- assertFalse(code.contains("@Inherited"));
- assertFalse(code.startsWith("/**"));
-
- CDIUtil.qualifier(PACKAGE_NAME, "Q2", true, true).finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Q2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Qualifier"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD, PARAMETER, FIELD })"));
- assertTrue(code.contains("@Inherited"));
- assertTrue(code.startsWith("/**"));
- }
-
- @Test
- public void testScope() {
- CDIUtil.scope(PACKAGE_NAME, "Scope1", true, false, true, false).finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Scope1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@NormalScope"));
- assertFalse(code.contains("@Scope"));
- assertFalse(code.contains("passivating"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
- assertTrue(code.contains("@Inherited"));
- assertFalse(code.startsWith("/**"));
-
- CDIUtil.scope(PACKAGE_NAME, "Scope2", false, true, true, true).finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Scope2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@NormalScope(passivating = true)"));
- assertFalse(code.contains("@Scope"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
- assertFalse(code.contains("@Inherited"));
- assertTrue(code.startsWith("/**"));
-
- CDIUtil.scope(PACKAGE_NAME, "Scope3", false, true, false, false).finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Scope3.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Scope"));
- assertFalse(code.contains("@NormalScope"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
- assertFalse(code.contains("@Inherited"));
- assertTrue(code.startsWith("/**"));
- }
-
- @Test
- public void testIBinding() {
- CDIWizard w = CDIUtil.binding(PACKAGE_NAME, "B1", null, true, false);
- assertEquals(2, w.getTargets().size());
- w.finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("B1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@InterceptorBinding"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD })"));
- assertTrue(code.contains("@Inherited"));
- assertFalse(code.startsWith("/**"));
-
- CDIUtil.binding(PACKAGE_NAME, "B2", "TYPE", false, true).finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("B2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@InterceptorBinding"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE })"));
- assertFalse(code.contains("@Inherited"));
- assertTrue(code.startsWith("/**"));
-
- CDIUtil.binding(PACKAGE_NAME, "B3", "TYPE", false, true).finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("B3.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@InterceptorBinding"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE })"));
- assertFalse(code.contains("@Inherited"));
- assertTrue(code.startsWith("/**"));
-
- w = CDIUtil.binding(PACKAGE_NAME, "B4", "TYPE", true, false);
- w.addIBinding(PACKAGE_NAME + ".B2");
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("B4.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@InterceptorBinding"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE })"));
- assertTrue(code.contains("@Inherited"));
- assertFalse(code.startsWith("/**"));
- assertTrue(code.contains("@B2"));
- }
-
- @Test
- public void testStereotype() {
- CDIWizard w = CDIUtil.stereotype(PACKAGE_NAME, "S1", null, null, false, false, false, false,
- false);
- assertEquals(9, w.getScopes().size());
- assertEquals(5, w.getTargets().size());
- w.finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("S1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Stereotype"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE, METHOD, FIELD })"));
- assertFalse(code.contains("@Named"));
- assertFalse(code.contains("@Alternative"));
- assertFalse(code.contains("@Inherited"));
- assertFalse(code.startsWith("/**"));
-
- CDIUtil.stereotype(PACKAGE_NAME, "S2", "@Scope3", "FIELD", true, true, true, false, true)
- .finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("S2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Stereotype"));
- assertTrue(code.contains("@Scope3"));
- assertTrue(code.contains("@Named"));
- assertTrue(code.contains("@Alternative"));
- assertTrue(code.contains("@Inherited"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ FIELD })"));
- assertTrue(code.startsWith("/**"));
-
- w = CDIUtil.stereotype(PACKAGE_NAME, "S3", null, null, false, false, true, false, false);
- w.addIBinding(PACKAGE_NAME + ".B1");
- w.addStereotype(PACKAGE_NAME + ".S1");
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("S3.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Stereotype"));
- assertFalse(code.contains("@Scope3"));
- assertFalse(code.contains("@Named"));
- assertTrue(code.contains("@Alternative"));
- assertTrue(code.contains("@B1"));
- assertTrue(code.contains("@S1"));
- assertTrue(code.contains("@Retention(RUNTIME)"));
- assertTrue(code.contains("@Target({ TYPE })"));
- assertFalse(code.contains("@Inherited"));
- assertFalse(code.startsWith("/**"));
- }
-
- @Test
- public void testDecorator() {
- CDIWizard w = CDIUtil.decorator(PACKAGE_NAME, "", "java.lang.Comparable", null, true, true, false, false);
- w.finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().editorByTitle("ComparableDecorator.java");
- assertTrue(("ComparableDecorator.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Decorator"));
- assertTrue(code.contains("abstract class"));
- assertTrue(code.contains("@Delegate"));
- assertTrue(code.contains("@Inject"));
- assertTrue(code.contains("@Any"));
- assertTrue(code.contains("private Comparable<T> comparable;"));
- assertFalse(code.contains("final"));
- assertFalse(code.startsWith("/**"));
-
- w = CDIUtil.decorator(PACKAGE_NAME, "", "java.util.Map", "field", false, false, true, true);
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().editorByTitle("MapDecorator.java");
- assertTrue(("MapDecorator.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@Decorator"));
- assertFalse(code.contains("abstract"));
- assertTrue(code.contains("@Delegate"));
- assertTrue(code.contains("@Inject"));
- assertTrue(code.contains("@Any"));
- assertTrue(code.contains("private Map<K, V> field;"));
- assertTrue(code.contains("final class"));
- assertTrue(code.startsWith("/**"));
- }
-
- @Test
- public void testInterceptor() {
- CDIWizard w = CDIUtil.interceptor(PACKAGE_NAME, "I1", "B2", null, null, false);
- w.finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().editorByTitle("I1.java");
- assertTrue(("I1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@B2"));
- assertTrue(code.contains("@Interceptor"));
- assertTrue(code.contains("@AroundInvoke"));
- assertTrue(code.contains("public Object manage(InvocationContext ic) throws Exception {"));
- assertFalse(code.contains("final"));
- assertFalse(code.startsWith("/**"));
-
- w = CDIUtil.interceptor(PACKAGE_NAME, "I2", "B4", "java.util.Date", "sample", true);
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().editorByTitle("I2.java");
- assertTrue(("I2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("@B4"));
- assertTrue(code.contains("@Interceptor"));
- assertTrue(code.contains("@AroundInvoke"));
- assertTrue(code.contains("public Object sample(InvocationContext ic) throws Exception {"));
- assertFalse(code.contains("final"));
- assertTrue(code.startsWith("/**"));
- assertTrue(code.contains("extends Date"));
- }
-
- @Test
- public void testBeansXml() {
- CDIWizard w = new NewCDIFileWizard(CDIWizardType.BEANS_XML).run();
- w.setSourceFolder(PROJECT_NAME + "/WebContent/WEB-INF");
- assertFalse(w.canFinish());
- w.setSourceFolder(PROJECT_NAME + "/src/" + PACKAGE_NAME.replaceAll(".", "/"));
- assertTrue(w.canFinish());
- w.cancel();
- w = new NewCDIFileWizard(CDIWizardType.BEANS_XML).run();
- assertFalse(w.canFinish());
- w.cancel();
- }
-
- @Test
- public void testBean() {
- CDIWizard w = CDIUtil.bean(PACKAGE_NAME, "Bean1", true, true, false, false, false, false, null, null, null, null);
- w.finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Bean1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("package org.cdi.test;"));
- assertTrue(code.contains("public abstract class Bean1 {"));
- assertFalse(code.contains("@Named"));
- assertFalse(code.contains("final"));
- assertFalse(code.startsWith("/**"));
-
- w = CDIUtil.bean(PACKAGE_NAME, "Bean2", false, false, true, true, false, false, "", null, "@Dependent", null);
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Bean2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("package org.cdi.test;"));
- assertTrue(code.contains("@Named"));
- assertFalse(code.contains("@Named("));
- assertTrue(code.contains("@Dependent"));
- assertTrue(code.contains("final class Bean2 {"));
- assertTrue(code.startsWith("/**"));
-
- w = CDIUtil.bean(PACKAGE_NAME, "Bean3", true, false, false, true, false, false, "TestedBean", null, "@Scope2", "Q1");
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("Bean3.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.fine(code);
- assertTrue(code.contains("package org.cdi.test;"));
- assertTrue(code.contains("@Named(\"TestedBean\")"));
- assertTrue(code.contains("@Scope2"));
- assertTrue(code.contains("@Q1"));
- assertTrue(code.contains("public class Bean3 {"));
- assertFalse(code.contains("final"));
- assertTrue(code.startsWith("/**"));
- }
-
- @Test
- public void testAnnLiteral() {
- CDIWizard w = CDIUtil.annLiteral(PACKAGE_NAME, "AnnL1", true, false, true, false, PACKAGE_NAME + ".Q1");
- w.finish();
- util.waitForNonIgnoredJobs();
- SWTBotEditor ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("AnnL1.java").equals(ed.getTitle()));
- String code = ed.toTextEditor().getText();
- L.info(code);
- assertTrue(code.contains("package org.cdi.test;"));
- assertTrue(code.contains("public final class AnnL1 extends AnnotationLiteral<Q1> implements Q1"));
- assertTrue(code.contains("public static final Q1 INSTANCE = new AnnL1();"));
- assertFalse(code.contains("abstract"));
- assertFalse(code.startsWith("/**"));
-
- w = CDIUtil.annLiteral(PACKAGE_NAME, "AnnL2", false, true, false, true, "Q2");
- w.finish();
- util.waitForNonIgnoredJobs();
- ed = new SWTWorkbenchBot().activeEditor();
- assertTrue(("AnnL2.java").equals(ed.getTitle()));
- code = ed.toTextEditor().getText();
- L.info(code);
- assertTrue(code.contains("package org.cdi.test;"));
- assertTrue(code.contains("abstract class AnnL2 extends AnnotationLiteral<Q2> implements Q2 {"));
- assertTrue(code.contains("public static final Q2 INSTANCE = new AnnL2();"));
- assertFalse(code.substring(code.indexOf("final") + 5).contains("final"));
- assertTrue(code.contains("abstract"));
- assertTrue(code.startsWith("/**"));
- }
-}
13 years, 2 months
JBoss Tools SVN: r35944 - trunk/documentation/whatsnew/as.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-24 11:28:50 -0400 (Mon, 24 Oct 2011)
New Revision: 35944
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
Log:
[JBIDE-9954] created N&N for AS
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-24 15:26:54 UTC (rev 35943)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-24 15:28:50 UTC (rev 35944)
@@ -57,9 +57,9 @@
</td>
<td valign="top" width="90%">
<p>JBoss AS Tools now introduces a server adapter that is able to publish OpenShift Express applications
- to the Red Hat PaaS. The server adapter is created when you import an OpenShift Express Application on behalf
- of our tools. Our adapter allows you to publish the changes within your eclipse project. It commits and pushes
- behind the scenes and offers you the most convenient pusblishing method so far (compared to manually committing and pushing on the git repo).</p>
+ to the Red Hat PaaS. The server adapter is created when you import an OpenShift Express application with
+ our tools. Our adapter allows you to publish the changes within your eclipse project. It commits and pushes
+ behind the scenes and offers you the most convenient pusblishing method so far.</p>
<p><img src="images/server-adapter.png" alt="server adapter" /></p>
<p><img src="images/server-adapter-editor.png" alt="server adapter editor" /></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9856">Related Jira</a></small></p>
@@ -79,8 +79,8 @@
</td>
<td valign="top" width="90%">
<p>JBoss AS7 offers an impressive OSGI runtime. We therefore added the capability to deploy osgi projects to an
- AS7 on behalf of our Eclipse WTP server adapter in prior versions of JBoss tools. There were a problems when deploying those projects.
- We them and now offer a pretty much flawless behaviour.</p>
+ AS7 instance in prior versions of JBoss tools. We still had minor bugs when deploying those projects.
+ We fixed those bugs and now offer a flawless behaviour.</p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9709">Related Jira</a> <a href="https://issues.jboss.org/browse/JBIDE-9711">Related Jira</a></small></p>
</td>
</tr>
13 years, 2 months
JBoss Tools SVN: r35943 - in trunk/openshift/features: org.jboss.tools.openshift.egit.integration.feature and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-10-24 11:26:54 -0400 (Mon, 24 Oct 2011)
New Revision: 35943
Added:
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/.project
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/build.properties
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.properties
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.xml
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/license.html
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/pom.xml
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/.project
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/build.properties
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.properties
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.xml
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/license.html
trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/pom.xml
trunk/openshift/features/org.jboss.tools.openshift.express.feature/
trunk/openshift/features/org.jboss.tools.openshift.express.feature/.project
trunk/openshift/features/org.jboss.tools.openshift.express.feature/build.properties
trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.properties
trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.xml
trunk/openshift/features/org.jboss.tools.openshift.express.feature/license.html
trunk/openshift/features/org.jboss.tools.openshift.express.feature/pom.xml
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/.project
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/build.properties
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.properties
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.xml
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/license.html
trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/pom.xml
Log:
JBIDE-10013 - features missing
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/.project
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/.project (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/.project 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.openshift.egit.integration.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/build.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/build.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/build.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,8 @@
+bin.includes = feature.xml,\
+ license.html,\
+ feature.properties
+src.includes = .project,\
+ license.html,\
+ feature.properties,\
+ feature.xml,\
+ build.properties
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,31 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss Tools EGit Integration (Experimental)
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+devUpdateSiteName=JBossTools Development Update Site
+
+# "description" property - description of the feature
+description=Provides a layer of convenience methods for integration with the Git tooling of Eclipse (EGit)
+
+copyright=JBoss, Home of Professional Open Source\nCopyright (c) Red Hat, Inc., and individual contributors as indicated\nby the @authors tag, 2011. See the copyright.txt in the distribution\nfor a full listing of individual contributors.
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/feature.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature id="org.jboss.tools.openshift.egit.integration.feature" label="%featureName" version="0.0.1.qualifier" provider-name="%providerName">
+
+ <description url="http://www.jboss.org/tools">
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="license.html">
+ Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses),
+which in a particular case may include the Eclipse Public License,
+the GNU Lesser General Public License, and/or certain other open
+source licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+ </license>
+
+ <plugin id="org.jboss.tools.openshift.egit.core" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.jboss.tools.openshift.egit.ui" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+</feature>
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/license.html
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/license.html (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/license.html 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/license.html
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/pom.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/pom.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.feature/pom.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,13 @@
+<?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.openshift</groupId>
+ <artifactId>features</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift.features</groupId>
+ <artifactId>org.jboss.tools.openshift.egit.integration.feature</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+</project>
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/.project
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/.project (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/.project 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.openshift.egit.integration.source.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/build.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/build.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/build.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,3 @@
+bin.includes = feature.xml,\
+ feature.properties,\
+ license.html
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,42 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss Tools EGit Integration (Experimental) source
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=Provides a layer of convenience methods for integration with the Git tooling of Eclipse (EGit)
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under \
+certain open source licenses (or aggregations of such licenses), which \
+in a particular case may include the Eclipse Public License, the GNU \
+Lesser General Public License, and/or certain other open source \
+licenses. For precise licensing details, consult the corresponding \
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, \
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/feature.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.openshift.egit.integration.source.feature"
+ label="%featureName"
+ version="0.0.1.qualifier"
+ provider-name="%featureProvider">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ JBoss, Home of Professional Open Source
+Copyright (c) 2011 Red Hat, Inc., and individual contributors as indicated
+by the @authors tag. See the copyright.txt in the distribution
+for a full listing of individual contributors.
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin id="org.jboss.tools.openshift.egit.core.source" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
+ <plugin id="org.jboss.tools.openshift.egit.ui.source" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
+</feature>
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/license.html
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/license.html (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/license.html 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/pom.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/pom.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.egit.integration.source.feature/pom.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,13 @@
+<?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.openshift</groupId>
+ <artifactId>features</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift.features</groupId>
+ <artifactId>org.jboss.tools.openshift.egit.integration.source.feature</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+</project>
Added: trunk/openshift/features/org.jboss.tools.openshift.express.feature/.project
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.feature/.project (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.feature/.project 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.openshift.express.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.feature/.project
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/openshift/features/org.jboss.tools.openshift.express.feature/build.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.feature/build.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.feature/build.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,8 @@
+bin.includes = feature.xml,\
+ feature.properties,\
+ license.html
+src.includes = license.html,\
+ feature.xml,\
+ feature.properties,\
+ build.properties,\
+ .project
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.feature/build.properties
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,36 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss OpenShift Express Tools
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+devUpdateSiteName=JBossTools Development Update Site
+
+# "description" property - description of the feature
+description=Provides Tooling to deal with OpenShift Express. It will allow you to sign into your OpenShift Express account, create a domain and manage applications. It will furthermore allow you to setup an Eclipse WTP server adapter that would be able to publish projects to the OpenShift Express PaaS platform..
+
+copyright=Copyright (c) 2011 Red Hat, Inc. and others.\n\
+All rights reserved. This program and the accompanying materials\n\
+are made available under the terms of the Eclipse Public License v1.0\n\
+which accompanies this distribution, and is available at\n\
+http\://www.eclipse.org/legal/epl-v10.html\n\nContributors\:\n\
+JBoss by Red Hat - Initial implementation.
Added: trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature id="org.jboss.tools.openshift.express.feature" label="%featureName" version="2.3.0.qualifier" provider-name="%providerName" plugin="org.jboss.tools.openshift.express.ui">
+
+ <description url="http://www.jboss.org/tools">
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="license.html">
+ Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses),
+which in a particular case may include the Eclipse Public License,
+the GNU Lesser General Public License, and/or certain other open
+source licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+ </license>
+
+ <plugin id="org.jboss.tools.openshift.express.ui" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.jboss.tools.openshift.express.client" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+</feature>
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.feature/feature.xml
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/openshift/features/org.jboss.tools.openshift.express.feature/license.html
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.feature/license.html (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.feature/license.html 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.feature/license.html
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/openshift/features/org.jboss.tools.openshift.express.feature/pom.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.feature/pom.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.feature/pom.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,12 @@
+<?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.openshift</groupId>
+ <artifactId>features</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift.features</groupId>
+ <artifactId>org.jboss.tools.openshift.express.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+</project>
Added: trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/.project
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/.project (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/.project 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.openshift.express.source.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/build.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/build.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/build.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,3 @@
+bin.includes = feature.xml,\
+ feature.properties,\
+ license.html
Added: trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.properties 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,42 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss Openshift Express Tools source
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=Provides Tooling to deal with Openshift Express. It will allow you to sign into your Openshift Express account, create a domain and manage applications. It will furthermore allow you to setup an Eclipse WTP server adapter that would be able to publish projects to the Openshift Express PaaS platform..
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under \
+certain open source licenses (or aggregations of such licenses), which \
+in a particular case may include the Eclipse Public License, the GNU \
+Lesser General Public License, and/or certain other open source \
+licenses. For precise licensing details, consult the corresponding \
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, \
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
Added: trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/feature.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature id="org.jboss.tools.openshift.express.source.feature" label="%featureName" version="2.3.0.qualifier" provider-name="%featureProvider">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ JBoss, Home of Professional Open Source
+Copyright (c) 2011 Red Hat, Inc., and individual contributors as indicated
+by the @authors tag. See the copyright.txt in the distribution
+for a full listing of individual contributors.
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin id="org.jboss.tools.openshift.express.ui.source" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.jboss.tools.openshift.express.client.source" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+</feature>
Added: trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/license.html
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/license.html (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/license.html 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/pom.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/pom.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.source.feature/pom.xml 2011-10-24 15:26:54 UTC (rev 35943)
@@ -0,0 +1,12 @@
+<?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.openshift</groupId>
+ <artifactId>features</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift.features</groupId>
+ <artifactId>org.jboss.tools.openshift.express.source.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+</project>
13 years, 2 months
JBoss Tools SVN: r35942 - in trunk/as: plugins and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-10-24 11:21:07 -0400 (Mon, 24 Oct 2011)
New Revision: 35942
Modified:
trunk/as/features/pom.xml
trunk/as/plugins/pom.xml
trunk/as/site/site.xml
trunk/as/tests/pom.xml
Log:
JBIDE-10013 - cleanup of astools' pom.xml files and site etc to remove openshift
Modified: trunk/as/features/pom.xml
===================================================================
--- trunk/as/features/pom.xml 2011-10-24 15:13:58 UTC (rev 35941)
+++ trunk/as/features/pom.xml 2011-10-24 15:21:07 UTC (rev 35942)
@@ -22,10 +22,6 @@
<module>org.jboss.ide.eclipse.as.test.feature</module>
<module>org.jboss.ide.eclipse.as.test.source.feature</module>
- <module>org.jboss.ide.eclipse.as.server.egit.integration.feature</module>
- <module>org.jboss.ide.eclipse.as.server.egit.integration.source.feature</module>
- <module>org.jboss.tools.openshift.express.feature</module>
- <module>org.jboss.tools.openshift.express.source.feature</module>
</modules>
</project>
Modified: trunk/as/plugins/pom.xml
===================================================================
--- trunk/as/plugins/pom.xml 2011-10-24 15:13:58 UTC (rev 35941)
+++ trunk/as/plugins/pom.xml 2011-10-24 15:21:07 UTC (rev 35942)
@@ -24,10 +24,6 @@
<module>org.jboss.ide.eclipse.as.rse.ui</module>
<module>org.jboss.ide.eclipse.as.jmx.integration</module>
<module>org.jboss.ide.eclipse.as.management.as7</module>
- <module>org.jboss.ide.eclipse.as.egit.core</module>
- <module>org.jboss.ide.eclipse.as.egit.ui</module>
- <module>org.jboss.tools.openshift.express.client</module>
- <module>org.jboss.tools.openshift.express.ui</module>
</modules>
</project>
Modified: trunk/as/site/site.xml
===================================================================
--- trunk/as/site/site.xml 2011-10-24 15:13:58 UTC (rev 35941)
+++ trunk/as/site/site.xml 2011-10-24 15:21:07 UTC (rev 35942)
@@ -5,20 +5,6 @@
<category-def label="JBoss Tools as Nightly Build Update Site" name="JBoss Tools as Nightly Build Update Site">
<description>JBoss Tools as Nightly Build Update Site: contains all features in this build.</description>
</category-def>
- <feature url="features/org.jboss.ide.eclipse.as.server.egit.integration.feature_0.0.0.jar" id="org.jboss.ide.eclipse.as.server.egit.integration.feature" version="0.0.0">
- <category name="JBoss Tools as Nightly Build Update Site" />
- </feature>
- <feature url="features/org.jboss.ide.eclipse.as.server.egit.integration.source.feature_0.0.0.jar" id="org.jboss.ide.eclipse.as.server.egit.integration.source.feature" version="0.0.0">
- <category name="JBoss Tools as Nightly Build Update Site" />
- </feature>
-
- <feature url="features/org.jboss.tools.openshift.express.feature_0.0.0.jar" id="org.jboss.tools.openshift.express.feature" version="0.0.0">
- <category name="JBoss Tools as Nightly Build Update Site" />
- </feature>
- <feature url="features/org.jboss.tools.openshift.express.source.feature_0.0.0.jar" id="org.jboss.tools.openshift.express.source.feature" version="0.0.0">
- <category name="JBoss Tools as Nightly Build Update Site" />
- </feature>
-
<feature url="features/org.jboss.ide.eclipse.as.feature_0.0.0.jar" id="org.jboss.ide.eclipse.as.feature" version="0.0.0">
<category name="JBoss Tools as Nightly Build Update Site" />
</feature>
Modified: trunk/as/tests/pom.xml
===================================================================
--- trunk/as/tests/pom.xml 2011-10-24 15:13:58 UTC (rev 35941)
+++ trunk/as/tests/pom.xml 2011-10-24 15:21:07 UTC (rev 35942)
@@ -12,12 +12,9 @@
<packaging>pom</packaging>
<modules>
<module>org.jboss.ide.eclipse.as.archives.integration.test</module>
- <module>org.jboss.ide.eclipse.as.egit.test</module>
<module>org.jboss.ide.eclipse.as.management.as7.tests</module>
<module>org.jboss.ide.eclipse.as.test</module>
<module>org.jboss.ide.eclipse.as.ui.test</module>
-
- <module>org.jboss.tools.openshift.express.client.test</module>
</modules>
</project>
13 years, 2 months
JBoss Tools SVN: r35941 - trunk/documentation/whatsnew/as.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-24 11:13:58 -0400 (Mon, 24 Oct 2011)
New Revision: 35941
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
Log:
[JBIDE-9962] created N&N for AS
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-24 15:02:15 UTC (rev 35940)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-24 15:13:58 UTC (rev 35941)
@@ -62,7 +62,7 @@
behind the scenes and offers you the most convenient pusblishing method so far (compared to manually committing and pushing on the git repo).</p>
<p><img src="images/server-adapter.png" alt="server adapter" /></p>
<p><img src="images/server-adapter-editor.png" alt="server adapter editor" /></p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-9376">Related Jira</a></small></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9856">Related Jira</a></small></p>
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
13 years, 2 months
JBoss Tools SVN: r35940 - in trunk/openshift: tests and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-10-24 11:02:15 -0400 (Mon, 24 Oct 2011)
New Revision: 35940
Added:
trunk/openshift/tests/pom.xml
Modified:
trunk/openshift/plugins/pom.xml
Log:
JBIDE-10013 - pom xml modifications for renamed plugins and features
Modified: trunk/openshift/plugins/pom.xml
===================================================================
--- trunk/openshift/plugins/pom.xml 2011-10-24 15:00:32 UTC (rev 35939)
+++ trunk/openshift/plugins/pom.xml 2011-10-24 15:02:15 UTC (rev 35940)
@@ -11,8 +11,8 @@
<name>openshift.plugins</name>
<packaging>pom</packaging>
<modules>
- <module>org.jboss.ide.eclipse.as.egit.core</module>
- <module>org.jboss.ide.eclipse.as.egit.ui</module>
+ <module>org.jboss.tools.openshift.egit.core</module>
+ <module>org.jboss.tools.openshift.egit.ui</module>
<module>org.jboss.tools.openshift.express.client</module>
<module>org.jboss.tools.openshift.express.ui</module>
</modules>
Added: trunk/openshift/tests/pom.xml
===================================================================
--- trunk/openshift/tests/pom.xml (rev 0)
+++ trunk/openshift/tests/pom.xml 2011-10-24 15:02:15 UTC (rev 35940)
@@ -0,0 +1,18 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>openshift</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift</groupId>
+ <artifactId>tests</artifactId>
+ <name>openshift.tests</name>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.openshift.egit.test</module>
+ <module>org.jboss.tools.openshift.express.client.test</module>
+ </modules>
+</project>
+
13 years, 2 months
JBoss Tools SVN: r35939 - in trunk/documentation/whatsnew/as: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-24 11:00:32 -0400 (Mon, 24 Oct 2011)
New Revision: 35939
Added:
trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
trunk/documentation/whatsnew/as/images/server-adapter-editor.png
trunk/documentation/whatsnew/as/images/server-adapter.png
Log:
[JBIDE-9962] created N&N for AS
Added: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html (rev 0)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html 2011-10-24 15:00:32 UTC (rev 35939)
@@ -0,0 +1,95 @@
+<html>
+
+<head>
+<link rel="stylesheet" href="../whatsnew.css">
+<title>JBoss AS Tools 3.3.0.M4 News</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+
+<body>
+
+<h1>JBoss AS Tools 3.3.0.M4 What's New</h1>
+
+ <p align="right"><a href="../index.html">< Main Index</a> <a href="../gwt/gwt-news-1.0.2.M4.html">GWT Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Server</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <p><b>Support for JDK7</b></p>
+ </td>
+ <td valign="top" width="90%">
+ <p>JBoss AS Tools now supports JDK7 in WTP facets.</p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9783">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <p><b>Support for Web Fragments</b></p>
+ </td>
+ <td valign="top" width="90%">
+ <p>We added support for web fragments in M4. Web fragment project are now deployed as
+ exploded jars to JBoss AS6 and AS7.</p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9836">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <p><b>OpenShift Express Adapter</b></p>
+ </td>
+ <td valign="top" width="90%">
+ <p>JBoss AS Tools now introduces a server adapter that is able to publish OpenShift Express applications
+ to the Red Hat PaaS. The server adapter is created when you import an OpenShift Express Application on behalf
+ of our tools. Our adapter allows you to publish the changes within your eclipse project. It commits and pushes
+ behind the scenes and offers you the most convenient pusblishing method so far (compared to manually committing and pushing on the git repo).</p>
+ <p><img src="images/server-adapter.png" alt="server adapter" /></p>
+ <p><img src="images/server-adapter-editor.png" alt="server adapter editor" /></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9376">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr><td colspan="2"><hr /></td></tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Miscellaneous</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <p><b>Deploy OSGI projects to AS7</b></p>
+ </td>
+ <td valign="top" width="90%">
+ <p>JBoss AS7 offers an impressive OSGI runtime. We therefore added the capability to deploy osgi projects to an
+ AS7 on behalf of our Eclipse WTP server adapter in prior versions of JBoss tools. There were a problems when deploying those projects.
+ We them and now offer a pretty much flawless behaviour.</p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9709">Related Jira</a> <a href="https://issues.jboss.org/browse/JBIDE-9711">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr><td colspan="2"><hr /></td></tr>
+
+</table>
+
+</body>
+
+</html>
+
+
Property changes on: trunk/documentation/whatsnew/as/as-news-3.3.0.M4.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/documentation/whatsnew/as/images/server-adapter-editor.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/as/images/server-adapter-editor.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/as/images/server-adapter.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/as/images/server-adapter.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
13 years, 2 months
JBoss Tools SVN: r35938 - trunk/openshift/site.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-10-24 10:56:42 -0400 (Mon, 24 Oct 2011)
New Revision: 35938
Added:
trunk/openshift/site/pom.xml
trunk/openshift/site/site.xml
Log:
JBIDE-10013 - site.xml and pom
Added: trunk/openshift/site/pom.xml
===================================================================
--- trunk/openshift/site/pom.xml (rev 0)
+++ trunk/openshift/site/pom.xml 2011-10-24 14:56:42 UTC (rev 35938)
@@ -0,0 +1,12 @@
+<?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</groupId>
+ <artifactId>openshift</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift</groupId>
+ <artifactId>openshift.site</artifactId>
+ <packaging>eclipse-update-site</packaging>
+</project>
Added: trunk/openshift/site/site.xml
===================================================================
--- trunk/openshift/site/site.xml (rev 0)
+++ trunk/openshift/site/site.xml 2011-10-24 14:56:42 UTC (rev 35938)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+ <description>To install these features, point Eclipse at this site.</description>
+ <!-- JBoss Tools as Nightly Build Update Site -->
+ <category-def label="JBoss Tools OpenShift Nightly Build Update Site" name="JBoss Tools OpenShift Nightly Build Update Site">
+ <description>JBoss Tools OpenShift Nightly Build Update Site: contains all features in this build.</description>
+ </category-def>
+ <feature url="features/org.jboss.tools.openshift.egit.integration.feature_0.0.0.jar" id="org.jboss.tools.openshift.egit.integration.feature" version="0.0.0">
+ <category name="JBoss Tools OpenShift Nightly Build Update Site" />
+ </feature>
+ <feature url="features/org.jboss.tools.openshift.egit.integration.source.feature_0.0.0.jar" id="org.jboss.tools.openshift.egit.integration.source.feature" version="0.0.0">
+ <category name="JBoss Tools OpenShift Nightly Build Update Site" />
+ </feature>
+
+ <feature url="features/org.jboss.tools.openshift.express.feature_0.0.0.jar" id="org.jboss.tools.openshift.express.feature" version="0.0.0">
+ <category name="JBoss Tools OpenShift Nightly Build Update Site" />
+ </feature>
+ <feature url="features/org.jboss.tools.openshift.express.source.feature_0.0.0.jar" id="org.jboss.tools.openshift.express.source.feature" version="0.0.0">
+ <category name="JBoss Tools OpenShift Nightly Build Update Site" />
+ </feature>
+</site>
13 years, 2 months
JBoss Tools SVN: r35937 - trunk/documentation/whatsnew/openshift.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-24 10:40:35 -0400 (Mon, 24 Oct 2011)
New Revision: 35937
Modified:
trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html
Log:
[JBIDE-10011] creating openshift n&n
Modified: trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html 2011-10-24 14:39:10 UTC (rev 35936)
+++ trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html 2011-10-24 14:40:35 UTC (rev 35937)
@@ -27,10 +27,11 @@
href="../modeshape/modeshape-news-3.3.0.M4.html">Modeshape Tools
></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
- <tr><td colspan="2"><hr /></td></tr>
<tr>
<td colspan="2">
- <h3>OpenShift Express Application Wizard</h3><hr />
+ <hr/>
+ <h3>OpenShift Express Application Wizard</h3>
+ <hr/>
</td>
</tr>
<tr>
@@ -62,10 +63,11 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9793">Related Jira</a></small></p>
</td>
</tr>
- <tr><td colspan="2"><hr /></td></tr>
<tr>
<td colspan="2">
- <h3>OpenShift Express REST client</h3><hr />
+ <hr/>
+ <h3>OpenShift Express REST client</h3>
+ <hr/>
</td>
</tr>
<tr>
13 years, 2 months
JBoss Tools SVN: r35936 - trunk/documentation/whatsnew/openshift.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-10-24 10:39:10 -0400 (Mon, 24 Oct 2011)
New Revision: 35936
Modified:
trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html
Log:
[JBIDE-10011] creating openshift n&n
Modified: trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html 2011-10-24 13:33:54 UTC (rev 35935)
+++ trunk/documentation/whatsnew/openshift/openshift-news-0.1.0.M4.html 2011-10-24 14:39:10 UTC (rev 35936)
@@ -27,8 +27,9 @@
href="../modeshape/modeshape-news-3.3.0.M4.html">Modeshape Tools
></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr><td colspan="2"><hr /></td></tr>
<tr>
- <td colspan="2"> <hr />
+ <td colspan="2">
<h3>OpenShift Express Application Wizard</h3><hr />
</td>
</tr>
@@ -61,8 +62,9 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9793">Related Jira</a></small></p>
</td>
</tr>
+ <tr><td colspan="2"><hr /></td></tr>
<tr>
- <td colspan="2"> <hr />
+ <td colspan="2">
<h3>OpenShift Express REST client</h3><hr />
</td>
</tr>
13 years, 2 months