Skip to content

Commit bfd44bc

Browse files
authored
Merge pull request #25815 from dmatej/reporter
Code cleanup in "Ant Tests Reporter" to make it more robust
2 parents c765a75 + 39042bd commit bfd44bc

7 files changed

Lines changed: 836 additions & 1118 deletions

File tree

appserver/tests/appserv-tests/devtests/ejb/ejb32/embedded/autoclose/client/Client.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2025 Contributors to the Eclipse Foundation.
23
* Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
34
*
45
* This program and the accompanying materials are made available under the
@@ -62,6 +63,7 @@ private void test(String module) {
6263
res = false;
6364
System.out.println("ERROR calling EJB:");
6465
e.printStackTrace();
66+
throw new RuntimeException(e);
6567
}
6668

6769
System.out.println("EJB noted on destroy in try-with-resource: " + l.get(0));
@@ -77,7 +79,7 @@ private void test(String module) {
7779
} catch (Exception e) {
7880
res = false;
7981
System.out.println("ERROR calling EJB:");
80-
e.printStackTrace();
82+
throw new RuntimeException(e);
8183
} finally {
8284
if (c != null)
8385
c.close();

0 commit comments

Comments
 (0)