From 23bcbfb199af4f5155388f89df98db22d7931362 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 19 May 2011 11:49:59 +0000 Subject: [PATCH] fehlende Basistypen ergaenzt --- .../cliClientConnector/CLIClientConnectorServlet.java | 6 +++--- hsarback/test/de/hsadmin/remote/CustomerTest.java | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hsarback/src/de/hsadmin/cliClientConnector/CLIClientConnectorServlet.java b/hsarback/src/de/hsadmin/cliClientConnector/CLIClientConnectorServlet.java index ed63ee5..afccbd0 100644 --- a/hsarback/src/de/hsadmin/cliClientConnector/CLIClientConnectorServlet.java +++ b/hsarback/src/de/hsadmin/cliClientConnector/CLIClientConnectorServlet.java @@ -124,11 +124,11 @@ public class CLIClientConnectorServlet extends HttpServlet { try { if (type.equals("java.lang.String")) m[j].invoke(o, value); - else if (type.equals("java.lang.Integer")) + else if (type.equals("java.lang.Integer") || type.equals("int")) m[j].invoke(o, Integer.parseInt(value)); - else if (type.equals("java.lang.Long")) + else if (type.equals("java.lang.Long") || type.equals("long")) m[j].invoke(o, Long.parseLong(value)); - else if (type.equals("java.lang.Boolean")) + else if (type.equals("java.lang.Boolean") || type.equals("boolean")) m[j].invoke(o, Boolean.valueOf(value)); else if (type.equals("java.util.Date")) { DateFormat df = DateFormat.getInstance(); diff --git a/hsarback/test/de/hsadmin/remote/CustomerTest.java b/hsarback/test/de/hsadmin/remote/CustomerTest.java index 7bd5b41..9107c45 100644 --- a/hsarback/test/de/hsadmin/remote/CustomerTest.java +++ b/hsarback/test/de/hsadmin/remote/CustomerTest.java @@ -51,7 +51,6 @@ public class CustomerTest { setParams.put("contact_title", "Dr."); setParams.put("contact_firstname", "Ömer Günther"); setParams.put("contact_lastname", "Janßen-Müller"); - setParams.put("contact_salut", "Herr"); setParams.put("contact_street", "Hauptstr. 1"); setParams.put("contact_zipcode", "99998"); setParams.put("contact_city", "Musterstadt");