This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch javax
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/javax by this push:
new 176a5a086 TAP5-2809: fixing tapestry-jpa runTestAppN tasks
176a5a086 is described below
commit 176a5a0863f2cd8db2ea592acd913f866d7e96b9
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Sun Mar 29 19:02:39 2026 -0300
TAP5-2809: fixing tapestry-jpa runTestAppN tasks
plus trying to figure out why
org.apache.tapestry5.jpa.integration.app6.JpaIntegrationTestWithAnnotationsInServiceImplementation.grid()
is failing on Jenkins
---
tapestry-jpa/build.gradle | 9 ++++++---
...JpaIntegrationTestWithAnnotationsInServiceImplementation.java | 7 +++++++
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/tapestry-jpa/build.gradle b/tapestry-jpa/build.gradle
index f7cd9e475..999996c1f 100644
--- a/tapestry-jpa/build.gradle
+++ b/tapestry-jpa/build.gradle
@@ -19,10 +19,13 @@ dependencies {
}
(1..6).each {
- tasks.register("runTestApp${it}", JavaExec) {
- description = "Start app${it} integration test app, useful when
debugging failing integration tests"
+
+ var number = it;
+
+ tasks.register("runTestApp${number}", JavaExec) {
+ description = "Start app${number} integration test app, useful when
debugging failing integration tests"
mainClass = 'org.apache.tapestry5.test.JettyRunner'
- args '-d', "src/test/app${it}", '-p', '8080'
+ args '-d', "src/test/app${number}", '-p', '8080'
classpath = project.sourceSets.test.runtimeClasspath
}
}
diff --git
a/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app6/JpaIntegrationTestWithAnnotationsInServiceImplementation.java
b/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app6/JpaIntegrationTestWithAnnotationsInServiceImplementation.java
index a806c812e..21a437e71 100644
---
a/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app6/JpaIntegrationTestWithAnnotationsInServiceImplementation.java
+++
b/tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/integration/app6/JpaIntegrationTestWithAnnotationsInServiceImplementation.java
@@ -140,11 +140,18 @@ public class
JpaIntegrationTestWithAnnotationsInServiceImplementation extends Se
open("/griddemo");
clickAndWait("link=setup");
+
+ final String firstNameSelector = "th[data-grid-property=firstName] a";
+ waitForCssSelectorToAppear(firstNameSelector);
+ if (!isElementPresent("link=First Name")) {
+ throw new IllegalStateException("link=First Name not found.
HTML:\n" + getHtmlSource());
+ }
clickAndWait("link=First Name");
assertText("//td[@data-grid-column-sort='ascending']", "Joe_1");
+ waitForCssSelectorToAppear(firstNameSelector);
clickAndWait("link=First Name");
assertText("//td[@data-grid-column-sort='descending']", "Joe_9");