Author: dmaliarevich
Date: 2010-08-03 07:00:49 -0400 (Tue, 03 Aug 2010)
New Revision: 23872
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/hidden.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp.xml
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6711 , JUnits for some Spring templates were added.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-08-02
23:40:08 UTC (rev 23871)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -127,7 +127,8 @@
<vpe:if test="@disabled='true'">
<vpe:template children="no" modify="no">
<input type="text" id="{@id}" class="{@cssClass}"
style="{@cssStyle}"
- size="{@size}" dir="{@dir}" disabled="disabled" />
+ size="{@size}" dir="{@dir}" value="{@value}"
+ disabled="disabled" />
<vpe:resize>
<vpe:width width-attr="cssStyle.width" />
<vpe:height height-attr="cssStyle.height" />
@@ -141,7 +142,7 @@
</vpe:if>
<vpe:template children="no" modify="no">
<input type="text" id="{@id}" class="{@cssClass}"
style="{@cssStyle}"
- size="{@size}" dir="{@dir}" />
+ size="{@size}" dir="{@dir}" value="{@value}"/>
<vpe:resize>
<vpe:width width-attr="cssStyle.width" />
<vpe:height height-attr="cssStyle.height" />
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/hidden.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/hidden.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/hidden.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,6 @@
+<%@ taglib prefix="form"
uri="http://www.springframework.org/tags/form" %>
+<html>
+<body>
+<form:hidden id="hidden" value="hidden"/>
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,7 @@
+<%@ taglib prefix="form"
uri="http://www.springframework.org/tags/form" %>
+<html>
+<body>
+<form:input id="input1" value="input"/>
+<form:input id="input2" value="input"
disabled="true"/>
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/input.jsp.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,8 @@
+<tests>
+ <test id="input1">
+ <INPUT TYPE="text" ID="input1" VALUE="input"/>
+ </test>
+ <test id="input2">
+ <INPUT TYPE="text" DISABLED="disabled" ID="input2"
VALUE="input"/>
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,27 @@
+<%@ taglib prefix="form"
uri="http://www.springframework.org/tags/form"%>
+<html>
+<head>
+<style type="text/css">
+.green {
+ background-color: green;
+}
+.yellow {
+ background-color: yellow;
+ font-weight: bold;
+ font-style: italic;
+}
+.blue {
+ background-color: blue;
+}
+</style>
+</head>
+<body>
+<form:label id="label1" cssClass="green"
cssStyle="font-weight: bold;">
+Label 1
+</form:label>
+<form:label id="label2" for="text" cssClass="blue"
cssStyle="font-style: italic;">
+Label 2
+</form:label>
+<input type="text" id="text" />
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/label.jsp.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,17 @@
+<tests>
+ <test id="label1">
+ <LABEL CLASS="green" ID="label1" STYLE="font-weight:
bold;">
+ <SPAN CLASS="vpe-text">
+ Label 1
+ </SPAN>
+ </LABEL>
+ </test>
+ <test id="label2">
+ <LABEL CLASS="blue" FOR="text" ID="label2"
STYLE="font-style: italic;">
+ <SPAN CLASS="vpe-text">
+ Label 2
+ </SPAN>
+ </LABEL>
+ </test>
+
+</tests>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,9 @@
+<%@ taglib prefix="spring"
uri="http://www.springframework.org/tags" %>
+<html>
+<body>
+ <spring:message id="message1" code="some.id.in.bundle"/>
+ <spring:message id="message2" code="someId1, someId2, someId3"
htmlEscape="true"/>
+ <spring:message id="message3" code="someId1 someId2 someId3"
htmlEscape="true"/>
+ <spring:message id="message4" code="someId1 someId2 someId3"
argumentSeparator=" "/>
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/message.jsp.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,22 @@
+<tests>
+ <test id="message1">
+ <SPAN CLASS="vpe-text" >
+ some.id.in.bundle
+ </SPAN>
+ </test>
+ <test id="message2">
+ <SPAN CLASS="vpe-text" >
+ someId1, someId2, someId3
+ </SPAN>
+ </test>
+ <test id="message3">
+ <SPAN CLASS="vpe-text" >
+ someId1 someId2 someId3
+ </SPAN>
+ </test>
+ <test id="message4">
+ <SPAN CLASS="vpe-text" >
+ someId1 someId2 someId3
+ </SPAN>
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,11 @@
+<%@ taglib prefix="form"
uri="http://www.springframework.org/tags/form" %>
+<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
+<html>
+<body>
+<form:password id="password1" value="password"/>
+<form:password id="password2" value="password"
disabled="true"/>
+<form:password id="password3" value="password"
showPassword="true"/>
+<form:password id="password4" value="password"
showPassword="true" disabled="true"/>
+<form:password id="password5" value="password"
showPassword="no"/>
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/password.jsp.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,17 @@
+<tests>
+ <test id="password1">
+ <INPUT TYPE="password" ID="password1" VALUE="password"
/>
+ </test>
+ <test id="password2">
+ <INPUT TYPE="password" DISABLED="disabled"
ID="password2" VALUE="password"/>
+ </test>
+ <test id="password3">
+ <INPUT TYPE="text" ID="password3" VALUE="password"
/>
+ </test>
+ <test id="password4">
+ <INPUT TYPE="text" DISABLED="disabled" ID="password4"
VALUE="password" />
+ </test>
+ <test id="password5">
+ <INPUT TYPE="password" ID="password5" VALUE="password"
/>
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,23 @@
+<%@ taglib prefix="form"
uri="http://www.springframework.org/tags/form"%>
+<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core"%>
+<html>
+<head>
+<style type="text/css">
+.green {
+ background-color: green;
+}
+.yellow {
+ background-color: yellow;
+}
+.blue {
+ background-color: blue;
+}
+</style>
+</head>
+<body>
+<form:textarea id="textArea1" cssClass="green"
cssStyle="font-weight: bold;">
+textArea 1
+</form:textarea>
+<form:textarea id="textArea2" value="textArea 2"
cssClass="blue" cssStyle="font-style: italic;"/>
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/textarea.jsp.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,17 @@
+<tests>
+ <test id="textArea1">
+ <TEXTAREA ID="textArea1" CSSCLASS="green"
CSSSTYLE="font-weight: bold;"
+ CLASS="green" STYLE="font-weight: bold;">
+ textArea 1
+ <SPAN CLASS="vpe-text">
+ textArea 1
+ </SPAN>
+ </TEXTAREA>
+ </test>
+ <test id="textArea2">
+ <TEXTAREA ID="textArea2" VALUE="textArea 2"
CSSCLASS="blue"
+ CSSSTYLE="font-style: italic;" CLASS="blue"
STYLE="font-style: italic;">
+ </TEXTAREA>
+ </test>
+
+</tests>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,9 @@
+<%@ taglib prefix="spring"
uri="http://www.springframework.org/tags" %>
+<html>
+<body>
+ <spring:theme id="theme1" code="some.id.in.bundle"/>
+ <spring:theme id="theme2" code="someId1, someId2, someId3"
htmlEscape="true"/>
+ <spring:theme id="theme3" code="someId1 someId2 someId3"
htmlEscape="true"/>
+ <spring:theme id="theme4" code="someId1 someId2 someId3"
argumentSeparator=" "/>
+</body>
+</html>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/theme.jsp.xml 2010-08-03
11:00:49 UTC (rev 23872)
@@ -0,0 +1,22 @@
+<tests>
+ <test id="theme1">
+ <SPAN CLASS="vpe-text" >
+ some.id.in.bundle
+ </SPAN>
+ </test>
+ <test id="theme2">
+ <SPAN CLASS="vpe-text" >
+ someId1, someId2, someId3
+ </SPAN>
+ </test>
+ <test id="theme3">
+ <SPAN CLASS="vpe-text" >
+ someId1 someId2 someId3
+ </SPAN>
+ </test>
+ <test id="theme4">
+ <SPAN CLASS="vpe-text" >
+ someId1 someId2 someId3
+ </SPAN>
+ </test>
+</tests>
\ No newline at end of file
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java 2010-08-02
23:40:08 UTC (rev 23871)
+++
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java 2010-08-03
11:00:49 UTC (rev 23872)
@@ -59,6 +59,34 @@
performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/errors.jsp");
//$NON-NLS-1$
}
+ public void testHidden() throws Throwable {
+ performInvisibleTagTestByFullPath("src/main/webapp/WEB-INF/jsp/hidden.jsp",
"hidden"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testInput() throws Throwable {
+ performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/input.jsp");
//$NON-NLS-1$
+ }
+
+ public void testPassword() throws Throwable {
+ performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/password.jsp");
//$NON-NLS-1$
+ }
+
+ public void testLabel() throws Throwable {
+ performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/label.jsp");
//$NON-NLS-1$
+ }
+
+ public void testTextarea() throws Throwable {
+ performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/textarea.jsp");
//$NON-NLS-1$
+ }
+
+ public void testMessage() throws Throwable {
+ performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/message.jsp");
//$NON-NLS-1$
+ }
+
+ public void testTheme() throws Throwable {
+ performContentTestByFullPath("src/main/webapp/WEB-INF/jsp/theme.jsp");
//$NON-NLS-1$
+ }
+
@Override
protected String getTestProjectName() {
return SpringAllTests.IMPORT_PROJECT_NAME;
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2010-08-02
23:40:08 UTC (rev 23871)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2010-08-03
11:00:49 UTC (rev 23872)
@@ -78,7 +78,7 @@
assertNotNull("Could not find component file
'"+elementPagePath+"'", elementPageFile); //$NON-NLS-1$
//$NON-NLS-2$
IEditorPart editor = WorkbenchUtils.openEditor(elementPageFile,EDITOR_ID);
- assertNotNull(editor);
+ assertNotNull("Editor should be opened.", editor); //$NON-NLS-1$
VpeController controller = TestUtil.getVpeController((JSPMultiPageEditor) editor);
/*
* Get xml test file
@@ -159,56 +159,85 @@
*/
protected void performInvisibleTagTest(String elementPagePath,
String elementId) throws Throwable {
+ performInvisibleTagTestByFullPath(TestUtil.COMPONENTS_PATH
+ + elementPagePath, elementId);
+ }
+
+ /**
+ * test for invisible tags
+ *
+ * @param elementPagePath
+ * - path to test page
+ * @param elementId
+ * - id of element on page
+ * @throws Throwable
+ */
+ protected void performInvisibleTagTestByFullPath(String elementPagePath,
+ String elementId) throws Throwable {
setException(null);
-
- IFile elementPageFile = (IFile) TestUtil.getComponentPath(
+
+ IFile elementPageFile = (IFile) TestUtil.getComponentFileByFullPath(
elementPagePath, getTestProjectName());
-
+ /*
+ * Test that test file was found and exists
+ */
+ assertNotNull("Could not find component file
'"+elementPagePath+"'", elementPageFile); //$NON-NLS-1$
//$NON-NLS-2$
+ /*
+ * Open the editor
+ */
IEditorInput input = new FileEditorInput(elementPageFile);
-
TestUtil.waitForJobs();
-
IEditorPart editor = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getActivePage().openEditor(input,
- EDITOR_ID, true);
-
- assertNotNull(editor);
-
+ .getActiveWorkbenchWindow().getActivePage().openEditor(input,
+ EDITOR_ID, true);
+ assertNotNull("Editor should be opened.", editor); //$NON-NLS-1$
TestUtil.waitForJobs();
-
+ /*
+ * Get the controller
+ */
VpeController controller = TestUtil.getVpeController((JSPMultiPageEditor) editor);
-
- // find source element and check if it is not null
- Element sourceELement = findSourceElementById(controller, elementId);
- assertNotNull(sourceELement);
-
- // find visual element and check if it is null
+ /*
+ * Find source element and check if it is not null
+ */
+ Element sourceElement = findSourceElementById(controller, elementId);
+ assertNotNull("Source node with id '" + elementId + "' was not
found.", sourceElement); //$NON-NLS-1$ //$NON-NLS-2$
+ /*
+ * Find visual element and check if it is null
+ */
nsIDOMElement visualElement = findElementById(controller, elementId);
- assertNull(visualElement);
-
- // set show invisible tag's flag to true
+ assertNull("Source node with id '" + elementId + "' has visual
representation.", visualElement); //$NON-NLS-1$ //$NON-NLS-2$
+
+ /*
+ * Set show invisible tag's flag to true
+ */
controller.getVisualBuilder().setShowInvisibleTags(true);
controller.visualRefresh();
-
- // find visual element and check if it is not null
+
+ /*
+ * Find visual element and check if it is not null
+ */
visualElement = findElementById(controller, elementId,TestUtil.MAX_IDLE);
assertNotNull(visualElement);
-
- // generate text for invisible tag
- String modelInvisibleTagText = generateInvisibleTagText(sourceELement
+
+ /*
+ * Generate text for invisible tag
+ */
+ String modelInvisibleTagText = generateInvisibleTagText(sourceElement
.getNodeName());
-
- // generate dom document and get root element
+
+ /*
+ * Generate dom document and get root element
+ */
Element modelElement = TestDomUtil.getDocument(modelInvisibleTagText)
- .getDocumentElement();
+ .getDocumentElement();
assertNotNull(modelElement);
-
+
TestDomUtil.compareNodes(visualElement, modelElement);
-
+
if (getException() != null) {
throw getException();
}
-
+
}
/**