Author: dgolovin
Date: 2009-02-26 19:46:46 -0500 (Thu, 26 Feb 2009)
New Revision: 13856
Added:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiPreferencesPagesTest.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFCapabilitiesPreferencesPage.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFFlowTabbedPreferencesPage.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFImplementationsPreferencesPage.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFPagesPreferencesPage.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFProjectPreferencesPage.java
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFStudioPreferencesPage.java
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
Log:
fix for test errors
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFCapabilitiesPreferencesPage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFCapabilitiesPreferencesPage.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFCapabilitiesPreferencesPage.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -26,6 +26,9 @@
import org.jboss.tools.jsf.project.capabilities.JSFCapabilities;
public class JSFCapabilitiesPreferencesPage extends PreferencePage implements
IWorkbenchPreferencePage {
+
+ public static final String ID = "org.jboss.tools.jsf.ui.capabilities";
+
static String[] CAPABILITIES_HEADER = new String[]{"name"};
static String[] FILE_ADDITIONS_HEADER = new String[]{"label"};
static String[] LIB_REFERENCE_HEADER = new String[]{"name"};
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFFlowTabbedPreferencesPage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFFlowTabbedPreferencesPage.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFFlowTabbedPreferencesPage.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -17,6 +17,9 @@
import org.jboss.tools.jsf.web.JSFTemplate;
public class JSFFlowTabbedPreferencesPage extends TabbedPreferencesPage implements
IWorkbenchPreferencePage {
+
+ public static final String ID = "org.jboss.tools.jsf.ui.jsfflowdiagram";
+
public static String JSF_EDITOR_PATH = "%Options%/Struts Studio/Editors/JSF Flow
Diagram";
public static String JSF_ADD_VIEW_PATH = "%Options%/Struts Studio/Editors/JSF Flow
Diagram/Add View";
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFImplementationsPreferencesPage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFImplementationsPreferencesPage.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFImplementationsPreferencesPage.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -20,6 +20,8 @@
*/
public class JSFImplementationsPreferencesPage extends
AbstractImplementationsPreferencesPage {
+ public static final String ID = "org.jboss.tools.jsf.ui.jsfimplementations";
+
public JSFImplementationsPreferencesPage() {
super();
}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFPagesPreferencesPage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFPagesPreferencesPage.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFPagesPreferencesPage.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -19,6 +19,8 @@
*/
public class JSFPagesPreferencesPage extends AbstractPagesPreferencesPage {
+ public static final String ID = "org.jboss.tools.jsf.ui.jsfpages";
+
protected AbstractWebProjectTemplate createHelper() {
return JSFTemplate.getInstance();
}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFProjectPreferencesPage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFProjectPreferencesPage.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFProjectPreferencesPage.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -17,6 +17,8 @@
public class JSFProjectPreferencesPage extends WebProjectPreferencesPage {
+ public static final String ID = "org.jboss.tools.jsf.ui.project";
+
public JSFProjectPreferencesPage() {}
protected String getNewProjectOptionPath() {
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFStudioPreferencesPage.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFStudioPreferencesPage.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences/JSFStudioPreferencesPage.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -13,7 +13,9 @@
import org.jboss.tools.common.model.ui.preferences.CompanyPreferencesPage;
public class JSFStudioPreferencesPage extends CompanyPreferencesPage {
-
+
+ public static final String ID = "org.jboss.tools.jsf.ui";
+
protected String getKey() {
return "JSFSTUDIO";
}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java 2009-02-27
00:29:44 UTC (rev 13855)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -11,6 +11,8 @@
package org.jboss.tools.jsf.ui.test;
+import org.jboss.tools.jsf.ui.preferences.JSFCapabilitiesPreferencesPage;
+
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -18,7 +20,7 @@
public static Test suite() {
TestSuite suite = new TestSuite("JSF UI tests");
-
+ suite.addTestSuite(JSFCapabilitiesPreferencesPage.class);
suite.addTestSuite(CssClassNewWizardTest.class);
suite.addTestSuite(CssFileNewWizardTest.class);
suite.addTestSuite(CSSStyleDialogTest.class);
Added:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiPreferencesPagesTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiPreferencesPagesTest.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiPreferencesPagesTest.java 2009-02-27
00:46:46 UTC (rev 13856)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.jsf.ui.test;
+
+import org.jboss.tools.jsf.ui.preferences.JSFCapabilitiesPreferencesPage;
+import org.jboss.tools.jsf.ui.preferences.JSFFlowTabbedPreferencesPage;
+import org.jboss.tools.jsf.ui.preferences.JSFImplementationsPreferencesPage;
+import org.jboss.tools.jsf.ui.preferences.JSFPagesPreferencesPage;
+import org.jboss.tools.jsf.ui.preferences.JSFProjectPreferencesPage;
+import org.jboss.tools.jsf.ui.preferences.JSFStudioPreferencesPage;
+import org.jboss.tools.tests.PreferencePageTest;
+
+/**
+ * @author eskimo
+ *
+ */
+public class JsfUiPreferencesPagesTest extends PreferencePageTest {
+
+ public void testJsfCapabilitiesPreferencesPage() {
+ doDefaultTest(JSFCapabilitiesPreferencesPage.ID,
JSFCapabilitiesPreferencesPage.class);
+ }
+
+ public void testJSFFlowTabbedPreferencesPage() {
+ doDefaultTest(JSFFlowTabbedPreferencesPage.ID,JSFFlowTabbedPreferencesPage.class);
+ }
+
+ public void testJsfImplementationsPreferencesPage() {
+ doDefaultTest(JSFImplementationsPreferencesPage.ID,JSFImplementationsPreferencesPage.class);
+ }
+
+ public void testJSFPagesPreferencesPage() {
+ doDefaultTest(JSFPagesPreferencesPage.ID,JSFPagesPreferencesPage.class);
+ }
+
+ public void testJsfProjectPreferencesPage() {
+ doDefaultTest(JSFProjectPreferencesPage.ID,JSFProjectPreferencesPage.class);
+ }
+
+ public void testJsfStudioPreferencesPage() {
+ doDefaultTest(JSFStudioPreferencesPage.ID,JSFStudioPreferencesPage.class);
+ }
+}
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiPreferencesPagesTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain