JBoss Tools SVN: r6080 - trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-01-31 18:51:52 -0500 (Thu, 31 Jan 2008)
New Revision: 6080
Added:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTestSuite.java
Log:
In progress / transition. lots of changes. more to follow
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTestSuite.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTestSuite.java 2008-01-31 19:39:00 UTC (rev 6079)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTestSuite.java 2008-01-31 23:51:52 UTC (rev 6080)
@@ -32,7 +32,7 @@
public class ASTestSuite extends TestSuite {
public static Test suite() {
TestSuite suite = new TestSuite("ASTools Test Suite");
-
+ suite.addTestSuite(PreReqTest.class);
suite.addTestSuite(RuntimeServerModelTest.class);
suite.addTestSuite(JEEClasspathContainerTest.class);
suite.addTestSuite(ProjectRuntimeTest.class);
Added: trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java (rev 0)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java 2008-01-31 23:51:52 UTC (rev 6080)
@@ -0,0 +1,106 @@
+/**
+ * JBoss, a Division of Red Hat
+ * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+* This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.as.test;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.eclipse.wst.server.core.IRuntimeType;
+import org.eclipse.wst.server.core.IServerType;
+import org.eclipse.wst.server.core.ServerCore;
+
+/**
+ * This class will test whether all of the pre-req
+ * locations, such as a working JBoss 4.2, are set.
+ *
+ * @author rob.stryker <rob.stryker(a)redhat.com>
+ */
+public class PreReqTest extends TestCase {
+
+ public void testAS32Exists() {
+ _testExists("JBoss 3.2", ASTest.JBOSS_AS_32_HOME);
+ }
+
+ public void testAS40Exists() {
+ _testExists("JBoss 4.0", ASTest.JBOSS_AS_40_HOME);
+ }
+
+ public void testAS42Exists() {
+ _testExists("JBoss 4.2", ASTest.JBOSS_AS_42_HOME);
+ }
+
+ public void testASHomeExists() {
+ _testExists("Default JBoss Installation", ASTest.JBOSS_AS_HOME);
+ }
+
+ public void _testExists(String desc, String loc) {
+ if (!new File(loc).exists())
+ fail(desc + " (" + loc + ") does not exist.");
+ }
+
+
+
+ /*
+ *
+ * Test runtime and server types are found
+ *
+ */
+
+ public void testRuntime32Found() {
+ _testRuntime(ASTest.JBOSS_RUNTIME_32);
+ }
+
+ public void testRuntime40Found() {
+ _testRuntime(ASTest.JBOSS_RUNTIME_40);
+ }
+
+ public void testRuntime42Found() {
+ _testRuntime(ASTest.JBOSS_RUNTIME_42);
+ }
+
+ public void testServer32Found() {
+ _testServer(ASTest.JBOSS_SERVER_32);
+ }
+
+ public void testServer40Found() {
+ _testServer(ASTest.JBOSS_SERVER_40);
+ }
+
+ public void testServer42Found() {
+ _testServer(ASTest.JBOSS_SERVER_42);
+ }
+
+
+ public void _testRuntime(String typeId) {
+ IRuntimeType rt = ServerCore.findRuntimeType(typeId);
+ if( rt == null )
+ fail("Runtime type " + typeId + " not found.");
+ }
+
+ public void _testServer(String typeId) {
+ IServerType st = ServerCore.findServerType(typeId);
+ if( st == null )
+ fail("Server type " + typeId + " not found.");
+ }
+
+}
16 years, 11 months
JBoss Tools SVN: r6079 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-01-31 14:39:00 -0500 (Thu, 31 Jan 2008)
New Revision: 6079
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/JBossServerView.java
Log:
added static VIEW_ID so we can reference the jboss server view without having to copy/paste from plugin.xml in external perspectives
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/JBossServerView.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/JBossServerView.java 2008-01-31 16:18:31 UTC (rev 6078)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/JBossServerView.java 2008-01-31 19:39:00 UTC (rev 6079)
@@ -47,6 +47,8 @@
*/
public class JBossServerView extends ViewPart {
+ public static final String VIEW_ID = "org.jboss.ide.eclipse.as.ui.views.JBossServerView";
+
private static final String TAG_SASHFORM_HEIGHT = "sashformHeight";
public static JBossServerView instance;
16 years, 11 months
JBoss Tools SVN: r6078 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-31 11:18:31 -0500 (Thu, 31 Jan 2008)
New Revision: 6078
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
fix error during test
Seam tools doesn't validate string with a few EL properly. There should be two markers in string '#{authenticator.foo1} #{authenticator.foo2}'.
junit.framework.AssertionFailedError: Seam tools doesn't validate string with a few EL properly. There should be two markers in string '#{authenticator.foo1} #{authenticator.foo2}'.
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-01-31 14:01:38 UTC (rev 6077)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-01-31 16:18:31 UTC (rev 6078)
@@ -31,6 +31,9 @@
import org.jboss.tools.seam.core.SeamPreferences;
import org.jboss.tools.seam.internal.core.SeamProject;
import org.jboss.tools.seam.internal.core.validation.SeamRuntimeValidation;
+import org.jboss.tools.seam.internal.core.validation.SeamValidationContext;
+import org.jboss.tools.seam.internal.core.validation.SeamValidator;
+import org.jboss.tools.seam.internal.core.validation.SeamValidatorManager;
import org.jboss.tools.test.util.JUnitUtils;
import org.jboss.tools.test.util.xpl.EditorTestHelper;
import org.jboss.tools.tests.AbstractResourceMarkerTest;
@@ -606,7 +609,7 @@
}
- public void testExpressionLanguageValidator() {
+ public void testExpressionLanguageValidator() throws CoreException {
modifyPreferences();
IPreferenceStore store = SeamCorePlugin.getDefault().getPreferenceStore();
System.out.println("UNKNOWN_EL_VARIABLE_PROPERTY_NAME value- "+store.getString(SeamPreferences.UNKNOWN_EL_VARIABLE_PROPERTY_NAME));
@@ -731,14 +734,13 @@
lineNumbers = getMarkersNumbersOfLine(abcComponentXHTMLFile);
assertTrue("Problem marker has wrong line number", lineNumbers[0] == 22);
-
+ }
+
+ public void testJiraJbide1631() throws CoreException {
// Test for http://jira.jboss.com/jira/browse/JBIDE-1631
IFile jbide1631XHTMLFile = project.getFile("WebContent/JBIDE-1631.xhtml");
- lineNumbers = getMarkersNumbersOfLine(jbide1631XHTMLFile);
- String errorMessage = "Seam tools doesn't validate string with a few EL properly. There should be two markers in string '#{authenticator.foo1} #{authenticator.foo2}'.";
- assertTrue(errorMessage, lineNumbers.length>1);
- assertTrue(errorMessage, lineNumbers[0] == 16);
- assertTrue(errorMessage, lineNumbers[1] == 16);
+ assertMarkerIsCreated(jbide1631XHTMLFile, null, "\"foo1\" cannot be resolved", 16 );
+ assertMarkerIsCreated(jbide1631XHTMLFile, null, "\"foo2\" cannot be resolved", 16 );
}
public void testInheritedMethods() {
16 years, 11 months
JBoss Tools SVN: r6077 - trunk/documentation/jboss-tools-docs.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-01-31 09:01:38 -0500 (Thu, 31 Jan 2008)
New Revision: 6077
Modified:
trunk/documentation/jboss-tools-docs/index.html
Log:
http://jira.jboss.com/jira/browse/JBDS-250 - the title is changed
Modified: trunk/documentation/jboss-tools-docs/index.html
===================================================================
--- trunk/documentation/jboss-tools-docs/index.html 2008-01-31 13:13:40 UTC (rev 6076)
+++ trunk/documentation/jboss-tools-docs/index.html 2008-01-31 14:01:38 UTC (rev 6077)
@@ -4,9 +4,11 @@
<meta http-equiv="Books on JBoss tools" content="text/html; charset=iso-8859-1" />
<title>JBoss Tools Guides</title>
</head>
+
+ <body>
+
+ <h1>JBoss Tools Guides - Latest Version (nightly build):</h1>
-<h1>JBoss Tools Guides - Version 1.0.0.GA:</h1>
-
<ul class="linkage">
<li>Getting Started with JBoss Developer Studio Guide <a href="GettingStartedGuide/en/html/index.html">(html)</a> <a href="GettingStartedGuide/en/html_single/index.html">(html single)</a> <a href="GettingStartedGuide/en/pdf/Getting_Started_with_JBDS.pdf">(pdf)</a></li>
@@ -27,6 +29,6 @@
</ul>
-<body>
+
</body>
</html>
16 years, 11 months
JBoss Tools SVN: r6076 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-31 08:13:40 -0500 (Thu, 31 Jan 2008)
New Revision: 6076
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/AddAttributeToAnyElementSupport.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/DefaultCreateSupport.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/PasteEnterNewNameSupport.java
Log:
JBIDE-1711
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/AddAttributeToAnyElementSupport.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/AddAttributeToAnyElementSupport.java 2008-01-31 12:55:03 UTC (rev 6075)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/AddAttributeToAnyElementSupport.java 2008-01-31 13:13:40 UTC (rev 6076)
@@ -44,7 +44,7 @@
}
public void action(String name) throws Exception {
- if(OK.equals(name)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
finish();
setFinished(true);
} else if(CANCEL.equals(name)) {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/DefaultCreateSupport.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/DefaultCreateSupport.java 2008-01-31 12:55:03 UTC (rev 6075)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/DefaultCreateSupport.java 2008-01-31 13:13:40 UTC (rev 6076)
@@ -40,7 +40,7 @@
}
public void action(String name) throws Exception {
- if(OK.equals(name)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
finish();
setFinished(true);
} else if(CANCEL.equals(name)) {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/PasteEnterNewNameSupport.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/PasteEnterNewNameSupport.java 2008-01-31 12:55:03 UTC (rev 6075)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/handlers/PasteEnterNewNameSupport.java 2008-01-31 13:13:40 UTC (rev 6076)
@@ -63,7 +63,7 @@
}
public void action(String name) throws Exception {
- if(name.equals(OK)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
returnCode = 0;
setFinished(true);
} else if(name.equals(CANCEL)) {
16 years, 11 months
JBoss Tools SVN: r6075 - trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validators/model/handlers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-31 07:55:03 -0500 (Thu, 31 Jan 2008)
New Revision: 6075
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validators/model/handlers/AddFormsetSupport.java
Log:
JBIDE-1711
Modified: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validators/model/handlers/AddFormsetSupport.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validators/model/handlers/AddFormsetSupport.java 2008-01-31 12:54:28 UTC (rev 6074)
+++ trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/validators/model/handlers/AddFormsetSupport.java 2008-01-31 12:55:03 UTC (rev 6075)
@@ -29,7 +29,7 @@
public void action(String name) throws Exception {
if(CANCEL.equals(name)) {
setFinished(true);
- } else if(OK.equals(name)) {
+ } else if(OK.equals(name) || FINISH.equals(name)) {
finish();
setFinished(true);
}
16 years, 11 months
JBoss Tools SVN: r6074 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-31 07:54:28 -0500 (Thu, 31 Jan 2008)
New Revision: 6074
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/AddInterfaceSupport.java
Log:
JBIDE-1711
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/AddInterfaceSupport.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/AddInterfaceSupport.java 2008-01-31 12:53:57 UTC (rev 6073)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/AddInterfaceSupport.java 2008-01-31 12:54:28 UTC (rev 6074)
@@ -54,7 +54,7 @@
}
public void action(String name) throws Exception {
- if(OK.equals(name)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
getProperties().setProperty(property, getAttributeValue(0, property));
setFinished(true);
} else if(CANCEL.equals(name)) {
16 years, 11 months
JBoss Tools SVN: r6073 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-31 07:53:57 -0500 (Thu, 31 Jan 2008)
New Revision: 6073
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddJarToLibrarySetSupport.java
Log:
JBIDE-1711
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddJarToLibrarySetSupport.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddJarToLibrarySetSupport.java 2008-01-31 12:49:17 UTC (rev 6072)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddJarToLibrarySetSupport.java 2008-01-31 12:53:57 UTC (rev 6073)
@@ -41,7 +41,7 @@
}
public void action(String name) throws Exception {
- if(OK.equals(name)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
execute();
setFinished(true);
} else if(CANCEL.equals(name)) {
16 years, 11 months
JBoss Tools SVN: r6072 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-31 07:49:17 -0500 (Thu, 31 Jan 2008)
New Revision: 6072
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibrarySetSupport.java
Log:
JBIDE-1711
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibrarySetSupport.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibrarySetSupport.java 2008-01-31 12:48:37 UTC (rev 6071)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibrarySetSupport.java 2008-01-31 12:49:17 UTC (rev 6072)
@@ -33,7 +33,7 @@
}
public void action(String name) throws Exception {
- if(OK.equals(name)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
execute();
setFinished(true);
} else if(CANCEL.equals(name)) {
16 years, 11 months
JBoss Tools SVN: r6071 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-31 07:48:37 -0500 (Thu, 31 Jan 2008)
New Revision: 6071
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibraryToVersionSupport.java
Log:
JBIDE-1711
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibraryToVersionSupport.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibraryToVersionSupport.java 2008-01-31 12:47:58 UTC (rev 6070)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/handlers/AddLibraryToVersionSupport.java 2008-01-31 12:48:37 UTC (rev 6071)
@@ -65,7 +65,7 @@
}
public void action(String name) throws Exception {
- if(OK.equals(name)) {
+ if(OK.equals(name) || FINISH.equals(name)) {
execute();
setFinished(true);
} else if(CANCEL.equals(name)) {
16 years, 11 months