You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2020/07/28 11:22:31 UTC
[openoffice] 01/03: Explain format of "-tm" parameter when it's
wrong.
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit ca8e4e5a6119f0ceaa44e8c3538f3568ab0aeabd
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Mon Jul 27 07:31:25 2020 +0200
Explain format of "-tm" parameter when it's wrong.
Patch by: me
(cherry picked from commit 3705dcbca917f01156f9b8d7e49186e5358fb78b)
---
test/testcommon/source/org/openoffice/test/common/NamedRequest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/testcommon/source/org/openoffice/test/common/NamedRequest.java b/test/testcommon/source/org/openoffice/test/common/NamedRequest.java
index ffb4b6e..dbfbe55 100644
--- a/test/testcommon/source/org/openoffice/test/common/NamedRequest.java
+++ b/test/testcommon/source/org/openoffice/test/common/NamedRequest.java
@@ -123,6 +123,9 @@ public class NamedRequest extends Request {
String[] methods = arg.split(",");
for (String m : methods) {
int i = m.lastIndexOf(".");
+ if (i < 0) {
+ throw new RuntimeException("-tm parameter needs to have the form className.methodName");
+ }
String className = m.substring(0, i);
String methodName = m.substring(++i);
try {
@@ -179,4 +182,4 @@ public class NamedRequest extends Request {
}
}
-}
\ No newline at end of file
+}