tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1174846 - in /tapestry/tapestry5/trunk/tapestry-core/src/test: java/org/apache/tapestry5/integration/app1/base/ java/org/apache/tapestry5/integration/app1/pages/ java/org/apache/tapestry5/integration/app1/pages/inherit/ resources/org/apach...
Date Fri, 23 Sep 2011 15:45:16 GMT
Author: hlship
Date: Fri Sep 23 15:45:14 2011
New Revision: 1174846

URL: http://svn.apache.org/viewvc?rev=1174846&view=rev
Log:
TAP5-1656: Introduce test case to reproduce bug

So far, does not reproduce

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/base/InheritBase.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.tml
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.tml
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/base/InheritBase.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/base/InheritBase.java?rev=1174846&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/base/InheritBase.java
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/base/InheritBase.java
Fri Sep 23 15:45:14 2011
@@ -0,0 +1,11 @@
+package org.apache.tapestry5.integration.app1.base;
+
+import org.apache.tapestry5.annotations.Log;
+
+public abstract class InheritBase
+{
+    @Log
+    public void setupRender()
+    {
+    }
+}

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java?rev=1174846&r1=1174845&r2=1174846&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
Fri Sep 23 15:45:14 2011
@@ -56,6 +56,8 @@ public class Index
     private static final List<Item> ITEMS = CollectionFactory
             .newList(
 
+                    new Item("inherit/childa", "TAP5-1656 Demo", "Test a reported bug in
component inheritance"),
+
                     new Item("ComponentInsideBlockDemo", "Component Inside Block Demo", "Verify
that a component, inside a block, is still an embedded "),
 
                     new Item("EventMethodUnmatchedComponentId", "Unmatched Component Id in
Event Method Demo", "Show that referencing a component that does not exist in an event handler
method name is an error."),

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.java?rev=1174846&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.java
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.java
Fri Sep 23 15:45:14 2011
@@ -0,0 +1,10 @@
+package org.apache.tapestry5.integration.app1.pages.inherit;
+
+import org.apache.tapestry5.integration.app1.base.InheritBase;
+
+/**
+ *
+ */
+public class ChildA extends InheritBase
+{
+}

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.java?rev=1174846&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.java
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.java
Fri Sep 23 15:45:14 2011
@@ -0,0 +1,15 @@
+package org.apache.tapestry5.integration.app1.pages.inherit;
+
+import org.apache.tapestry5.integration.app1.base.InheritBase;
+
+/**
+ *
+ */
+public class ChildB extends InheritBase
+{
+    @Override
+    public void setupRender()
+    {
+        super.setupRender();
+    }
+}

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.tml?rev=1174846&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.tml
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildA.tml
Fri Sep 23 15:45:14 2011
@@ -0,0 +1,11 @@
+<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+<h1>Child A</h1>
+
+<p>
+    Go to
+    <t:pagelink page="inherit/childb">Child B</t:pagelink>
+</p>
+
+
+</html>

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.tml?rev=1174846&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.tml
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/inherit/ChildB.tml
Fri Sep 23 15:45:14 2011
@@ -0,0 +1,11 @@
+<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+<h1>Child B</h1>
+
+<p>
+    Go to
+    <t:pagelink page="inherit/childa">Child A</t:pagelink>
+</p>
+
+
+</html>



Mime
View raw message