Author: jjankovi
Date: 2012-03-20 10:34:28 -0400 (Tue, 20 Mar 2012)
New Revision: 39661
Removed:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTests.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTestsMaven.launch
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/libraries/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/resources/seam3/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/Activator.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISeam3AllBotTests.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/seam3/
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/LibraryHelper.java
Log:
Removing all seam3 classes and resources from CDI bot test
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTests.launch
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTests.launch 2012-03-20
14:33:57 UTC (rev 39660)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTests.launch 2012-03-20
14:34:28 UTC (rev 39661)
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
-<launchConfiguration
type="org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<booleanAttribute
key="com.mountainminds.eclemma.core.INPLACE_INSTRUMENTATION"
value="true"/>
-<listAttribute
key="com.mountainminds.eclemma.core.INSTRUMENTATION_PATHS">
-<listEntry value="/org.jboss.tools.cdi.core/bin"/>
-<listEntry value="/org.jboss.tools.cdi.solder.core/bin"/>
-<listEntry value="/org.jboss.tools.cdi.text.ext/bin"/>
-<listEntry value="/org.jboss.tools.cdi.xml/bin"/>
-<listEntry value="/org.jboss.tools.cdi.xml.ui/bin"/>
-<listEntry value="/org.jboss.tools.cdi.ui/bin"/>
-</listAttribute>
-<stringAttribute key="configLocation"
value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location"
value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry
value="/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISeam3AllBotTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<mapAttribute key="org.eclipse.debug.core.environmentVariables">
-<mapEntry key="DISPLAY" value=":1"/>
-</mapAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER"
value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR"
value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME"
value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND"
value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.jboss.tools.cdi.bot.test.CDISeam3AllBotTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}
-consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="org.jboss.tools.cdi.bot.test"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms256m -Xmx512m
-Dswtbot.test.properties.file=${env_var:HOME}/swtbot.properties
-Dusage_reporting_enabled=false"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product"
value="org.eclipse.platform.ide"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<stringAttribute key="templateConfig"
value="${target_home}/configuration/config.ini"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTestsMaven.launch
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTestsMaven.launch 2012-03-20
14:33:57 UTC (rev 39660)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/launchers/CDISeam3AllBotTestsMaven.launch 2012-03-20
14:34:28 UTC (rev 39661)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
-<launchConfiguration
type="org.eclipse.m2e.Maven2LaunchConfigurationType">
-<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
-<stringAttribute key="M2_GOALS" value="clean install"/>
-<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
-<booleanAttribute key="M2_OFFLINE" value="false"/>
-<stringAttribute key="M2_PROFILES" value="-P
seam3-bot-tests"/>
-<listAttribute key="M2_PROPERTIES">
-<listEntry value="swtbot.test.skip=false"/>
-</listAttribute>
-<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
-<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
-<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
-<booleanAttribute key="M2_WORKSPACE_RESOLUTION"
value="false"/>
-<mapAttribute key="org.eclipse.debug.core.environmentVariables">
-<mapEntry key="DISPLAY" value=":1"/>
-</mapAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29"/>
-<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY"
value="${workspace_loc:/org.jboss.tools.cdi.bot.test}"/>
-</launchConfiguration>
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/Activator.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/Activator.java 2012-03-20
14:33:57 UTC (rev 39660)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/Activator.java 2012-03-20
14:34:28 UTC (rev 39661)
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * 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;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
- private static BundleContext context;
-
- static BundleContext getContext() {
- return context;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext bundleContext) throws Exception {
- Activator.context = bundleContext;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext bundleContext) throws Exception {
- Activator.context = null;
- }
-
-}
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISeam3AllBotTests.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISeam3AllBotTests.java 2012-03-20
14:33:57 UTC (rev 39660)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/CDISeam3AllBotTests.java 2012-03-20
14:34:28 UTC (rev 39661)
@@ -1,48 +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;
-
-import org.jboss.tools.cdi.bot.test.seam3.Seam3GenericOpenOnTest;
-import org.jboss.tools.cdi.bot.test.seam3.Seam3ResourceOpenOnTest;
-import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite.SuiteClasses;
-
-/**
- * This test suite requires JBoss AS 6 or newer
- *
- * System properties:
- * -Dswtbot.test.properties.file=$PATH
- * -Dusage_reporting_enabled=$BOOLEAN
- *
- * Format of swtbot.properties file:
- * SERVER=EAP|JBOSS_AS,<server version>,<jre version to run
with>|default,<server home>
- *
- * Sample swtbot.properties file:
- *
- *
SERVER=JBOSS_AS,6.0,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-6.0.0.Final
- * JAVA=1.6,/space/java/sdk/jdk1.6.0_22
- *
- *
- * Suite duration: aprox. 3min
- *
- * @author Jaroslav Jankovic
- */
-(a)RunWith(RequirementAwareSuite.class)
-@SuiteClasses({
- Seam3ResourceOpenOnTest.class,
- Seam3GenericOpenOnTest.class,
-// Seam3ConfigValidationTest.class,
- })
-public class CDISeam3AllBotTests extends AbstractTestSuite {
-
-}
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/LibraryHelper.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/LibraryHelper.java 2012-03-20
14:33:57 UTC (rev 39660)
+++
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/LibraryHelper.java 2012-03-20
14:34:28 UTC (rev 39661)
@@ -1,122 +0,0 @@
-/*******************************************************************************
- * 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.uiutils;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.nio.channels.FileChannel;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.swtbot.swt.finder.SWTBot;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
-import org.jboss.tools.cdi.bot.test.CDIBase;
-import org.jboss.tools.cdi.bot.test.CDIConstants;
-import org.jboss.tools.cdi.bot.test.PluginActivator;
-import org.jboss.tools.ui.bot.ext.SWTUtilExt;
-import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
-import org.jboss.tools.ui.bot.ext.types.IDELabel;
-
-public class LibraryHelper extends CDIBase{
-
- /**
- * Method adds library named "libraryName" located in project folder
- * to project's classpath
- * @param projectName
- * @param libraryName
- */
- public void addLibraryToProjectsClassPath(String projectName, String libraryName) {
- SWTBotTree tree = projectExplorer.bot().tree();
-
- ContextMenuHelper.prepareTreeItemForContextMenu(tree);
- new
SWTBotMenu(ContextMenuHelper.getContextMenu(tree,CDIConstants.REFRESH,false)).click();
-
- ContextMenuHelper.prepareTreeItemForContextMenu(tree);
- new
SWTBotMenu(ContextMenuHelper.getContextMenu(tree,CDIConstants.PROPERTIES,false)).click();
-
- bot.tree().expandNode(CDIConstants.JAVA_BUILD_PATH).select();
- bot.tabItem(CDIConstants.LIBRARIES).activate();
-
- bot.button(CDIConstants.ADD_JARS).click();
- bot.waitForShell(IDELabel.Shell.JAR_SELECTION);
-
- String file = libraryName;
- bot.tree().expandNode(projectName).expandNode(file).select();
-
- bot.button(IDELabel.Button.OK).click();
-
- bot.button(IDELabel.Button.OK).click();
- util.waitForNonIgnoredJobs();
- }
-
- /**
- * Method copies library named "libraryName" located in
"projectName"/resources/libraries
- * into project default folder
- * @param projectName
- * @param libraryName
- * @throws IOException
- */
- public void addLibraryIntoProject(String projectName, String libraryName) throws
IOException {
- File in = null;
- FileChannel inChannel = null;
- FileChannel outChannel = null;
-
-
- in = SWTUtilExt.getResourceFile(PluginActivator.PLUGIN_ID, "libraries",
libraryName);
-
- File out = new File(Platform.getLocation() + File.separator + projectName +
- File.separator + File.separator + libraryName);
-
- inChannel = new FileInputStream(in).getChannel();
- outChannel = new FileOutputStream(out).getChannel();
-
- inChannel.transferTo(0, inChannel.size(), outChannel);
-
- if (inChannel != null) inChannel.close();
- if (outChannel != null) outChannel.close();
- }
-
- /**
- * Method checks if library named "libraryName" is set on classpath
- * of project named "projectName"
- * @param projectName
- * @param libraryName
- * @return boolean - represents fact if library is/isn't set on project classpath
- */
- public boolean isLibraryInProjectClassPath(String projectName, String libraryName) {
- SWTBotTree tree = projectExplorer.bot().tree();
-
- ContextMenuHelper.prepareTreeItemForContextMenu(tree);
- new SWTBotMenu(ContextMenuHelper.getContextMenu(tree, CDIConstants.PROPERTIES,
false)).click();
-
- SWTBotShell shell = bot.shell("Properties for " + projectName);
- SWTBot bot = shell.bot();
-
- bot.tree().expandNode(CDIConstants.JAVA_BUILD_PATH).select();
-
- bot.tabItem(CDIConstants.LIBRARIES).activate();
-
- boolean libraryInProject = false;
- for (int i = 0; i < bot.tree(1).rowCount(); i++) {
- if (bot.tree(1).getAllItems()[i].getText().contains(libraryName)) {
- libraryInProject = true;
- break;
- }
- }
- bot.button(IDELabel.Button.CANCEL).click();
- return libraryInProject;
- }
-
-}