From a1f35ccc22d298c4cbbd3f278b6914e1375c3d42 Mon Sep 17 00:00:00 2001 From: Imran M Yousuf Date: Tue, 24 Feb 2009 09:43:18 +0600 Subject: [PATCH] No need to catch the exception and close response if there is not response entity Signed-off-by: Imran M Yousuf --- .../ws/server/BookStoreResourcesTest.java | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/WebServiceServer/src/test/java/com/smartitengineering/bookstore/ws/server/BookStoreResourcesTest.java b/WebServiceServer/src/test/java/com/smartitengineering/bookstore/ws/server/BookStoreResourcesTest.java index 1e6f94e..fdb9454 100644 --- a/WebServiceServer/src/test/java/com/smartitengineering/bookstore/ws/server/BookStoreResourcesTest.java +++ b/WebServiceServer/src/test/java/com/smartitengineering/bookstore/ws/server/BookStoreResourcesTest.java @@ -130,14 +130,14 @@ public class BookStoreResourcesTest type.post(bookElement); fail("Should not succeed!"); } - catch(UniformInterfaceException interfaceException) { - try { - interfaceException.getResponse().close(); - } - catch(Exception ex) { - fail(ex.getMessage()); - } - } +// catch(UniformInterfaceException interfaceException) { +// try { +// interfaceException.getResponse().close(); +// } +// catch(Exception ex) { +// fail(ex.getMessage()); +// } +// } catch (Exception ex) { } @@ -285,14 +285,14 @@ public class BookStoreResourcesTest type.post(houseElement); fail("Should not succeed!"); } - catch(UniformInterfaceException interfaceException) { - try { - interfaceException.getResponse().close(); - } - catch(Exception ex) { - fail(ex.getMessage()); - } - } +// catch(UniformInterfaceException interfaceException) { +// try { +// interfaceException.getResponse().close(); +// } +// catch(Exception ex) { +// fail(ex.getMessage()); +// } +// } catch (Exception ex) { } -- 2.11.4.GIT