Author: dazarov
Date: 2011-07-15 18:11:17 -0400 (Fri, 15 Jul 2011)
New Revision: 32956
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2CCAttrsOpenOnTest.java
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2MessagesOpenOnTest.java
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JsfTextExtAllTests.java
Log:
https://issues.jboss.org/browse/JBIDE-9307
Modified: trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF 2011-07-15
20:49:59 UTC (rev 32955)
+++ trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF 2011-07-15
22:11:17 UTC (rev 32956)
@@ -23,7 +23,8 @@
org.jboss.tools.jsf.text.ext.facelets,
org.jboss.tools.jsf.text.ext.richfaces,
org.jboss.tools.jsf.ui,
- org.eclipse.jst.standard.schemas
+ org.eclipse.jst.standard.schemas,
+ org.jboss.tools.jst.text.ext.test;bundle-version="3.3.0"
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %Bundle-Vendor.0
Export-Package: org.jboss.tools.jsf.text.ext.test
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2CCAttrsOpenOnTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2CCAttrsOpenOnTest.java 2011-07-15
20:49:59 UTC (rev 32955)
+++
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2CCAttrsOpenOnTest.java 2011-07-15
22:11:17 UTC (rev 32956)
@@ -10,29 +10,19 @@
******************************************************************************/
package org.jboss.tools.jsf.text.ext.test;
+import java.util.ArrayList;
+
import junit.framework.TestCase;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.FindReplaceDocumentAdapter;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.IRegion;
-import org.eclipse.jface.text.hyperlink.IHyperlink;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector;
-import org.jboss.tools.common.text.ext.util.StructuredModelWrapper;
-import org.jboss.tools.common.text.ext.util.Utils;
-import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.jst.text.ext.hyperlink.ELHyperlink;
+import org.jboss.tools.jst.text.ext.hyperlink.ELHyperlinkDetector;
+import org.jboss.tools.jst.text.ext.test.HyperlinkTestUtil;
+import org.jboss.tools.jst.text.ext.test.HyperlinkTestUtil.TestHyperlink;
+import org.jboss.tools.jst.text.ext.test.HyperlinkTestUtil.TestRegion;
import org.jboss.tools.test.util.JobUtils;
-import org.jboss.tools.test.util.WorkbenchUtils;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
/**
*
@@ -41,8 +31,8 @@
*/
public class JSF2CCAttrsOpenOnTest extends TestCase {
private static final String PROJECT_NAME = "JSF2CompositeOpenOn";
- private static final String PAGE_NAME =
PROJECT_NAME+"/WebContent/resources/demo/input.xhtml";
- private static final String PAGE2_NAME =
PROJECT_NAME+"/WebContent/resources/demo/input2.xhtml";
+ private static final String PAGE_NAME =
"/WebContent/resources/demo/input.xhtml";
+ private static final String PAGE2_NAME =
"/WebContent/resources/demo/input2.xhtml";
public IProject project = null;
@@ -56,152 +46,44 @@
protected void tearDown() {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
}
-
- public JSF2CCAttrsOpenOnTest() {
- super("JSF2 OpenOn on CC Attributes test");
- }
-
- static String COMPOSITE_URI = "http://java.sun.com/jsf/composite";
- static String COMPOSITE_INTERFACE_NODE = ":interface";
- static String COMPOSITE_ATTRIBUTE_NODE = ":attribute";
- static String COMPOSITE_NAME_ATTRIBUTE = "name";
+ public void testCCAttrsHyperlink1() throws Exception{
- public void testCCInterface() throws PartInitException, BadLocationException {
- final String editorName = "input.xhtml";
- final String elToTest = "cc.attrs";
- IEditorPart editor = WorkbenchUtils.openEditor(PAGE_NAME);
- assertTrue(editor instanceof JSPMultiPageEditor);
- JobUtils.waitForIdle();
- JSPMultiPageEditor jspMultyPageEditor = (JSPMultiPageEditor) editor;
- ISourceViewer viewer = jspMultyPageEditor.getSourceEditor().getTextViewer();
-
- IDocument document = viewer.getDocument();
- IRegion reg = new FindReplaceDocumentAdapter(document).find(0,
- elToTest, true, true, false, false);
+ ArrayList<TestRegion> regionList = new ArrayList<TestRegion>();
+ regionList.add(new TestRegion(658, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(667, 4, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
- assertNotNull("CC Interface reference: "+elToTest+" not
found",reg);
-
- IHyperlink[] links = HyperlinkDetector.getInstance().detectHyperlinks(viewer, reg,
true); // new Region(reg.getOffset() + reg.getLength(), 0)
-
- assertNotNull("Hyperlinks for CC Interface :"+elToTest+" are not
found",links);
-
- assertTrue("Hyperlinks for CC Interface: "+elToTest+" are not
found",links.length!=0);
-
- for(IHyperlink link : links){
- assertNotNull(link.toString());
-
- link.open();
- JobUtils.waitForIdle(2000);
-
- IEditorPart resultEditor =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if(editorName.equals(resultEditor.getTitle())){
+ regionList.add(new TestRegion(706, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(715, 4, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
- assertTrue("Opened editor is not JSPMultiPageEditor:
"+resultEditor.getClass().getName(), (resultEditor instanceof JSPMultiPageEditor));
+ regionList.add(new TestRegion(759, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(768, 5, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
- JSPMultiPageEditor multyPageEditor = (JSPMultiPageEditor) resultEditor;
- viewer = multyPageEditor.getSourceEditor().getTextViewer();
- assertNotNull("An error occured while trying to access the editor's
viewer!", viewer);
- document = viewer.getDocument();
- assertNotNull("An error occured while trying to access the viewer's
document!", document);
- Point sel = viewer.getSelectedRange();
- assertNotNull("An error occured while trying to access the viewer's
selection!", viewer);
-
- StructuredModelWrapper smw = new StructuredModelWrapper();
- smw.init(document);
- try {
- Document xmlDocument = smw.getDocument();
- assertNotNull("An error occured while trying to access the structured
document!", xmlDocument);
-
- Node node = Utils.findNodeForOffset(xmlDocument, sel.x);
- assertNotNull("The document selection is not a CC Interface!", node);
-
- assertTrue("The document selection is not a CC Interface!",
COMPOSITE_URI.equals(node.getNamespaceURI()));
- assertTrue("The document selection is not a CC Interface!",
node.getNodeName().endsWith(COMPOSITE_INTERFACE_NODE));
- return;
- } finally {
- smw.dispose();
- }
- }
- }
+ regionList.add(new TestRegion(786, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(795, 10, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+
+ HyperlinkTestUtil.checkRegions(project, PAGE_NAME, regionList, new
ELHyperlinkDetector());
+
}
- /**
- * This test runs with default root element <html> and default namespace prefix
'composite'.
- */
- public void testCCInterfaceAttrs1() throws PartInitException, BadLocationException {
- testCCInterfaceAttrs(PAGE_NAME, "input.xhtml");
- }
+ public void testCCAttrsHyperlink2() throws Exception{
- /**
- * In input2.xhtml root element is not html and namespace prefix is 'cc' instead
of default 'composite'.
- */
- public void testCCInterfaceAttrs2() throws PartInitException, BadLocationException {
- testCCInterfaceAttrs(PAGE2_NAME, "input2.xhtml");
- }
+ ArrayList<TestRegion> regionList = new ArrayList<TestRegion>();
+ regionList.add(new TestRegion(610, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(619, 4, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+
+ regionList.add(new TestRegion(658, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(667, 4, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
- void testCCInterfaceAttrs(String pageName, String editorName) throws PartInitException,
BadLocationException {
- final String elToTest = "cc.attrs.action";
- final String atributeAction = "action";
- IEditorPart editor = WorkbenchUtils.openEditor(pageName);
- assertTrue(editor instanceof JSPMultiPageEditor);
- JobUtils.waitForIdle();
- JSPMultiPageEditor jspMultyPageEditor = (JSPMultiPageEditor) editor;
- ISourceViewer viewer = jspMultyPageEditor.getSourceEditor().getTextViewer();
-
- IDocument document = viewer.getDocument();
- IRegion reg = new FindReplaceDocumentAdapter(document).find(0,
- elToTest, true, true, false, false);
- assertNotNull("CC Interface reference: "+elToTest+" not
found",reg);
+ regionList.add(new TestRegion(711, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(720, 5, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
- reg = new FindReplaceDocumentAdapter(document).find(reg.getOffset(),
- atributeAction, true, true, false, false);
- assertNotNull("CC Interface reference: "+elToTest+" not
found",reg);
+ regionList.add(new TestRegion(738, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ regionList.add(new TestRegion(747, 10, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open a Custom Component Attribute
definition")}));
+ HyperlinkTestUtil.checkRegions(project, PAGE2_NAME, regionList, new
ELHyperlinkDetector());
- IHyperlink[] links = HyperlinkDetector.getInstance().detectHyperlinks(viewer, reg,
true); // new Region(reg.getOffset() + reg.getLength(), 0)
-
- assertNotNull("Hyperlinks for CC Interface :"+elToTest+" are not
found",links);
-
- assertTrue("Hyperlinks for CC Interface: "+elToTest+" are not
found",links.length!=0);
-
- for(IHyperlink link : links){
- assertNotNull(link.toString());
-
- link.open();
- JobUtils.waitForIdle(2000);
-
- IEditorPart resultEditor =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if(editorName.equals(resultEditor.getTitle())){
-
- assertTrue("Opened editor is not JSPMultiPageEditor:
"+resultEditor.getClass().getName(), (resultEditor instanceof JSPMultiPageEditor));
-
- JSPMultiPageEditor multyPageEditor = (JSPMultiPageEditor) resultEditor;
- viewer = multyPageEditor.getSourceEditor().getTextViewer();
- assertNotNull("An error occured while trying to access the editor's
viewer!", viewer);
- document = viewer.getDocument();
- assertNotNull("An error occured while trying to access the viewer's
document!", document);
- Point sel = viewer.getSelectedRange();
- assertNotNull("An error occured while trying to access the viewer's
selection!", viewer);
-
- StructuredModelWrapper smw = new StructuredModelWrapper();
- smw.init(document);
- try {
- Document xmlDocument = smw.getDocument();
- assertNotNull("An error occured while trying to access the structured
document!", xmlDocument);
-
- Node node = Utils.findNodeForOffset(xmlDocument, sel.x);
- assertNotNull("The document selection is not a CC Interface!", node);
-
- assertTrue("The document selection is not a CC Interface!",
COMPOSITE_URI.equals(node.getNamespaceURI()));
- assertTrue("The document selection is not a CC Interface!",
node.getNodeName().endsWith(COMPOSITE_ATTRIBUTE_NODE));
- assertTrue("The document selection points to wrong CC Interface
Attribute!",
atributeAction.equals(((Element)node).getAttribute(COMPOSITE_NAME_ATTRIBUTE)));
- return;
- } finally {
- smw.dispose();
- }
- }
- }
}
+
}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2MessagesOpenOnTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2MessagesOpenOnTest.java 2011-07-15
20:49:59 UTC (rev 32955)
+++
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JSF2MessagesOpenOnTest.java 2011-07-15
22:11:17 UTC (rev 32956)
@@ -10,23 +10,19 @@
******************************************************************************/
package org.jboss.tools.jsf.text.ext.test;
+import java.util.ArrayList;
+
import junit.framework.TestCase;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.FindReplaceDocumentAdapter;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.IRegion;
-import org.eclipse.jface.text.hyperlink.IHyperlink;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector;
-import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.jst.text.ext.hyperlink.ELHyperlink;
+import org.jboss.tools.jst.text.ext.hyperlink.ELHyperlinkDetector;
+import org.jboss.tools.jst.text.ext.test.HyperlinkTestUtil;
+import org.jboss.tools.jst.text.ext.test.HyperlinkTestUtil.TestHyperlink;
+import org.jboss.tools.jst.text.ext.test.HyperlinkTestUtil.TestRegion;
import org.jboss.tools.test.util.JobUtils;
-import org.jboss.tools.test.util.WorkbenchUtils;
/**
*
@@ -35,7 +31,7 @@
*/
public class JSF2MessagesOpenOnTest extends TestCase {
private static final String PROJECT_NAME = "JSF2CompositeOpenOn";
- private static final String PAGE_NAME =
PROJECT_NAME+"/WebContent/pages/inputname.xhtml";
+ private static final String PAGE_NAME = "/WebContent/pages/inputname.xhtml";
public IProject project = null;
@@ -53,101 +49,25 @@
public JSF2MessagesOpenOnTest() {
super("JSF2 OpenOn on messages test");
}
+
+ public void testJSF2MessagesHyperlink() throws Exception{
- public void testRegisteredBundle() throws PartInitException, BadLocationException {
- doTextBundlePropertyOpenOn("resources.properties",
"registeredMsgs.prompt", "registeredMsgs");
- }
- public void testRegisteredBundleProperty() throws PartInitException,
BadLocationException {
- doTextBundlePropertyOpenOn("resources.properties",
"registeredMsgs.prompt", "prompt");
- }
- public void testRegisteredLongNamedBundleProperty() throws PartInitException,
BadLocationException {
- doTextBundlePropertyOpenOn("resources.properties",
"registeredMsgs['demo.long.named.property']",
"demo.long.named.property");
- }
- public void testPageLoadedBundle() throws PartInitException, BadLocationException {
- doTextBundlePropertyOpenOn("resources.properties",
"pageMsgs.prompt", "pageMsgs");
- }
- public void testPageLoadedBundleProperty() throws PartInitException,
BadLocationException {
- doTextBundlePropertyOpenOn("resources.properties",
"pageMsgs.prompt", "prompt");
- }
- public void testPageLoadedLongNamedBundleProperty() throws PartInitException,
BadLocationException {
- doTextBundlePropertyOpenOn("resources.properties",
"pageMsgs['demo.long.named.property']",
"demo.long.named.property");
- }
+ ArrayList<TestRegion> regionList = new ArrayList<TestRegion>();
+ regionList.add(new TestRegion(881, 13, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open 'resources'",
"resources.properties")}));
+ regionList.add(new TestRegion(896, 5, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open property 'prompt' of bundle
'resources'", "resources.properties")}));
+
+ regionList.add(new TestRegion(1004, 13, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open 'resources'",
"resources.properties")}));
+ regionList.add(new TestRegion(1019, 25, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open property 'demo.long.named.property' of
bundle 'resources'", "resources.properties")}));
- private void doTextBundlePropertyOpenOn(String editorName, String propertyQualifiedName,
String property) throws PartInitException, BadLocationException {
- IEditorPart editor = WorkbenchUtils.openEditor(PAGE_NAME);
- assertTrue(editor instanceof JSPMultiPageEditor);
- JobUtils.waitForIdle();
- JSPMultiPageEditor jspMultyPageEditor = (JSPMultiPageEditor) editor;
- ISourceViewer viewer = jspMultyPageEditor.getSourceEditor().getTextViewer();
-
- IDocument document = viewer.getDocument();
- IRegion reg = new FindReplaceDocumentAdapter(document).find(0,
- propertyQualifiedName, true, true, false, false);
- assertNotNull("Property:"+propertyQualifiedName+" not found",reg);
+ regionList.add(new TestRegion(1078, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open 'resources'",
"resources.properties")}));
+ regionList.add(new TestRegion(1087, 5, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open property 'prompt' of bundle
'resources'", "resources.properties")}));
+
+ regionList.add(new TestRegion(1125, 7, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open 'resources'",
"resources.properties")}));
+ regionList.add(new TestRegion(1134, 25, new TestHyperlink[]{new
TestHyperlink(ELHyperlink.class, "Open property 'demo.long.named.property' of
bundle 'resources'", "resources.properties")}));
- reg = new FindReplaceDocumentAdapter(document).find(reg.getOffset(),
- property, true, true, false, false);
- assertNotNull("Property:"+property+" not found",reg);
+ HyperlinkTestUtil.checkRegions(project, PAGE_NAME, regionList, new
ELHyperlinkDetector());
- IHyperlink[] links = HyperlinkDetector.getInstance().detectHyperlinks(viewer, reg,
true); // new Region(reg.getOffset() + reg.getLength(), 0)
-
- assertNotNull("Hyperlinks for property:"+propertyQualifiedName+" are not
found",links);
-
- assertTrue("Hyperlinks for property:"+propertyQualifiedName+" are not
found",links.length!=0);
-
- boolean found = false;
- for(IHyperlink link : links){
- assertNotNull(link.toString());
-
- link.open();
- JobUtils.waitForIdle(2000);
-
- IEditorPart resultEditor =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if(editorName.equals(resultEditor.getTitle())){
- found = true;
- return;
- }
- }
- assertTrue("OpenOn have not opened "+editorName+" editor",found);
}
-
-
- public void testRegisteredBundlePropertyOpenOn() throws PartInitException,
BadLocationException {
- final String editorName = "resources.properties";
- final String propertyName = "registeredMsgs.prompt";
- IEditorPart editor = WorkbenchUtils.openEditor(PAGE_NAME);
- assertTrue(editor instanceof JSPMultiPageEditor);
- JobUtils.waitForIdle();
- JSPMultiPageEditor jspMultyPageEditor = (JSPMultiPageEditor) editor;
- ISourceViewer viewer = jspMultyPageEditor.getSourceEditor().getTextViewer();
-
- IDocument document = viewer.getDocument();
- IRegion reg = new FindReplaceDocumentAdapter(document).find(0,
- propertyName, true, true, false, false);
-
- assertNotNull("Property:"+propertyName+" not found",reg);
-
- IHyperlink[] links = HyperlinkDetector.getInstance().detectHyperlinks(viewer, reg,
true); // new Region(reg.getOffset() + reg.getLength(), 0)
-
- assertNotNull("Hyperlinks for property:"+propertyName+" are not
found",links);
-
- assertTrue("Hyperlinks for property:"+propertyName+" are not
found",links.length!=0);
-
- boolean found = false;
- for(IHyperlink link : links){
- assertNotNull(link.toString());
-
- link.open();
- JobUtils.waitForIdle(2000);
-
- IEditorPart resultEditor =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if(editorName.equals(resultEditor.getTitle())){
- found = true;
- return;
- }
- }
- assertTrue("OpenOn have not opened "+editorName+" editor",found);
- }
}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JsfTextExtAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JsfTextExtAllTests.java 2011-07-15
20:49:59 UTC (rev 32955)
+++
trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/test/JsfTextExtAllTests.java 2011-07-15
22:11:17 UTC (rev 32956)
@@ -29,18 +29,18 @@
"org.jboss.tools.jsf.text.ext.test",
new String[]{"projects/JSF2CompositeOpenOn"},
new String[]{"JSF2CompositeOpenOn"}));
-// suite.addTest(new ProjectImportTestSetup(new
TestSuite(JSF2MessagesOpenOnTest.class),
-// "org.jboss.tools.jsf.text.ext.test",
-// new String[]{"projects/JSF2CompositeOpenOn"},
-// new String[]{"JSF2CompositeOpenOn"}));
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(JSF2MessagesOpenOnTest.class),
+ "org.jboss.tools.jsf.text.ext.test",
+ new String[]{"projects/JSF2CompositeOpenOn"},
+ new String[]{"JSF2CompositeOpenOn"}));
suite.addTest(new ProjectImportTestSetup(new
TestSuite(JSF2CSSStylesheetOpenOnTest.class),
"org.jboss.tools.jsf.text.ext.test",
new String[]{"projects/JSF2CompositeOpenOn"},
new String[]{"JSF2CompositeOpenOn"}));
-// suite.addTest(new ProjectImportTestSetup(new TestSuite(JSF2CCAttrsOpenOnTest.class),
-// "org.jboss.tools.jsf.text.ext.test",
-// new String[]{"projects/JSF2CompositeOpenOn"},
-// new String[]{"JSF2CompositeOpenOn"}));
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(JSF2CCAttrsOpenOnTest.class),
+ "org.jboss.tools.jsf.text.ext.test",
+ new String[]{"projects/JSF2CompositeOpenOn"},
+ new String[]{"JSF2CompositeOpenOn"}));
return suite;
}
}
\ No newline at end of file