Author: max.andersen(a)jboss.com
Date: 2009-05-20 05:10:40 -0400 (Wed, 20 May 2009)
New Revision: 15358
Modified:
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/test/HttpUtilTest.java
Log:
Removed fail handling which were hiding the exception to in junittests runs.
https://jira.jboss.org/jira/browse/JBIDE-4338
Modified:
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/test/HttpUtilTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/test/HttpUtilTest.java 2009-05-20
08:29:10 UTC (rev 15357)
+++
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/util/test/HttpUtilTest.java 2009-05-20
09:10:40 UTC (rev 15358)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.common.util.test;
+import java.io.IOException;
+
import org.apache.commons.httpclient.HttpClient;
import org.jboss.tools.common.util.HttpUtil;
@@ -17,12 +19,8 @@
public class HttpUtilTest extends TestCase {
- public void testCreateHttpClient() {
- try {
- HttpClient client = HttpUtil.createHttpClient("http://www.jboss.com");
- assertNotNull("HTTP Client object wasn't created", client);
- } catch (Exception e) {
- fail("Error occurs when creating HTTP Client object");
- }
+ public void testCreateHttpClient() throws IOException {
+ HttpClient client = HttpUtil.createHttpClient("http://www.jboss.com");
+ assertNotNull("HTTP Client object wasn't created", client);
}
}