Author: ljelinko
Date: 2012-01-10 08:20:43 -0500 (Tue, 10 Jan 2012)
New Revision: 37742
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/META-INF/MANIFEST.MF
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java
Log:
New temporary test case
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/META-INF/MANIFEST.MF 2012-01-10
13:13:30 UTC (rev 37741)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/META-INF/MANIFEST.MF 2012-01-10
13:20:43 UTC (rev 37742)
@@ -20,3 +20,4 @@
org.eclipse.wst.jsdt.web.core;bundle-version="1.0.401",
org.eclipse.wst.jsdt.web.support.jsp;bundle-version="1.0.400",
org.eclipse.wst.jsdt.web.ui;bundle-version="1.0.401"
+Import-Package: org.eclipse.jst.j2ee.internal.plugin
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java 2012-01-10
13:13:30 UTC (rev 37741)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java 2012-01-10
13:20:43 UTC (rev 37742)
@@ -1,15 +1,26 @@
package org.jboss.tools.portlet.ui.bot.test.tmp;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jst.j2ee.internal.plugin.IJ2EEModuleConstants;
+import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
import org.jboss.tools.portlet.ui.bot.test.testcase.SWTTaskBasedTestCase;
import org.jboss.tools.ui.bot.ext.config.Annotations.DB;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.junit.Test;
+import org.osgi.framework.Bundle;
@Require(db=@DB)
public class TmpTest extends SWTTaskBasedTestCase {
@Test
public void testTmp() throws InterruptedException{
+ @SuppressWarnings("restriction")
+ String pluginId = J2EEPlugin.getPlugin().getPluginID();
+ System.out.println("Plugin id: " + pluginId);
+ Bundle bundle = Platform.getBundle(pluginId);
+ System.out.println("Location: " + bundle.getLocation());
+ System.out.println("Jar ext: " + IJ2EEModuleConstants.JAR_EXT);
+ System.out.println("Comparison: " +
bundle.getLocation().endsWith(IJ2EEModuleConstants.JAR_EXT));
System.out.println();
Thread.sleep(60 * 60 * 1000);
}
Show replies by date