You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ml...@apache.org on 2013/08/05 19:48:38 UTC

[6/8] git commit: TAP5-2070 new page for base tests

TAP5-2070 new page for base tests


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/7de82f53
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/7de82f53
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/7de82f53

Branch: refs/heads/master
Commit: 7de82f531c875bf916385c5dc1fedd64687af7d6
Parents: 0ae1d11
Author: Massimo Lusetti <ml...@apache.org>
Authored: Mon Aug 5 19:41:32 2013 +0200
Committer: Massimo Lusetti <ml...@apache.org>
Committed: Mon Aug 5 19:48:15 2013 +0200

----------------------------------------------------------------------
 .../app1/pages/KnownActivationContextDemo.java  | 28 ++++++++++++++++++++
 .../app1/pages/KnownActivationContextDemo.tml   | 13 +++++++++
 2 files changed, 41 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/7de82f53/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.java
new file mode 100644
index 0000000..8e10172
--- /dev/null
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.java
@@ -0,0 +1,28 @@
+// Copyright 2013 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;
+
+import org.apache.tapestry5.annotations.PageActivationContext;
+import org.apache.tapestry5.annotations.Property;
+import org.apache.tapestry5.annotations.UnknownActivationContextCheck;
+
+@UnknownActivationContextCheck
+public class KnownActivationContextDemo
+{
+	@PageActivationContext
+	@Property
+	private String activationContext;
+}

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/7de82f53/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.tml b/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.tml
new file mode 100644
index 0000000..8e59be7
--- /dev/null
+++ b/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/KnownActivationContextDemo.tml
@@ -0,0 +1,13 @@
+<t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+    <h1>Page called with correct activation context</h1>
+
+    <p>
+        You should never see me if use an erroneous activation context
+    </p>
+
+    <p>
+        ${activationContext}
+    </p>
+
+</t:border>
\ No newline at end of file