I'm seeing the following failures with the latest anonymous CVS code
(attached).
Should I try working with the rc3 tag instead?
Gili
Testsuite: wicket.markup.MarkupInheritanceTest
Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 2.39 sec
------------- Standard Output ---------------
=== wicket.markup.MarkupInheritanceExtension_1 ===
<wicket:extend> base: before
<wicket:child>
extension: middle
</wicket:child>
base: after
</wicket:extend>
=== wicket.markup.MarkupInheritanceExtension_2 ===
<wicket:extend> base: before
<!-- note: extension and base can not have equals ids like e.g. "label" -->
extension: 1 <span wicket:id="label1">base label 1</span> extension: 2
<wicket:child>
<!-- note: extension and base can not have equals ids like e.g. "label" -->
extension: 1 <span wicket:id="label3">extension label</span> extension: 2
</wicket:child>
extension: 1 <span wicket:id="label2">base label 2</span> extension: 2
base: after
</wicket:extend>
=== wicket.markup.MarkupInheritanceExtension_4 ===
<wicket:extend> base: before
<!-- note: extension and base can not have equals ids like e.g. "label" -->
extension: 1 <span wicket:id="label1">0</span> extension: 2
<wicket:child>
<!-- note: extension and base can not have equals ids like e.g. "label" -->
extension: 1 <span wicket:id="label3">extension label</span> extension: 2
</wicket:child>
extension: 1 <a
href="/MockWebApplication/MockWebApplication?component=0.link&version=0&interface=ILinkListener"
wicket:id="link">increment</a> extension: 2
base: after
</wicket:extend>
------------- ---------------- ---------------
------------- Standard Error -----------------
@@ -1,72 +1,10 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-<title>Unexpected RuntimeException</title>
-<style type="text/css">
-body {margin-left : 2em;font-family: 'Lucida Sans', 'Helvetica', 'Sans-serif',
'sans';font-size: 9pt;line-height: 1.8em;}
-h1,h2,h3,h4,h5,h6,h7,h8 {color: #E9601A;}
-h1 {font-size : 1.5em;}
-h2 {font-size : 1.2em;}
-pre, table, td { font-family : 'MS Trebuchet', 'Verdana', Arial, Helvetica;
font-size : 10pt; line-height:1.2em;}
-pre { border : 1px solid #ddd; margin-left : 2em; }
-.resource { color : blue; }
-.componenttree { margin-left : 2em; border : 1px solid #ddd; }
-.componenttree { padding : 10px; }
-.componenttree th { border-bottom : 1px solid #ddd; }
-td > pre { padding : 10px; }
-</style>
-</head>
-<body>
- <h1>Unexpected RuntimeException</h1>
- <table ><tr><td><pre><span
wicket:id="exception">wicket.markup.MarkupException: Tag expected<br>[markup =
file:/C:/Documents%20and%20Settings/Gili/My%20Documents/wicket/wicket/target/test-classes/wicket/markup/MarkupInheritanceBase_4.html,
index = 11, current = [Raw markup]]<br> at
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:256)<br>
at wicket.markup.MarkupStream.getTag(MarkupStream.java:169)<br> at
wicket.markup.DualMarkupStream.getTag(DualMarkupStream.java:163)<br> at
wicket.Component.renderComponent(Component.java:1586)<br> at
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:63)<br>
at wicket.Component.render(Component.java:1018)<br> at
wicket.MarkupContainer.renderNext(MarkupContainer.java:868)<br> at
wicket.MarkupContainer.renderAll(MarkupContainer.java:772)<br> at
wicket.Page.onRender(Page.java:731)<br> at
wicket.Component.render(Component.java:1018)<br> at
wicket.Page.doRender(Page.java:470)<br> at
wicket.RequestCycle.respond(RequestCycle.java:650)<br> at
wicket.RequestCycle.request(RequestCycle.java:375)<br> at
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:205)<br>
at
wicket.markup.MarkupInheritanceTest.testRenderHomePage_4(MarkupInheritanceTest.java:122)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br> at
junit.framework.TestCase.runTest(TestCase.java:154)<br> at
junit.framework.TestCase.runBare(TestCase.java:127)<br> at
junit.framework.TestResult$1.protect(TestResult.java:106)<br> at
junit.framework.TestResult.runProtected(TestResult.java:124)<br> at
junit.framework.TestResult.run(TestResult.java:109)<br> at
junit.framework.TestCase.run(TestCase.java:118)<br> at
junit.framework.TestSuite.runTest(TestSuite.java:208)<br> at
junit.framework.TestSuite.run(TestSuite.java:203)<br> at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)<br>
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)</span></pre></td></tr></table>
-
- <span wicket:id="markupHighlight">
- <h2>Markup</h2>
- <p>
- The problem is in "<span wicket:id="resource"
class="resource">file:/C:/Documents%20and%20Settings/Gili/My%20Documents/wicket/wicket/target/test-classes/wicket/markup/MarkupInheritanceBase_4.html</span>":
- </p>
- <table><tr><td><pre><span wicket:id="markup"
class="markup"> base: before<br> <!-- note: extension and base can not have equals ids like e.g. "label" --><br> extension: 1 <span wicket:id="label1">Label 1</span> extension: 2<br> <wicket:child/><br> extension: 1 <a href="#" wicket:id="link">increment</a> extension: 2<br> base: after</span></pre></td></tr></table>
- </span>
-
- <p>
- <span wicket:id="componentTree"><wicket:panel>
- <h2>Component Tree</h2>
- <p>Component tree for <span wicket:id="page">[Page class =
wicket.markup.MarkupInheritanceExtension_4, id = 0]</span>:</p>
- <table class="componenttree">
- <thead>
- <tr>
- <th align="left">#</th>
- <th align="left">Path</th>
- <th align="left">Type</th>
- <th align="left">Model Object</th>
- </tr>
- </thead>
- <tbody>
- <tr wicket:id="components">
- <td valign="top" align="left"><span
wicket:id="row">1</span> </td>
- <td valign="top" align="left"><span
wicket:id="path">_autoadd_Extend</span> </td>
- <td valign="top" align="left"><span
wicket:id="type">MarkupInheritanceContainer</span> </td>
- <td valign="top" align="left"><span
wicket:id="model"></span> </td>
- </tr><tr wicket:id="components">
- <td valign="top" align="left"><span
wicket:id="row">2</span> </td>
- <td valign="top" align="left"><span
wicket:id="path">label1</span> </td>
- <td valign="top" align="left"><span
wicket:id="type">Label</span> </td>
- <td valign="top" align="left"><span
wicket:id="model">1</span> </td>
- </tr><tr wicket:id="components">
- <td valign="top" align="left"><span
wicket:id="row">3</span> </td>
- <td valign="top" align="left"><span
wicket:id="path">label3</span> </td>
- <td valign="top" align="left"><span
wicket:id="type">Label</span> </td>
- <td valign="top" align="left"><span
wicket:id="model">extension label</span> </td>
- </tr><tr wicket:id="components">
- <td valign="top" align="left"><span
wicket:id="row">4</span> </td>
- <td valign="top" align="left"><span
wicket:id="path">link</span> </td>
- <td valign="top" align="left"><span
wicket:id="type">Link</span> </td>
- <td valign="top" align="left"><span
wicket:id="model"></span> </td>
- </tr>
- </tbody>
- </table>
- </wicket:panel></span>
- </p>
-</body>
-</html>
+<wicket:extend> base: before
+ <!-- note: extension and base can not have equals ids like e.g. "label" -->
+ extension: 1 <span wicket:id="label1">0</span> extension: 2
+ <wicket:child>
+ <!-- note: extension and base can not have equals ids like e.g. "label" -->
+ extension: 1 <span wicket:id="label3">extension label</span> extension: 2
+</wicket:child>
+ extension: 1 <a
href="/MockWebApplication/MockWebApplication?component=0.link&version=0&interface=ILinkListener"
wicket:id="link">increment</a> extension: 2
+ base: after
+</wicket:extend>
------------- ---------------- ---------------
Testcase: testRenderHomePage_4(wicket.markup.MarkupInheritanceTest): FAILED
null
junit.framework.AssertionFailedError
at
wicket.markup.MarkupInheritanceTest.testRenderHomePage_4(MarkupInheritanceTest.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Testsuite: wicket.protocol.http.MockWebApplicationTest
Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 2.469 sec
Testcase: testClickLink(wicket.protocol.http.MockWebApplicationTest): FAILED
Response should be a redirect
junit.framework.AssertionFailedError: Response should be a redirect
at
wicket.protocol.http.MockWebApplicationTest.testClickLink(MockWebApplicationTest.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)