You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/09/11 19:28:23 UTC
git commit: Fix broken tests Make it easier to run just a single test
case from the main suite (app1)
Updated Branches:
refs/heads/master bacd79326 -> 954c905d0
Fix broken tests
Make it easier to run just a single test case from the main suite (app1)
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/954c905d
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/954c905d
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/954c905d
Branch: refs/heads/master
Commit: 954c905d0e169b65d5cf3193864a73e39f0a334b
Parents: bacd793
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Wed Sep 11 10:28:15 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Wed Sep 11 10:28:15 2013 -0700
----------------------------------------------------------------------
.../src/test/app1/MultiBeanDemoResult.tml | 2 +-
.../src/test/app1/MultiBeanEditDemo.tml | 8 +---
.../src/test/app1/PageContextInForm.tml | 3 ++
tapestry-core/src/test/app1/Target.tml | 41 +++++++++++---------
.../app1/ActivationRequestParameterTests.groovy | 10 ++---
.../integration/app1/AlertsTests.groovy | 6 +--
.../integration/app1/BlockTests.groovy | 5 +--
.../app1/BypassActivationTests.groovy | 3 +-
.../integration/app1/CanceledEventTests.groovy | 3 +-
.../app1/ClassTransformationTests.groovy | 5 +--
.../app1/ComponentParameterTests.groovy | 5 +--
.../integration/app1/DoctypeTests.groovy | 8 ++--
.../integration/app1/DynamicTest.groovy | 7 +---
.../integration/app1/FormFieldFocusTest.groovy | 5 +--
.../tapestry5/integration/app1/MiscTests.groovy | 5 +--
.../app1/MissingPageActivationContext.groovy | 7 ++--
.../PageActivationContextAnnotationTests.groovy | 7 ++--
.../integration/app1/PageLoadErrorTests.groovy | 3 +-
.../integration/app1/ParameterTests.groovy | 5 +--
.../app1/SubmitUnconditionalTests.groovy | 4 +-
.../tapestry5/integration/app1/TreeTests.groovy | 5 +--
.../app1/UnknownActivationContextTests.groovy | 13 -------
.../tapestry5/integration/app1/AjaxTests.java | 3 +-
.../integration/app1/App1TestCase.java | 13 +++++++
.../tapestry5/integration/app1/AssetTests.java | 5 +--
.../integration/app1/BeanEditorTests.java | 7 ++--
.../tapestry5/integration/app1/CacheTests.java | 5 +--
.../integration/app1/CoreBehaviorsTests.java | 23 ++++++-----
.../integration/app1/FailureTests.java | 5 +--
.../tapestry5/integration/app1/FormTests.java | 9 ++---
.../integration/app1/GeneralComponentTests.java | 9 ++---
.../tapestry5/integration/app1/GridTests.java | 5 +--
.../tapestry5/integration/app1/LoopTests.java | 5 +--
.../tapestry5/integration/app1/MixinTests.java | 5 +--
.../integration/app1/PaletteTests.java | 3 +-
.../integration/app1/RequestParameterTests.java | 5 +--
.../integration/app1/ZoneRefreshTest.java | 3 +-
.../tapestry5/integration/app1/ZoneTests.java | 7 +---
.../LinkTransformerIntegrationTest.java | 6 +--
.../integration/app1/pages/VarBindingDemo.tml | 3 ++
.../test/TapestryTestConfiguration.java | 5 +--
41 files changed, 120 insertions(+), 166 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/app1/MultiBeanDemoResult.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/MultiBeanDemoResult.tml b/tapestry-core/src/test/app1/MultiBeanDemoResult.tml
index 02cea18..356afa3 100644
--- a/tapestry-core/src/test/app1/MultiBeanDemoResult.tml
+++ b/tapestry-core/src/test/app1/MultiBeanDemoResult.tml
@@ -3,7 +3,7 @@
<h1>MultiBean Edit Demo</h1>
- <ul>
+ <ul id="results">
<li>First Name: [${credentials.firstName}]</li>
<li>Last Name: [${credentials.lastName}]</li>
<li>Path: [${rolePath.path}]</li>
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/app1/MultiBeanEditDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/MultiBeanEditDemo.tml b/tapestry-core/src/test/app1/MultiBeanEditDemo.tml
index 994255f..c4768c0 100644
--- a/tapestry-core/src/test/app1/MultiBeanEditDemo.tml
+++ b/tapestry-core/src/test/app1/MultiBeanEditDemo.tml
@@ -7,20 +7,14 @@
<t:errors />
- <div class="t-beaneditor">
-
<!-- Demonstrate default object binding from component id -->
<t:beaneditor t:id="credentials" />
<t:beaneditor t:id="rolePath" />
- <div class="t-beaneditor-row">
+ <div class="row">
<input type="submit" value="Set Access" />
</div>
-
- </div>
-
-
</form>
<p>
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/app1/PageContextInForm.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/PageContextInForm.tml b/tapestry-core/src/test/app1/PageContextInForm.tml
index 1eda2a4..9a7ad73 100644
--- a/tapestry-core/src/test/app1/PageContextInForm.tml
+++ b/tapestry-core/src/test/app1/PageContextInForm.tml
@@ -3,12 +3,15 @@
<h1>Page Context in Form</h1>
<h2>Activation Context</h2>
+ <div id="results">
+
<t:if test="activationContext">
<ul>
<li t:type="loop" source="activationContext" value="object">${object}</li>
</ul>
<t:parameter name="else">No activation context.</t:parameter>
</t:if>
+ </div>
<t:form>
<input type="submit"/>
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/app1/Target.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/Target.tml b/tapestry-core/src/test/app1/Target.tml
index f7fea49..8227547 100644
--- a/tapestry-core/src/test/app1/Target.tml
+++ b/tapestry-core/src/test/app1/Target.tml
@@ -1,24 +1,29 @@
<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<h1>Target</h1>
<h2>Activation Context</h2>
- <t:if test="activationContext">
-
- <ul>
- <li t:type="loop" source="activationContext" value="object">
- <t:if test="object" else="NULL">${object}</t:if>
- </li>
- </ul>
- <t:parameter name="else">No activation context.</t:parameter>
- </t:if>
- <h2>Component Context</h2>
- <t:if test="componentContext">
-
- <ul>
- <li t:type="loop" source="componentContext" value="object">${object}</li>
- </ul>
-
- <t:parameter name="else">No component context.</t:parameter>
- </t:if>
+
+ <div id="results">
+
+ <t:if test="activationContext">
+
+ <ul>
+ <li t:type="loop" source="activationContext" value="object">
+ <t:if test="object" else="NULL">${object}</t:if>
+ </li>
+ </ul>
+ <t:parameter name="else">No activation context.</t:parameter>
+ </t:if>
+ <h2>Component Context</h2>
+ <t:if test="componentContext">
+
+ <ul>
+ <li t:type="loop" source="componentContext" value="object">${object}</li>
+ </ul>
+
+ <t:parameter name="else">No component context.</t:parameter>
+ </t:if>
+ </div>
+
<h2>Setup Component Context</h2>
[<a t:type="actionlink" context="contextToEncode">go</a>]
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy
index 5143b04..7688426 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -12,15 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package org.apache.tapestry5.integration.app1;
+package org.apache.tapestry5.integration.app1
-
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
-import org.apache.tapestry5.test.TapestryTestConfiguration
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-class ActivationRequestParameterTests extends TapestryCoreTestCase
+class ActivationRequestParameterTests extends App1TestCase
{
@Test
void basic_links() {
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy
index 04718f1..e7019e0 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy
@@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package org.apache.tapestry5.integration.app1;
+package org.apache.tapestry5.integration.app1
-
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
/**
@@ -23,7 +21,7 @@ import org.testng.annotations.Test
*
* @since 5.3
*/
-class AlertsTests extends TapestryCoreTestCase {
+class AlertsTests extends App1TestCase {
def CONTAINER = "[data-container-type=alerts]"
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BlockTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BlockTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BlockTests.groovy
index 6502ad9..d9a3004 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BlockTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BlockTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011 The Apache Software Foundation
+// Copyright 2011-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
-class BlockTests extends TapestryCoreTestCase
+class BlockTests extends App1TestCase
{
// Test for TAP5-1600
@Test
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BypassActivationTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BypassActivationTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BypassActivationTests.groovy
index c31be7e..f90e919 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BypassActivationTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BypassActivationTests.groovy
@@ -1,12 +1,11 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
/**
* See https://issues.apache.org/jira/browse/TAP5-1809?jwupdated=41324#linkingmodule
*/
-class BypassActivationTests extends TapestryCoreTestCase {
+class BypassActivationTests extends App1TestCase {
@Test
void activation_can_by_bypassed() {
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
index 01ad93a..3fd0f8e 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
@@ -1,9 +1,8 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
-class CanceledEventTests extends TapestryCoreTestCase
+class CanceledEventTests extends App1TestCase
{
@Test
void cancel_button()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy
index 10685ed..e70a372 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
-class ClassTransformationTests extends TapestryCoreTestCase
+class ClassTransformationTests extends App1TestCase
{
/** TAP5-1222 */
@Test
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ComponentParameterTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ComponentParameterTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ComponentParameterTests.groovy
index 5104362..62905d2 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ComponentParameterTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ComponentParameterTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011 The Apache Software Foundation
+// Copyright 2011-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.
@@ -14,14 +14,13 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.test.SeleniumTestCase
import org.testng.annotations.Test
/**
*
* @since 5.3
*/
-class ComponentParameterTests extends SeleniumTestCase
+class ComponentParameterTests extends App1TestCase
{
@Test
void event_handler_method_for_missing_component_is_error()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DoctypeTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DoctypeTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DoctypeTests.groovy
index c1b0249..81a00f4 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DoctypeTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DoctypeTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011 The Apache Software Foundation
+// Copyright 2011-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.
@@ -12,16 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package org.apache.tapestry5.integration.app1;
+package org.apache.tapestry5.integration.app1
-
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
/**
* Tests for the {@link org.apache.tapestry5.corelib.components.Doctype} component.
*/
-class DoctypeTests extends TapestryCoreTestCase
+class DoctypeTests extends App1TestCase
{
@Test
void doctype_overridden_via_component()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DynamicTest.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DynamicTest.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DynamicTest.groovy
index e4d11d8..09da0d6 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DynamicTest.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DynamicTest.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011, 2012 The Apache Software Foundation
+// Copyright 2011-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.
@@ -14,12 +14,9 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
-import org.apache.tapestry5.test.TapestryTestConfiguration
import org.testng.annotations.Test
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-class DynamicTest extends TapestryCoreTestCase
+class DynamicTest extends App1TestCase
{
void clickThru(link) {
openBaseURL();
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
index 023152d..0d97a1e 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
@@ -1,4 +1,4 @@
-// Copyright (c) 2011-2013 The Apache Software Foundation
+// Copyright 2011-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.
@@ -15,14 +15,13 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
/**
* Integration test to veryfiy {@link com.gargoylesoftware.htmlunit.javascript.host.FormField}
* and {@link org.apache.tapestry5.corelib.mixins.OverrideFieldfocus} mixin.
*/
-class FormFieldFocusTest extends TapestryCoreTestCase
+class FormFieldFocusTest extends App1TestCase
{
@Test
void form_field_focus_mixin()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
index b2bde4e..8728d65 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
@@ -1,11 +1,8 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
-import org.apache.tapestry5.test.TapestryTestConfiguration
import org.testng.annotations.Test
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-class MiscTests extends TapestryCoreTestCase {
+class MiscTests extends App1TestCase {
@Test
void operation_tracking_via_annotation() {
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy
index e6125f2..aff0980 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
-import org.testng.annotations.Test;
+import org.testng.annotations.Test
-class MissingPageActivationContext extends TapestryCoreTestCase
+class MissingPageActivationContext extends App1TestCase
{
@Test
void page_activation_context_omitted_from_url() {
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy
index 3f84a42..7f5a452 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
-import org.testng.annotations.Test
+import org.testng.annotations.Test
-class PageActivationContextAnnotationTests extends TapestryCoreTestCase
+class PageActivationContextAnnotationTests extends App1TestCase
{
@Test
void pac_fields_set_before_activate_event_handler_method_invoked()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageLoadErrorTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageLoadErrorTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageLoadErrorTests.groovy
index 5bb0564..4f2b1ab 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageLoadErrorTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageLoadErrorTests.groovy
@@ -1,9 +1,8 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.test.SeleniumTestCase
import org.testng.annotations.Test
-class PageLoadErrorTests extends SeleniumTestCase
+class PageLoadErrorTests extends App1TestCase
{
@Test
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ParameterTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ParameterTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ParameterTests.groovy
index e6d4c71..6f35e60 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ParameterTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ParameterTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011 The Apache Software Foundation
+// Copyright 2011-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.
@@ -14,13 +14,12 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
/**
* @since 5.3
*/
-class ParameterTests extends TapestryCoreTestCase
+class ParameterTests extends App1TestCase
{
/**
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/SubmitUnconditionalTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/SubmitUnconditionalTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/SubmitUnconditionalTests.groovy
index d9ac46b..9ede670 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/SubmitUnconditionalTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/SubmitUnconditionalTests.groovy
@@ -1,10 +1,8 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
-
-class SubmitUnconditionalTests extends TapestryCoreTestCase {
+class SubmitUnconditionalTests extends App1TestCase {
@Test
void submit_with_unconditional_mode() {
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy
index d6ae1f1..78c9a8f 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy
@@ -14,12 +14,9 @@
package org.apache.tapestry5.integration.app1
-import org.apache.tapestry5.integration.TapestryCoreTestCase
-import org.apache.tapestry5.test.TapestryTestConfiguration
import org.testng.annotations.Test
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-class TreeTests extends TapestryCoreTestCase {
+class TreeTests extends App1TestCase {
@Test
void basics() {
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/UnknownActivationContextTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/UnknownActivationContextTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/UnknownActivationContextTests.groovy
deleted file mode 100644
index 5a2fd3d..0000000
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/UnknownActivationContextTests.groovy
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.apache.tapestry5.integration.app1
-
-import org.apache.tapestry5.test.SeleniumTestCase
-import org.testng.annotations.Test
-
-class UnknownActivationContextTests extends SeleniumTestCase
-{
- // @Test
- void http_status_code_test_for_unknown_activation_context_case()
- {
- // TODO Use a workaround Selenium limitation to check http status code
- }
-}
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
index 2deafd6..41f8673 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
@@ -14,13 +14,12 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
/**
* Tests for various Ajax related components, mixins and behaviors.
*/
-public class AjaxTests extends TapestryCoreTestCase
+public class AjaxTests extends App1TestCase
{
@Test
public void autocomplete_mixin()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/App1TestCase.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/App1TestCase.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/App1TestCase.java
new file mode 100644
index 0000000..6ca5457
--- /dev/null
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/App1TestCase.java
@@ -0,0 +1,13 @@
+package org.apache.tapestry5.integration.app1;
+
+import org.apache.tapestry5.integration.TapestryCoreTestCase;
+import org.apache.tapestry5.test.TapestryTestConfiguration;
+
+/**
+ * Base class for tests that use the src/test/app1 application; this makes it possible
+ * to run the test class directly, as it will have the correct configuration.
+ */
+@TapestryTestConfiguration(webAppFolder = "src/test/app1")
+public abstract class App1TestCase extends TapestryCoreTestCase
+{
+}
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java
index adc76ff..3c03253 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2011, 2012, 2013 The Apache Software Foundation
+// Copyright 2009-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.
@@ -14,7 +14,6 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.apache.tapestry5.internal.TapestryInternalUtils;
import org.apache.tapestry5.test.TapestryRunnerConstants;
import org.testng.annotations.DataProvider;
@@ -26,7 +25,7 @@ import java.io.File;
import java.io.InputStream;
import java.net.URL;
-public class AssetTests extends TapestryCoreTestCase
+public class AssetTests extends App1TestCase
{
@DataProvider
private Object[][] asset_data()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
index 12749e6..fd89b34 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2011, 2012 The Apache Software Foundation
+// Copyright 2009-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.
@@ -16,7 +16,6 @@ package org.apache.tapestry5.integration.app1;
import org.apache.tapestry5.corelib.components.BeanEditForm;
import org.apache.tapestry5.corelib.components.BeanEditor;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.apache.tapestry5.integration.app1.data.RegistrationData;
import org.testng.annotations.Test;
@@ -24,7 +23,7 @@ import org.testng.annotations.Test;
* Tests for the {@link BeanEditor} component, often embedded inside
* a {@link BeanEditForm} component.
*/
-public class BeanEditorTests extends TapestryCoreTestCase
+public class BeanEditorTests extends App1TestCase
{
/**
* Tests the bean editor. Along the way, tests a bunch about validation,
@@ -109,7 +108,7 @@ public class BeanEditorTests extends TapestryCoreTestCase
type("path", "/var/www");
clickAndWait("//input[@value='Set Access']");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "First Name: [Howard]", "Last Name: [Lewis Ship]",
+ assertTextSeries("//ul[@id='results']//li[%d]", 1, "First Name: [Howard]", "Last Name: [Lewis Ship]",
"Path: [/var/www]", "Role: [GRANT]");
}
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java
index 665cc96..6f9cb2a 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
-public class CacheTests extends TapestryCoreTestCase
+public class CacheTests extends App1TestCase
{
/**
* TAPESTRY-2338
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
index a4e0404..7f4f287 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
@@ -15,11 +15,10 @@
package org.apache.tapestry5.integration.app1;
import org.apache.tapestry5.corelib.mixins.RenderDisabled;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.apache.tapestry5.integration.app1.pages.RenderErrorDemo;
import org.testng.annotations.Test;
-public class CoreBehaviorsTests extends TapestryCoreTestCase
+public class CoreBehaviorsTests extends App1TestCase
{
@Test
@@ -382,13 +381,13 @@ public class CoreBehaviorsTests extends TapestryCoreTestCase
clickAndWait("link=kick target");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "betty", "wilma", "betty/wilma", "\u82B1\u5B50");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "betty", "wilma", "betty/wilma", "\u82B1\u5B50");
assertTextPresent("No component context.");
clickAndWait("link=go");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "betty", "wilma", "betty/wilma", "\u82B1\u5B50");
- assertTextSeries("//div[@class='main']//ul[2]/li[%d]", 1, "fred", "barney", "clark kent", "fred/barney", "\u592A\u90CE");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "betty", "wilma", "betty/wilma", "\u82B1\u5B50");
+ assertTextSeries("//div[@id='results']//ul[2]/li[%d]", 1, "fred", "barney", "clark kent", "fred/barney", "\u592A\u90CE");
}
@Test
@@ -398,7 +397,7 @@ public class CoreBehaviorsTests extends TapestryCoreTestCase
clickAndWait("link=kick target");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "betty", "wilma", "betty/wilma", "\u82B1\u5B50");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "betty", "wilma", "betty/wilma", "\u82B1\u5B50");
clickAndWait("link=Target base, no context");
@@ -416,25 +415,25 @@ public class CoreBehaviorsTests extends TapestryCoreTestCase
clickAndWait("link=literal context");
- assertText("//div[@class='main']//li[1]", "literal context");
+ assertText("//div[@id='results']//li[1]", "literal context");
clickAndWait("link=PageLink Context Demo");
clickAndWait("link=computed context");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "fred", "7", "true");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "fred", "7", "true");
clickAndWait("link=PageLink Context Demo");
clickAndWait("link=unsafe characters");
- assertText("//div[@class='main']//li[1]", "unsafe characters: !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
+ assertText("//div[@id='results']//li[1]", "unsafe characters: !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
clickAndWait("link=PageLink Context Demo");
clickAndWait("link=japanese kanji");
- assertText("//div[@class='main']//li[1]", "japanese kanji: \u65E5\u672C\u8A9E");
+ assertText("//div[@id='results']//li[1]", "japanese kanji: \u65E5\u672C\u8A9E");
// TAPESTRY-2221
@@ -442,7 +441,7 @@ public class CoreBehaviorsTests extends TapestryCoreTestCase
clickAndWait("link=Null in context");
- assertText("//div[@class='main']//li[1]", "NULL");
+ assertText("//div[@id='results']//li[1]", "NULL");
}
private void openLinkParameterTest()
@@ -750,7 +749,7 @@ public class CoreBehaviorsTests extends TapestryCoreTestCase
{
openLinks("Var Binding Demo");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "1", "2", "3");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "1", "2", "3");
}
/**
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java
index c2c0c67..0e7473b 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,14 +14,13 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
/**
* Tests for various kinds of failure conditions. Generally, what's being tested is that the exception
* is being reported correctly.
*/
-public class FailureTests extends TapestryCoreTestCase
+public class FailureTests extends App1TestCase
{
/**
* With lt;span t:id="foo"/> in the template, there should be an @Component
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
index 9e4ce92..1928318 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
@@ -15,8 +15,6 @@
package org.apache.tapestry5.integration.app1;
import org.apache.tapestry5.corelib.components.Form;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
-import org.apache.tapestry5.test.TapestryTestConfiguration;
import org.testng.annotations.Test;
import java.text.SimpleDateFormat;
@@ -25,8 +23,7 @@ import java.util.Date;
/**
* Tests for the {@link Form} component as well as many form control components.
*/
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-public class FormTests extends TapestryCoreTestCase
+public class FormTests extends App1TestCase
{
@Test
@@ -42,12 +39,12 @@ public class FormTests extends TapestryCoreTestCase
{
openLinks("Page Context in Form");
- assertTextSeries("//div[@class='main']//li[%d]", 1, "betty", "wilma", "context with spaces", "context/with/slashes");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "betty", "wilma", "context with spaces", "context/with/slashes");
assertFieldValue("t:ac", "betty/wilma/context$0020with$0020spaces/context$002fwith$002fslashes");
clickAndWait(SUBMIT);
- assertTextSeries("//div[@class='main']//li[%d]", 1, "betty", "wilma", "context with spaces", "context/with/slashes");
+ assertTextSeries("//div[@id='results']//li[%d]", 1, "betty", "wilma", "context with spaces", "context/with/slashes");
assertFieldValue("t:ac", "betty/wilma/context$0020with$0020spaces/context$002fwith$002fslashes");
}
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java
index 5abb491..96f896c 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2011 The Apache Software Foundation
+// Copyright 2009-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.
@@ -14,13 +14,12 @@
package org.apache.tapestry5.integration.app1;
-import java.net.URL;
-
import org.apache.commons.io.IOUtils;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
-public class GeneralComponentTests extends TapestryCoreTestCase
+import java.net.URL;
+
+public class GeneralComponentTests extends App1TestCase
{
@Test
public void unless_component()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java
index 69bdbd1..59b4768 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java
@@ -15,15 +15,12 @@
package org.apache.tapestry5.integration.app1;
import org.apache.tapestry5.corelib.components.Grid;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
-import org.apache.tapestry5.test.TapestryTestConfiguration;
import org.testng.annotations.Test;
/**
* Tests for the {@link Grid} component.
*/
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-public class GridTests extends TapestryCoreTestCase
+public class GridTests extends App1TestCase
{
private static final String RESET = "Reset the Grid";
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java
index 34c45b4..419dda8 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2011 The Apache Software Foundation
+// Copyright 2009-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
-public class LoopTests extends TapestryCoreTestCase
+public class LoopTests extends App1TestCase
{
/**
* TAP5-205
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java
index 70762ec..ac982dd 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2011 The Apache Software Foundation
+// Copyright 2009-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
-public class MixinTests extends TapestryCoreTestCase
+public class MixinTests extends App1TestCase
{
@Test
public void render_notification_mixin()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java
index 88af192..4645637 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java
@@ -15,13 +15,12 @@
package org.apache.tapestry5.integration.app1;
import org.apache.tapestry5.corelib.components.Palette;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
/**
* Tests for the {@link Palette} component.
*/
-public class PaletteTests extends TapestryCoreTestCase
+public class PaletteTests extends App1TestCase
{
public static final String AVAILABLE_OPTIONS = "css=.palette-available select";
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java
index 34d47b4..487ec8c 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,10 +14,9 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
-public class RequestParameterTests extends TapestryCoreTestCase
+public class RequestParameterTests extends App1TestCase
{
@Test
public void successful_use_of_query_parameter_annotation()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java
index d288112..51bc760 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java
@@ -14,11 +14,10 @@
package org.apache.tapestry5.integration.app1;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
import org.testng.annotations.Test;
// Disabled these tests because they are time sensitive and cause build failures.
-public class ZoneRefreshTest extends TapestryCoreTestCase
+public class ZoneRefreshTest extends App1TestCase
{
@Test(enabled = false)
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java
index b31cd23..e2497a7 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2010, 2011, 2012 The Apache Software Foundation
+// Copyright 2009-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.
@@ -16,15 +16,12 @@ package org.apache.tapestry5.integration.app1;
import org.apache.tapestry5.corelib.components.Form;
import org.apache.tapestry5.corelib.components.Zone;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
-import org.apache.tapestry5.test.TapestryTestConfiguration;
import org.testng.annotations.Test;
/**
* Tests related to the {@link Zone} component.
*/
-@TapestryTestConfiguration(webAppFolder = "src/test/app1")
-public class ZoneTests extends TapestryCoreTestCase
+public class ZoneTests extends App1TestCase
{
/**
* TAP5-138
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/java/org/apache/tapestry5/integration/linktrans/LinkTransformerIntegrationTest.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/linktrans/LinkTransformerIntegrationTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/linktrans/LinkTransformerIntegrationTest.java
index 1f081db..6c9c7aa 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/linktrans/LinkTransformerIntegrationTest.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/linktrans/LinkTransformerIntegrationTest.java
@@ -1,4 +1,4 @@
-// Copyright 2010, 2011 The Apache Software Foundation
+// Copyright 2010-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.
@@ -14,10 +14,10 @@
package org.apache.tapestry5.integration.linktrans;
-import org.apache.tapestry5.integration.TapestryCoreTestCase;
+import org.apache.tapestry5.integration.app1.App1TestCase;
import org.testng.annotations.Test;
-public class LinkTransformerIntegrationTest extends TapestryCoreTestCase
+public class LinkTransformerIntegrationTest extends App1TestCase
{
@Test
public void page_render_links()
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/VarBindingDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/VarBindingDemo.tml b/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/VarBindingDemo.tml
index 7f17451..82d692f 100644
--- a/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/VarBindingDemo.tml
+++ b/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/VarBindingDemo.tml
@@ -11,8 +11,11 @@
<p>
Counting from 1 to 3:
</p>
+ <div id="results">
+
<ul>
<li t:type="loop" source="1..3" value="var:index">${var:index}</li>
</ul>
+ </div>
</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/954c905d/tapestry-test/src/main/java/org/apache/tapestry5/test/TapestryTestConfiguration.java
----------------------------------------------------------------------
diff --git a/tapestry-test/src/main/java/org/apache/tapestry5/test/TapestryTestConfiguration.java b/tapestry-test/src/main/java/org/apache/tapestry5/test/TapestryTestConfiguration.java
index 325a8b3..080710f 100644
--- a/tapestry-test/src/main/java/org/apache/tapestry5/test/TapestryTestConfiguration.java
+++ b/tapestry-test/src/main/java/org/apache/tapestry5/test/TapestryTestConfiguration.java
@@ -1,4 +1,4 @@
-// Copyright 2011, 2012 The Apache Software Foundation
+// Copyright 2011-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.
@@ -14,8 +14,6 @@
package org.apache.tapestry5.test;
-import org.apache.tapestry5.test.SeleniumTestCase;
-
import java.lang.annotation.*;
/**
@@ -30,6 +28,7 @@ import java.lang.annotation.*;
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
+@Inherited
@Documented
public @interface TapestryTestConfiguration
{