summaryrefslogtreecommitdiff
path: root/src/test/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/at')
-rw-r--r--src/test/java/at/gv/util/demo/ZuseSSLTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/at/gv/util/demo/ZuseSSLTest.java b/src/test/java/at/gv/util/demo/ZuseSSLTest.java
index 516c228..cecbc19 100644
--- a/src/test/java/at/gv/util/demo/ZuseSSLTest.java
+++ b/src/test/java/at/gv/util/demo/ZuseSSLTest.java
@@ -30,7 +30,6 @@ import org.apache.http.ssl.PrivateKeyDetails;
import org.apache.http.ssl.PrivateKeyStrategy;
import org.apache.http.ssl.SSLContextBuilder;
import org.apache.http.util.EntityUtils;
-import org.apache.log4j.lf5.util.StreamUtils;
import at.gv.util.xsd.szr.pvp.sec.Security;
@@ -132,10 +131,11 @@ public class ZuseSSLTest {
System.out.println("HTTP StatusCode: " + response.getStatusLine().getStatusCode());
- if (response.getEntity().getContent() != null )
- System.out.println("Body: " + org.apache.commons.codec.binary.StringUtils.newStringUtf8(StreamUtils.getBytes(response.getEntity().getContent())));
-
-
+ if (response.getEntity().getContent() != null ) {
+ System.out.println("Body: " +
+ EntityUtils.toString(response.getEntity()));
+
+ }
System.out.println("Test finished");
} catch (Exception e) {