tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r933392 - in /tapestry/tapestry5/trunk/tapestry-core/src/test: app1/Index.tml app1/InvalidComponentTypeDemo.tml java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java
Date Mon, 12 Apr 2010 20:05:57 GMT
Author: hlship
Date: Mon Apr 12 20:05:56 2010
New Revision: 933392

URL: http://svn.apache.org/viewvc?rev=933392&view=rev
Log:
TAP5-1039: Add test case to verify issue

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/test/app1/InvalidComponentTypeDemo.tml
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java
  (with props)
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/app1/Index.tml

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/app1/Index.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/Index.tml?rev=933392&r1=933391&r2=933392&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/app1/Index.tml (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/app1/Index.tml Mon Apr 12 20:05:56 2010
@@ -1,148 +1,153 @@
 <html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
 
-    <h1>Tapestry 5 Integration Application 1</h1>
+  <h1>Tapestry 5 Integration Application 1</h1>
 
-    <p>${items.size()} standard test pages</p>
+  <p>${items.size()} standard test pages</p>
 
-    <ul>
-        <li t:type="loop" source="items" value="item">
-            <t:pagelink page="prop:item.pageName">${item.label}</t:pagelink>
-            -- ${item.description}
-        </li>
-    </ul>
-
-    <h2>Special Pages</h2>
-
-    <p>These are often pages which can't load due to errors.</p>
-
-    <ul>
-        <li>
-            <a href="${injectDemoLink}">PageLink via Class Demo</a>
-            -- use ComponentResources to generate a link to a page using target
-            page class, not logical page name
-        </li>
-
-        <li>
-            <a href="BadTemplate">BadTemplate Page</a>
-            -- More exception reporting
-        </li>
-        <li>
-            <t:pagelink page="eventhandlerdemo" context="'clear'">
-                EventHandler Demo
+  <ul>
+    <li t:type="loop" source="items" value="item">
+      <t:pagelink page="prop:item.pageName">${item.label}</t:pagelink>
+      -- ${item.description}
+    </li>
+  </ul>
+
+  <h2>Special Pages</h2>
+
+  <p>These are often pages which can't load due to errors.</p>
+
+  <ul>
+    <li>
+      <a href="${injectDemoLink}">PageLink via Class Demo</a>
+      -- use ComponentResources to generate a link to a page using target
+      page class, not logical page name
+    </li>
+
+    <li>
+      <a href="BadTemplate">BadTemplate Page</a>
+      -- More exception reporting
+    </li>
+    <li>
+      <t:pagelink page="eventhandlerdemo" context="'clear'">
+        EventHandler Demo
             </t:pagelink>
-            -- Tests for event handling method order and matching
-        </li>
+      -- Tests for event handling method order and matching
+    </li>
 
-        <li>
-            <a href="InjectContainerMismatch">
-                InjectContainerMismatch
+    <li>
+      <a href="InjectContainerMismatch">
+        InjectContainerMismatch
             </a>
-            -- check error reporting when @InjectContainer doesn't match
-            the actual field type
-        </li>
-
-        <li>
-            <a href="injectcomponentmismatch">InjectComponentMismatch</a>
-            -- check error reporting when @InjectComponent
-            doesn't match actual field type
-        </li>
-
-        <li>
-            <a href="recursivedemo">Recursive Demo</a>
-            -- check for handling of recursive components
-        </li>
-
-        <li>
-            <t:actionlink t:id="securepage">Secure Page Demo</t:actionlink>
-            -- transition to HTTPS
-        </li>
-
-        <li>
-            <t:pagelink page="listeventcontextdemo" context="demoContext">List Event
Context Demo</t:pagelink>
-            -- using a List for catch-all event context parameters
-        </li>
-
-        <li>
-            <a href="datumeditor">Class Transformation Exception Demo</a>
-            -- demo proper reporting of exceptions during class transformation
-        </li>
-
-        <li>
-            <t:actionlink t:id="instantiatePage">Instantiate Page</t:actionlink>
-            --
-            attempt to instantiate (and return) a page instance
-        </li>
-        <li>
-            <a href="fieldannotationconflict">Field Annotation Conflict</a>
-            -- demo failure behavior when a field contains conflicting annotations
-        </li>
-        <li>
-            <a href="failedinjectdemo">Failed Field Injection Demo</a>
-            -- demo failure when attempting to inject into a field
-        </li>
-        <li>
-            <a href="pageAttachFailure">Page Attach Failure</a>
-            -- demo failure when attaching a page
-        </li>
-
-        <li>
-            <a href="componentsNotInTemplateDemo">Components Not In Template Demo</a>
-            -- demo exception when a component is defined in the class but not present in
the template
-        </li>
-        <li>
-            <a href="GetterMethodAlreadyExists">Getter Method Already Exists</a>
-            -- demo @Property attempting to overwrite an existing getter method
-        </li>
-        <li>
-            <a href="DuplicateIds">Duplicate IDs</a>
-            -- demo two components declared with the same ID
-        </li>
-        <li>
-            <a href="PublishDuplicateNameDemo">Duplicate Published Parameter Name</a>
-            -- demo error checking for the same parameter name published from two different
-            embedded components
-        </li>
-        <li>
-            <a href="EmbeddedComponentTypeConflict">Embedded Component Type Conflict
+      -- check error reporting when @InjectContainer doesn't match
+      the actual field type
+    </li>
+
+    <li>
+      <a href="injectcomponentmismatch">InjectComponentMismatch</a>
+      -- check error reporting when @InjectComponent
+      doesn't match actual field type
+    </li>
+
+    <li>
+      <a href="recursivedemo">Recursive Demo</a>
+      -- check for handling of recursive components
+    </li>
+
+    <li>
+      <t:actionlink t:id="securepage">Secure Page Demo</t:actionlink>
+      -- transition to HTTPS
+    </li>
+
+    <li>
+      <t:pagelink page="listeventcontextdemo" context="demoContext">List Event Context
Demo
+      </t:pagelink>
+      -- using a List for catch-all event context parameters
+    </li>
+
+    <li>
+      <a href="datumeditor">Class Transformation Exception Demo</a>
+      -- demo proper reporting of exceptions during class transformation
+    </li>
+
+    <li>
+      <t:actionlink t:id="instantiatePage">Instantiate Page</t:actionlink>
+      --
+      attempt to instantiate (and return) a page instance
+    </li>
+    <li>
+      <a href="fieldannotationconflict">Field Annotation Conflict</a>
+      -- demo failure behavior when a field contains conflicting annotations
+    </li>
+    <li>
+      <a href="failedinjectdemo">Failed Field Injection Demo</a>
+      -- demo failure when attempting to inject into a field
+    </li>
+    <li>
+      <a href="pageAttachFailure">Page Attach Failure</a>
+      -- demo failure when attaching a page
+    </li>
+
+    <li>
+      <a href="componentsNotInTemplateDemo">Components Not In Template Demo</a>
+      -- demo exception when a component is defined in the class but not present in the template
+    </li>
+    <li>
+      <a href="GetterMethodAlreadyExists">Getter Method Already Exists</a>
+      -- demo @Property attempting to overwrite an existing getter method
+    </li>
+    <li>
+      <a href="DuplicateIds">Duplicate IDs</a>
+      -- demo two components declared with the same ID
+    </li>
+    <li>
+      <a href="PublishDuplicateNameDemo">Duplicate Published Parameter Name</a>
+      -- demo error checking for the same parameter name published from two different
+      embedded components
+    </li>
+    <li>
+      <a href="EmbeddedComponentTypeConflict">Embedded Component Type Conflict
             </a>
-            -- error checking for conflict between @Component.type and t:type.
-        </li>
-        <li>
-            <a href="PublishUnknownParameterDemo">Publish Unknown Parameter Demo</a>
-            -- publishing a parameter which does not exist
-        </li>
-        <li>
-            <a href="BadMixinIdDemo">Bad Mixin Id Demo</a>
-            -- error reporting when a parameter specifies a mixin id that does not exist
-        </li>
-        <li>
-            <a href="DupeMixinDemo">Duplicate Mixin Demo</a>
-            -- error reporting for adding a duplicate mixin to a component
-        </li>
-        <li>
-            <a href="UnsupportedParameterBlockDemo">Unsupported Parameter Block Demo</a>
-            -- informal block parameter to a component that does not support informal parameters
-        </li>
-        <li>
-            <a href="InvalidTemplateExtend">Invalid Template Extend Demo</a>
-            -- template uses extend, but component doesn't have a super-class
-        </li>
-        
-        <li>
-          <a href="PageResetFailure">PageReset Annotation Failure</a>
-          -- error when @PageReset is on a method with parameters
-        </li>
-        
-        <li>
-          <a href="VoidMethodWithCached">@Cached on void method</a>
-          -- error when @Cached is used on a method that returns void
-        </li>
-        
-        <li>
-          <a href="ParamsMethodWithCached">@Cached on method with parameters</a>
-          -- error when @cached is used on a method that has parameters
-        </li>
-    </ul>
+      -- error checking for conflict between @Component.type and t:type.
+    </li>
+    <li>
+      <a href="PublishUnknownParameterDemo">Publish Unknown Parameter Demo</a>
+      -- publishing a parameter which does not exist
+    </li>
+    <li>
+      <a href="BadMixinIdDemo">Bad Mixin Id Demo</a>
+      -- error reporting when a parameter specifies a mixin id that does not exist
+    </li>
+    <li>
+      <a href="DupeMixinDemo">Duplicate Mixin Demo</a>
+      -- error reporting for adding a duplicate mixin to a component
+    </li>
+    <li>
+      <a href="UnsupportedParameterBlockDemo">Unsupported Parameter Block Demo</a>
+      -- informal block parameter to a component that does not support informal parameters
+    </li>
+    <li>
+      <a href="InvalidTemplateExtend">Invalid Template Extend Demo</a>
+      -- template uses extend, but component doesn't have a super-class
+    </li>
+
+    <li>
+      <a href="PageResetFailure">PageReset Annotation Failure</a>
+      -- error when @PageReset is on a method with parameters
+    </li>
+
+    <li>
+      <a href="VoidMethodWithCached">@Cached on void method</a>
+      -- error when @Cached is used on a method that returns void
+    </li>
+
+    <li>
+      <a href="ParamsMethodWithCached">@Cached on method with parameters</a>
+      -- error when @cached is used on a method that has parameters
+    </li>
+    <li>
+      <a href="InvalidComponentTypeDemo">Invalid Component Type</a>
+      -- unknown type of component in template
+    </li>
+  </ul>
 
 </html>
 

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/app1/InvalidComponentTypeDemo.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/InvalidComponentTypeDemo.tml?rev=933392&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/app1/InvalidComponentTypeDemo.tml (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/app1/InvalidComponentTypeDemo.tml Mon
Apr 12 20:05:56 2010
@@ -0,0 +1,7 @@
+<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+
+  <h1>Invalid Component Type Demo</h1>
+
+  <span t:type="unknownType"/>
+
+</html>
\ No newline at end of file

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java?rev=933392&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java
Mon Apr 12 20:05:56 2010
@@ -0,0 +1,20 @@
+// Copyright 2010 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package org.apache.tapestry5.integration.app1.pages;
+
+public class InvalidComponentTypeDemo
+{
+
+}

Propchange: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/InvalidComponentTypeDemo.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message