JBoss Tools SVN: r37521 - trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-12-22 07:17:53 -0500 (Thu, 22 Dec 2011)
New Revision: 37521
Added:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JobResultFuture.java
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/WizardUtils.java
Log:
[JBIDE-10549] implemented JobResultFuture to be able to wait for the job result while timeouting
Added: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JobResultFuture.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JobResultFuture.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JobResultFuture.java 2011-12-22 12:17:53 UTC (rev 37521)
@@ -0,0 +1,75 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.ui;
+
+import java.util.concurrent.ArrayBlockingQueue;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
+import java.util.concurrent.atomic.AtomicBoolean;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
+
+/**
+ * A Future that allows you to wait with a timeout for the result of a job.
+ *
+ * @author André Dietisheim
+ */
+public class JobResultFuture implements Future<IStatus> {
+
+ private AtomicBoolean cancelled = new AtomicBoolean();
+ private ArrayBlockingQueue<IStatus> queue = new ArrayBlockingQueue<IStatus>(1);
+
+ public JobResultFuture(Job job) {
+ onJobFinished(job);
+ }
+
+ @Override
+ public boolean cancel(boolean mayInterruptIfRunning) {
+ cancelled.set(true);
+ return true;
+ }
+
+ @Override
+ public boolean isCancelled() {
+ return cancelled.get();
+ }
+
+ @Override
+ public boolean isDone() {
+ return queue.size() == 1;
+ }
+
+ @Override
+ public IStatus get() throws InterruptedException, ExecutionException {
+ return queue.poll();
+ }
+
+ @Override
+ public IStatus get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException,
+ TimeoutException {
+ return queue.poll(timeout, unit);
+ }
+
+ private JobChangeAdapter onJobFinished(final Job job) {
+ return new JobChangeAdapter() {
+
+ @Override
+ public void done(IJobChangeEvent event) {
+ queue.offer(job.getResult());
+ }
+ };
+ }
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JobResultFuture.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/WizardUtils.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/WizardUtils.java 2011-12-22 10:59:24 UTC (rev 37520)
+++ trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/WizardUtils.java 2011-12-22 12:17:53 UTC (rev 37521)
@@ -27,6 +27,10 @@
*/
public class WizardUtils {
+ private WizardUtils() {
+ // inhibit instantiation
+ }
+
/**
* Runs the given job in the given wizard container. In order to have the
* wizard displaying a progress bar, you need to set
@@ -47,13 +51,14 @@
* @see IWizardContainer#run(boolean, boolean, IRunnableWithProgress)
* @see Job
*/
- public static void runInWizard(final Job job, IWizardContainer container) throws InvocationTargetException,
+ public static void runInWizard(final Job job, IWizardContainer container)
+ throws InvocationTargetException,
InterruptedException {
runInWizard(job, null, container);
}
- public static void runInWizard(final Job job, final DelegatingProgressMonitor delegatingMonitor, IWizardContainer container) throws InvocationTargetException,
- InterruptedException {
+ public static void runInWizard(final Job job, final DelegatingProgressMonitor delegatingMonitor,
+ IWizardContainer container) throws InvocationTargetException, InterruptedException {
container.run(true, false, new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
@@ -63,10 +68,10 @@
delegatingMonitor.add(monitor);
delegatingMonitor.beginTask(job.getName(), IProgressMonitor.UNKNOWN);
}
-
+
job.schedule();
job.join();
-
+
if (delegatingMonitor == null) {
monitor.done();
} else {
@@ -75,7 +80,7 @@
}
});
}
-
+
/**
* Runs the given job in the given wizard container.
* <p>
@@ -98,17 +103,16 @@
* @throws InterruptedException
* the interrupted exception
*/
- public static void runInWizard(final Job job, IWizardContainer container, final DataBindingContext dbc)
+ public static void runInWizard(final Job job, IWizardContainer container, DataBindingContext dbc)
throws InvocationTargetException, InterruptedException {
runInWizard(job, container);
dbc.updateTargets();
dbc.updateModels();
}
- public static void runInWizard(final Job job, IWizardContainer container, DelegatingProgressMonitor monitor,
- final DataBindingContext dbc)
- throws InvocationTargetException, InterruptedException {
- runInWizard(job, container);
+ public static void runInWizard(Job job, DelegatingProgressMonitor monitor, IWizardContainer container,
+ DataBindingContext dbc) throws InvocationTargetException, InterruptedException {
+ runInWizard(job, monitor, container);
dbc.updateTargets();
dbc.updateModels();
}
12 years, 5 months
JBoss Tools SVN: r37520 - trunk/documentation/whatsnew/jst.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2011-12-22 05:59:24 -0500 (Thu, 22 Dec 2011)
New Revision: 37520
Modified:
trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
Log:
Fix layout.
Modified: trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html 2011-12-22 10:37:08 UTC (rev 37519)
+++ trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html 2011-12-22 10:59:24 UTC (rev 37520)
@@ -38,9 +38,9 @@
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=357885">issue</a>
with faces converter validation. It does not support
faces converters that are configured via
- <code>@FacesConverter</cpde>. If your project uses
- such converters in <f:converter
- converterId="..."/> you will get a false warning
+ <code>@FacesConverter</code>. If your project uses
+ such converters in <code><f:converter
+ converterId="..."/></code> you will get a false warning
which can be annoying.
In JBoss Tools 3.3.0.M5 we have added a new quick fix which will help you to disable Facelet Validator to get rid of that warning.
</p>
@@ -69,6 +69,7 @@
Code completion for message bundles in EL shows detailed information about the corresponding bundle:
</p>
<img src="images/3.3.0.M5/ca.png"/>
+ <br/><br/>
<small><a href="https://jira.jboss.org/browse/JBIDE-9910">Related Jira</a></small></p>
</td>
</tr>
@@ -99,6 +100,7 @@
</p>
<img src="images/3.3.0.M5/quickFix.png"/><br/><br/>
<img src="images/3.3.0.M5/preferences.png"/>
+ <br/><br/>
<small><a href="https://jira.jboss.org/browse/JBIDE-9885">Related Jira</a></small></p>
</td>
</tr>
@@ -136,6 +138,7 @@
JBoss Tools provides Red Hat Bugzilla & JBoss JIRA repositories for mylyn connectors.
</p>
<img src="images/3.3.0.M5/taskRepos.png"/>
+ <br/><br/>
<small><a href="https://jira.jboss.org/browse/JBIDE-9351">Related Jira</a></small></p>
</td>
</tr>
12 years, 5 months
JBoss Tools SVN: r37519 - trunk/documentation/whatsnew/openshift.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2011-12-22 05:37:08 -0500 (Thu, 22 Dec 2011)
New Revision: 37519
Modified:
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
Log:
Updating the N&N after Andr?\195?\169's review
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 10:03:04 UTC (rev 37518)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 10:37:08 UTC (rev 37519)
@@ -67,7 +67,7 @@
<p>You can now retrieve the live logs from the remote JBossAS7 instance running on OpenShift right into your Eclipse Console view. This feature is available from the <b>"Show In>Remote Console"</b> contextual menu item of the Server Adapter associated with your OpenShift Application.
</p>
<p><image src="images/show-in-remote-console.png" alt="Show In Remote Console"/></p>
- <p>This works in the same manner as the 'rhc-tail-files' command line tool, which means that the underlying action issues an 'ssh tail' command on the remote VM, and thus may prompt you for the passphrase associated with your OpenShift SSH Key if it was not previously loaded during the Eclipse session.</p>
+ <p>This works in the same manner as the '<b>rhc-tail-files</b>' command line tool, which means that the underlying action issues a single 'ssh tail' command on the remote VM, and thus may prompt you for the passphrase associated with your OpenShift SSH Key if it was not previously loaded during the Eclipse session.</p>
<p>Both the 'boot.log' and 'server.log' will be shown in the console, including their 100 previous lines.</p>
<p><img src="images/remote-console.png" alt="Remote Console"/></p>
<p>You can stop the 'ssh tail' command from the console by clicking on the 'Close Console' button.</p>
12 years, 5 months
JBoss Tools SVN: r37518 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2011-12-22 05:03:04 -0500 (Thu, 22 Dec 2011)
New Revision: 37518
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ExporterFactory.java
Log:
https://issues.jboss.org/browse/JBIDE-10558
SchemaExport doesn't create file with script if both parameters exportToDatabase and scriptToConsole are false.
Workaround added
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ExporterFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ExporterFactory.java 2011-12-22 10:00:16 UTC (rev 37517)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ExporterFactory.java 2011-12-22 10:03:04 UTC (rev 37518)
@@ -290,7 +290,14 @@
if (getExporterDefinitionId().equals("org.hibernate.tools.hbm2ddl")) { //$NON-NLS-1$
Hbm2DDLExporter ddlExporter = (Hbm2DDLExporter) exporter;
//avoid users to delete their databases with a single click
- ddlExporter.setExport(Boolean.parseBoolean(extract.getProperty(ExporterFactoryStrings.EXPORTTODATABASE)));
+ boolean exportToDatabse = Boolean.parseBoolean(extract.getProperty(ExporterFactoryStrings.EXPORTTODATABASE));
+ ddlExporter.setExport(exportToDatabse);
+ if (!exportToDatabse && props.containsKey("outputFileName")){
+ //FIXME this is a workaround for https://issues.jboss.org/browse/JBIDE-10558
+ //schema.ddl file is not generated
+ //if exportToDatabse=scriptToConsole=false
+ ddlExporter.getProperties().put("scriptToConsole", "true");
+ }
}
// special handling for QueryExporter
if (getExporterDefinitionId().equals("org.hibernate.tools.query")) { //$NON-NLS-1$
12 years, 5 months
JBoss Tools SVN: r37517 - trunk/documentation/whatsnew/vpe.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2011-12-22 05:00:16 -0500 (Thu, 22 Dec 2011)
New Revision: 37517
Modified:
trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html
Log:
Fixed mistyping issues.
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html 2011-12-22 09:41:09 UTC (rev 37516)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html 2011-12-22 10:00:16 UTC (rev 37517)
@@ -68,7 +68,7 @@
<p></b>
</td>
<td valign="top">
- <p>You can enable BrowserSim as the default webbrowser
+ <p>You can enable BrowserSim as the default web browser
used in Eclipse Preferences. This will make it the
default browser used for actions such as "Run On
Server".
@@ -154,7 +154,7 @@
<p><img src="../images/deviceselection.png"/></p>
<p>If you choose "More..." you can redefine and add
- new predefined devices with proper names, useragents
+ new predefined devices with proper names, user agents
and dimensions.</p>
<p><img src="../images/browsersimdeviceedit.png"/></p>
12 years, 5 months
JBoss Tools SVN: r37516 - in trunk/documentation/whatsnew/openshift: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2011-12-22 04:41:09 -0500 (Thu, 22 Dec 2011)
New Revision: 37516
Added:
trunk/documentation/whatsnew/openshift/images/remote-console.png
trunk/documentation/whatsnew/openshift/images/show-in-remote-console.png
Modified:
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
Log:
Adding Openshift tail in remote console description in the N&N
Added: trunk/documentation/whatsnew/openshift/images/remote-console.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/remote-console.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/openshift/images/show-in-remote-console.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/openshift/images/show-in-remote-console.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 08:52:15 UTC (rev 37515)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 09:41:09 UTC (rev 37516)
@@ -40,6 +40,7 @@
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenShift server adapter</b></td>
<td valign="top">
+ <p><b>Updated OpenShift Server Adapter</b></p>
<p>
The server adapter for OpenShift has
changed from previous versions. Previously
@@ -60,7 +61,22 @@
</p>
<p><img src="images/openshift-server-adapter.png" alt="openshift server adapter"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9935">Related Jira</a></small></p>
- </td>
+
+
+ <p><b>Tailing the remote instance logs into the Eclipse Console</b></p>
+ <p>You can now retrieve the live logs from the remote JBossAS7 instance running on OpenShift right into your Eclipse Console view. This feature is available from the <b>"Show In>Remote Console"</b> contextual menu item of the Server Adapter associated with your OpenShift Application.
+ </p>
+ <p><image src="images/show-in-remote-console.png" alt="Show In Remote Console"/></p>
+ <p>This works in the same manner as the 'rhc-tail-files' command line tool, which means that the underlying action issues an 'ssh tail' command on the remote VM, and thus may prompt you for the passphrase associated with your OpenShift SSH Key if it was not previously loaded during the Eclipse session.</p>
+ <p>Both the 'boot.log' and 'server.log' will be shown in the console, including their 100 previous lines.</p>
+ <p><img src="images/remote-console.png" alt="Remote Console"/></p>
+ <p>You can stop the 'ssh tail' command from the console by clicking on the 'Close Console' button.</p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10152">Related Jira</a></small></p>
+
+
+ </td>
+
+
</tr>
<tr>
@@ -145,12 +161,7 @@
</td>
</tr>
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
+
<tr>
<td colspan="2">
12 years, 5 months
JBoss Tools SVN: r37515 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-22 03:52:15 -0500 (Thu, 22 Dec 2011)
New Revision: 37515
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleTest.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JSFPortletExample.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JavaPortletExample.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExample.java
Log:
Added test for loading portlet in browser
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleTest.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleTest.java 2011-12-22 08:51:56 UTC (rev 37514)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleTest.java 2011-12-22 08:52:15 UTC (rev 37515)
@@ -1,11 +1,15 @@
package org.jboss.tools.portlet.ui.bot.test.example;
-import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.not;
-import static org.jboss.tools.portlet.ui.bot.matcher.factory.DefaultMatchersFactory.inConsoleOutput;
+import static org.jboss.tools.portlet.ui.bot.matcher.WorkspaceAssert.assertThatInWorkspace;
+import static org.jboss.tools.portlet.ui.bot.matcher.factory.DefaultMatchersFactory.exceptionInConsoleOutput;
import static org.jboss.tools.portlet.ui.bot.matcher.factory.DefaultMatchersFactory.isNumberOfErrors;
+import static org.jboss.tools.portlet.ui.bot.matcher.factory.PortletMatchersFactory.canLoadAt4xRuntime;
+import org.hamcrest.Matcher;
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
import org.jboss.tools.portlet.ui.bot.task.AbstractSWTTask;
+import org.jboss.tools.portlet.ui.bot.task.SWTBotAware;
import org.jboss.tools.portlet.ui.bot.task.console.ConsoleClearingTask;
import org.jboss.tools.portlet.ui.bot.task.server.RunninngProjectOnServerTask;
import org.jboss.tools.ui.bot.ext.ExampleTest;
@@ -23,10 +27,7 @@
@Require(server=@Server(version="4.3", state=ServerState.Running, type=ServerType.EPP))
public abstract class AbstractPortletExampleTest extends ExampleTest {
- protected void doPerform(AbstractSWTTask task){
- task.setBot(bot);
- task.perform();
- }
+ protected abstract PortletDefinition getPortletDefinition();
@Override
protected void executeExample() {
@@ -36,7 +37,27 @@
doPerform(new RunninngProjectOnServerTask(project));
}
- assertThat(0, isNumberOfErrors());
- assertThat("Exception:", not(inConsoleOutput()));
+ doAssertThatInWorkspace(0, isNumberOfErrors());
+ doAssertThatInWorkspace(not(exceptionInConsoleOutput()));
+ doAssertThatInWorkspace(getPortletDefinition(), canLoadAt4xRuntime());
}
+
+ protected void doPerform(AbstractSWTTask task){
+ task.setBot(bot);
+ task.perform();
+ }
+
+ protected void doAssertThatInWorkspace(Matcher<Void> matcher){
+ if (matcher instanceof SWTBotAware){
+ ((SWTBotAware) matcher).setBot(bot);
+ }
+ assertThatInWorkspace(matcher);
+ }
+
+ protected <T> void doAssertThatInWorkspace(T actual, Matcher<T> matcher){
+ if (matcher instanceof SWTBotAware){
+ ((SWTBotAware) matcher).setBot(bot);
+ }
+ assertThatInWorkspace(actual, matcher);
+ }
}
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JSFPortletExample.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JSFPortletExample.java 2011-12-22 08:51:56 UTC (rev 37514)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JSFPortletExample.java 2011-12-22 08:52:15 UTC (rev 37515)
@@ -1,6 +1,10 @@
package org.jboss.tools.portlet.ui.bot.test.example;
+import static org.jboss.tools.portlet.ui.bot.entity.EntityFactory.portlet;
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+
+
/**
* Tests the Java portlet example.
*
@@ -25,4 +29,9 @@
public String[] getProjectNames() {
return new String[]{PROJECT_NAME};
}
+
+ @Override
+ protected PortletDefinition getPortletDefinition() {
+ return portlet("TestJSFPortlet", "Test JBoss JSF Portlet");
+ }
}
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JavaPortletExample.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JavaPortletExample.java 2011-12-22 08:51:56 UTC (rev 37514)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/JavaPortletExample.java 2011-12-22 08:52:15 UTC (rev 37515)
@@ -1,6 +1,10 @@
package org.jboss.tools.portlet.ui.bot.test.example;
+import static org.jboss.tools.portlet.ui.bot.entity.EntityFactory.portlet;
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+
+
/**
* Tests the Java portlet example.
*
@@ -25,4 +29,9 @@
public String[] getProjectNames() {
return new String[]{PROJECT_NAME};
}
+
+ @Override
+ protected PortletDefinition getPortletDefinition() {
+ return portlet("default/TestJavaPortlet", "TestJavaPortlet");
+ }
}
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExample.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExample.java 2011-12-22 08:51:56 UTC (rev 37514)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExample.java 2011-12-22 08:52:15 UTC (rev 37515)
@@ -1,7 +1,9 @@
package org.jboss.tools.portlet.ui.bot.test.example;
import static org.jboss.tools.portlet.ui.bot.entity.EntityFactory.file;
+import static org.jboss.tools.portlet.ui.bot.entity.EntityFactory.portlet;
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
import org.jboss.tools.portlet.ui.bot.entity.WorkspaceFile;
import org.jboss.tools.portlet.ui.bot.task.server.RunningFileOnServerTask;
import org.jboss.tools.ui.bot.ext.config.Annotations.DB;
@@ -45,4 +47,9 @@
doPerform(new RunningFileOnServerTask(DATASOURCE_FILE));
super.executeExample();
}
+
+ @Override
+ protected PortletDefinition getPortletDefinition() {
+ return portlet("TestSeamPortlet", "Test JBoss Seam Portlet");
+ }
}
12 years, 5 months
JBoss Tools SVN: r37514 - in trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot: matcher/browser and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-22 03:51:56 -0500 (Thu, 22 Dec 2011)
New Revision: 37514
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/PageSourceMatcher.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/portlet/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/portlet/PortletLoads4xRuntimeMatcher.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/PortletMatchersFactory.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/browser/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/browser/LoadBrowserPageTask.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/LoadJavaPortletInBrowserRuntime4x.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/LoadJSFPortletInBrowserRuntime4x.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/template/LoadPortletInBrowser4xRuntimeTemplate.java
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java
Log:
Created tests for loading portlet in browser
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/PageSourceMatcher.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/PageSourceMatcher.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/PageSourceMatcher.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,36 @@
+package org.jboss.tools.portlet.ui.bot.matcher.browser;
+
+import org.hamcrest.Description;
+import org.jboss.tools.portlet.ui.bot.matcher.AbstractSWTMatcher;
+import org.jboss.tools.portlet.ui.bot.task.browser.LoadBrowserPageTask;
+
+/**
+ * Checks if the given page contains specified text.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+public class PageSourceMatcher extends AbstractSWTMatcher<String> {
+
+ private String url;
+
+ private String pageText;
+
+ public PageSourceMatcher(String url) {
+ super();
+ this.url = url;
+ }
+
+ @Override
+ public boolean matchesSafely(String item) {
+ performInnerTask(new LoadBrowserPageTask(url));
+ pageText = getBot().browser().getText();
+ return pageText.contains(item);
+ }
+
+ @Override
+ public void describeTo(Description description) {
+ description.appendText("is on the page, but there was instead: ");
+ description.appendValue(pageText);
+ }
+}
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/portlet/PortletLoads4xRuntimeMatcher.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/portlet/PortletLoads4xRuntimeMatcher.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/browser/portlet/PortletLoads4xRuntimeMatcher.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,31 @@
+package org.jboss.tools.portlet.ui.bot.matcher.browser.portlet;
+
+import org.hamcrest.Description;
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+import org.jboss.tools.portlet.ui.bot.matcher.AbstractSWTMatcher;
+import org.jboss.tools.portlet.ui.bot.matcher.browser.PageSourceMatcher;
+
+/**
+ * Check if the given portlet can be loaded in EPP 4.x runtime.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+public class PortletLoads4xRuntimeMatcher extends AbstractSWTMatcher<PortletDefinition> {
+
+ private static final String PORTAL_URL = "http://localhost:8080/portal/portal/default/";
+
+ private PageSourceMatcher pageMatcher;
+
+ @Override
+ public boolean matchesSafely(PortletDefinition portletTitle) {
+ pageMatcher = new PageSourceMatcher(PORTAL_URL + portletTitle.getPage());
+ pageMatcher.setBot(getBot());
+ return pageMatcher.matchesSafely("<span class=\"portlet-titlebar-title\">" + portletTitle.getDisplayName() + "</span>");
+ }
+
+ @Override
+ public void describeTo(Description description) {
+ description.appendDescriptionOf(pageMatcher);
+ }
+}
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/PortletMatchersFactory.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/PortletMatchersFactory.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/PortletMatchersFactory.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,16 @@
+package org.jboss.tools.portlet.ui.bot.matcher.factory;
+
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+import org.jboss.tools.portlet.ui.bot.matcher.SWTMatcher;
+import org.jboss.tools.portlet.ui.bot.matcher.browser.portlet.PortletLoads4xRuntimeMatcher;
+
+public class PortletMatchersFactory {
+
+ private PortletMatchersFactory(){
+ // not to be initialized
+ }
+
+ public static SWTMatcher<PortletDefinition> canLoadAt4xRuntime(){
+ return new PortletLoads4xRuntimeMatcher();
+ }
+}
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/browser/LoadBrowserPageTask.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/browser/LoadBrowserPageTask.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/browser/LoadBrowserPageTask.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,27 @@
+package org.jboss.tools.portlet.ui.bot.task.browser;
+
+import org.jboss.tools.portlet.ui.bot.task.AbstractSWTTask;
+import org.jboss.tools.ui.bot.ext.SWTBotFactory;
+import org.jboss.tools.ui.bot.ext.parts.SWTBotBrowserExt;
+
+/**
+ * Displays the given page in internal browser.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+public class LoadBrowserPageTask extends AbstractSWTTask {
+
+ private String url;
+
+ public LoadBrowserPageTask(String url) {
+ super();
+ this.url = url;
+ }
+
+ @Override
+ public void perform() {
+ SWTBotBrowserExt browser = SWTBotFactory.getBot().browserExt();
+ browser.loadUrlToBrowser(url, SWTBotFactory.getBot());
+ }
+}
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java 2011-12-22 08:51:23 UTC (rev 37513)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -2,6 +2,7 @@
import org.jboss.tools.portlet.ui.bot.test.core.CreateJavaPortlet;
import org.jboss.tools.portlet.ui.bot.test.core.CreateJavaPortletProject;
+import org.jboss.tools.portlet.ui.bot.test.core.LoadJavaPortletInBrowserRuntime4x;
import org.jboss.tools.portlet.ui.bot.test.core.RunJavaPortletOnServer;
import org.jboss.tools.portlet.ui.bot.test.example.JSFPortletExample;
import org.jboss.tools.portlet.ui.bot.test.example.JavaPortletExample;
@@ -9,6 +10,7 @@
import org.jboss.tools.portlet.ui.bot.test.jsf.CreateJSFPortletProject;
import org.jboss.tools.portlet.ui.bot.test.jsf.CreateJSFPortletRuntime4x;
import org.jboss.tools.portlet.ui.bot.test.jsf.CreateJSFPortletRuntime5x;
+import org.jboss.tools.portlet.ui.bot.test.jsf.LoadJSFPortletInBrowserRuntime4x;
import org.jboss.tools.portlet.ui.bot.test.jsf.RunJSFPortletOnServer;
import org.jboss.tools.portlet.ui.bot.test.seam.CreateSeamPortletProject;
import org.jboss.tools.portlet.ui.bot.test.seam.CreateSeamPortletRuntime4x;
@@ -21,11 +23,13 @@
@Suite.SuiteClasses({
CreateJavaPortletProject.class,
CreateJavaPortlet.class,
- RunJavaPortletOnServer.class,
+ RunJavaPortletOnServer.class,
+ LoadJavaPortletInBrowserRuntime4x.class,
CreateJSFPortletProject.class,
CreateJSFPortletRuntime4x.class,
CreateJSFPortletRuntime5x.class,
RunJSFPortletOnServer.class,
+ LoadJSFPortletInBrowserRuntime4x.class,
CreateSeamPortletProject.class,
CreateSeamPortletRuntime4x.class,
CreateSeamPortletRuntime5x.class,
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java 2011-12-22 08:51:23 UTC (rev 37513)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -8,7 +8,8 @@
@Suite.SuiteClasses({
CreateJavaPortletProject.class,
CreateJavaPortlet.class,
- RunJavaPortletOnServer.class
+ RunJavaPortletOnServer.class,
+ LoadJavaPortletInBrowserRuntime4x.class
})
public class JavaPortletTestSuite {
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/LoadJavaPortletInBrowserRuntime4x.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/LoadJavaPortletInBrowserRuntime4x.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/LoadJavaPortletInBrowserRuntime4x.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,15 @@
+package org.jboss.tools.portlet.ui.bot.test.core;
+
+import static org.jboss.tools.portlet.ui.bot.entity.EntityFactory.portlet;
+
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+import org.jboss.tools.portlet.ui.bot.test.template.LoadPortletInBrowser4xRuntimeTemplate;
+
+
+public class LoadJavaPortletInBrowserRuntime4x extends LoadPortletInBrowser4xRuntimeTemplate {
+
+ @Override
+ protected PortletDefinition getPortletDefinition() {
+ return portlet(CreateJavaPortlet.CLASS_NAME);
+ }
+}
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java 2011-12-22 08:51:23 UTC (rev 37513)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -9,7 +9,8 @@
CreateJSFPortletProject.class,
CreateJSFPortletRuntime4x.class,
CreateJSFPortletRuntime5x.class,
- RunJSFPortletOnServer.class
+ RunJSFPortletOnServer.class,
+ LoadJSFPortletInBrowserRuntime4x.class
})
public class JSFPortletTestSuite {
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/LoadJSFPortletInBrowserRuntime4x.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/LoadJSFPortletInBrowserRuntime4x.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/LoadJSFPortletInBrowserRuntime4x.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,15 @@
+package org.jboss.tools.portlet.ui.bot.test.jsf;
+
+import static org.jboss.tools.portlet.ui.bot.entity.EntityFactory.portlet;
+
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+import org.jboss.tools.portlet.ui.bot.test.template.LoadPortletInBrowser4xRuntimeTemplate;
+
+
+public class LoadJSFPortletInBrowserRuntime4x extends LoadPortletInBrowser4xRuntimeTemplate {
+
+ @Override
+ protected PortletDefinition getPortletDefinition() {
+ return portlet("JSFPortlet", "JBoss JSF Portlet");
+ }
+}
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/template/LoadPortletInBrowser4xRuntimeTemplate.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/template/LoadPortletInBrowser4xRuntimeTemplate.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/template/LoadPortletInBrowser4xRuntimeTemplate.java 2011-12-22 08:51:56 UTC (rev 37514)
@@ -0,0 +1,27 @@
+package org.jboss.tools.portlet.ui.bot.test.template;
+
+import static org.jboss.tools.portlet.ui.bot.matcher.factory.PortletMatchersFactory.canLoadAt4xRuntime;
+
+import org.jboss.tools.portlet.ui.bot.entity.PortletDefinition;
+import org.jboss.tools.portlet.ui.bot.test.testcase.SWTTaskBasedTestCase;
+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.Test;
+
+/**
+ * Tests that the portlet can be loaded in browser.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+@Require(clearWorkspace=false, clearProjects=false, server=@Server(version="4.3", state=ServerState.Present))
+public abstract class LoadPortletInBrowser4xRuntimeTemplate extends SWTTaskBasedTestCase {
+
+ protected abstract PortletDefinition getPortletDefinition();
+
+ @Test
+ public void testLoadPortlet(){
+ doAssertThatInWorkspace(getPortletDefinition(), canLoadAt4xRuntime());
+ }
+}
12 years, 5 months
JBoss Tools SVN: r37513 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-22 03:51:23 -0500 (Thu, 22 Dec 2011)
New Revision: 37513
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/PortletDefinition.java
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/EntityFactory.java
Log:
Created special class for holding portlet information
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/EntityFactory.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/EntityFactory.java 2011-12-22 08:51:02 UTC (rev 37512)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/EntityFactory.java 2011-12-22 08:51:23 UTC (rev 37513)
@@ -15,4 +15,12 @@
public static WorkspaceFile file(String project, String filePath){
return new WorkspaceFile(project, filePath);
}
+
+ public static PortletDefinition portlet(String page){
+ return new PortletDefinition(page);
+ }
+
+ public static PortletDefinition portlet(String page, String displayName){
+ return new PortletDefinition(page, displayName);
+ }
}
Added: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/PortletDefinition.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/PortletDefinition.java (rev 0)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/entity/PortletDefinition.java 2011-12-22 08:51:23 UTC (rev 37513)
@@ -0,0 +1,44 @@
+package org.jboss.tools.portlet.ui.bot.entity;
+
+/**
+ * Describes a portlet. If the display name is not specified, the name is used as display name.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+public class PortletDefinition {
+
+ private String page;
+
+ private String displayName;
+
+ public PortletDefinition(String name) {
+ this(name, name);
+ }
+
+ public PortletDefinition(String name, String displayName) {
+ this.page = name;
+ this.displayName = displayName;
+ }
+
+ public String getPage() {
+ return page;
+ }
+
+ public void setPage(String page) {
+ this.page = page;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
+ }
+
+ @Override
+ public String toString() {
+ return "Portlet " + getPage() + "[" + getDisplayName() + "]";
+ }
+}
12 years, 5 months
JBoss Tools SVN: r37512 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-22 03:51:02 -0500 (Thu, 22 Dec 2011)
New Revision: 37512
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/CreateJavaPortlet.java
Log:
Changed constant visibility
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/CreateJavaPortlet.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/CreateJavaPortlet.java 2011-12-22 08:46:12 UTC (rev 37511)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/CreateJavaPortlet.java 2011-12-22 08:51:02 UTC (rev 37512)
@@ -18,7 +18,7 @@
*/
public class CreateJavaPortlet extends CreatePortletTemplate {
- private static final String CLASS_NAME = "UITestingJavaPortlet";
+ public static final String CLASS_NAME = "UITestingJavaPortlet";
private static final String PACKAGE_NAME = "org.jboss.tools.tests.ui.portlet";
12 years, 5 months