You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2022/02/05 19:35:56 UTC

[tapestry-5] 02/02: TAP5-2700: fixing two broken tests

This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch latest-java-tests
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 0fd01f977b64067b4a6c4a3bbba366a56848e20f
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Feb 5 16:35:37 2022 -0300

    TAP5-2700: fixing two broken tests
    
    GridSymbolDemoTests and XMLTokenStreamTests. testStreamEncoding
---
 tapestry-core/build.gradle                                           | 5 +++++
 .../tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy     | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/tapestry-core/build.gradle b/tapestry-core/build.gradle
index 9dcfb45..559dbec 100644
--- a/tapestry-core/build.gradle
+++ b/tapestry-core/build.gradle
@@ -72,6 +72,11 @@ jar {
     }
 }
 
+// Needed to have XMLTokenStreamTests.testStreamEncoding() passing on Java 17
+test {
+    jvmArgs '--add-opens=java.base/java.nio.charset=ALL-UNNAMED'    
+}
+
 task runTestApp1(type:JavaExec) {
   description 'Start app1 integration test app, useful when debugging failing integration tests'
   main = 'org.apache.tapestry5.test.JettyRunner'
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy
index c351e46..600ab6d 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011-2013 The Apache Software Foundation
+// Copyright 2011-2021 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,11 +15,13 @@
 package org.apache.tapestry5.integration.symbolparam
 
 import org.apache.tapestry5.integration.TapestryCoreTestCase
+import org.apache.tapestry5.test.TapestryTestConfiguration
 import org.testng.annotations.Test
 
 /**
  * Tests for the Grid's symbol parameter support added in 5.3.
  */
+@TapestryTestConfiguration(webAppFolder = "src/test/symbolparam")
 class GridSymbolDemoTests extends TapestryCoreTestCase
 {
     @Test