Author: dmaliarevich
Date: 2008-11-14 12:56:08 -0500 (Fri, 14 Nov 2008)
New Revision: 11793
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inplaceSelect.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceInputTemplateTestCase.java
Log:
JUnit tests for RF InplaceInput and InplaceSelect components were updated.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inplaceSelect.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inplaceSelect.xhtml.xml 2008-11-14
17:33:34 UTC (rev 11792)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inplaceSelect.xhtml.xml 2008-11-14
17:56:08 UTC (rev 11793)
@@ -1,6 +1,6 @@
<tests>
<test id="inplaceSelect">
- <SPAN VPE-USER-TOGGLE-ID="false" CLASS="rich-inplace
rich-inplace-select-view"
+ <SPAN VPE-USER-TOGGLE-ID="false" CLASS="rich-inplace-select
rich-inplace-select-view"
STYLE="display: inline;"> Click here to edit</SPAN>
</test>
</tests>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceInputTemplateTestCase.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceInputTemplateTestCase.java 2008-11-14
17:33:34 UTC (rev 11792)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceInputTemplateTestCase.java 2008-11-14
17:56:08 UTC (rev 11793)
@@ -18,6 +18,7 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
+import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.ui.test.TestUtil;
import org.jboss.tools.vpe.ui.test.VpeTest;
@@ -92,9 +93,10 @@
}
if(element.getFirstChild().getNodeValue()!=null){
- second = element.getFirstChild().getNodeValue();
+ second = element.getFirstChild().getNodeValue().trim();
}
- assertEquals("Text value should be equals 'null'", first,
second); //$NON-NLS-1$
+
+ assertEquals("Text value should be empty string", first, second);
//$NON-NLS-1$
assertTrue("Style class should be equals " + styleClass,
element.getAttribute(HTML.ATTR_CLASS).contains(styleClass)); //$NON-NLS-1$
}
@@ -106,7 +108,7 @@
* @throws Throwable the throwable
*/
public void testInplaceInputWithoutAttributes() throws CoreException, Throwable {
- baseCheck(TEMPLATE_WITH_EMPTY_TAG, null, RICH_INPLACE_VIEW);
+ baseCheck(TEMPLATE_WITH_EMPTY_TAG, Constants.EMPTY, RICH_INPLACE_VIEW);
}