Author: adietish
Date: 2011-05-23 04:00:09 -0400 (Mon, 23 May 2011)
New Revision: 31427
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/DeltaCloudMockIntegrationTest.java
Log:
[JBIDE-8978] fixed transport to throw specific errors when the server responds with 401
(was: reported IOException)
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/DeltaCloudMockIntegrationTest.java
===================================================================
---
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/DeltaCloudMockIntegrationTest.java 2011-05-23
07:58:08 UTC (rev 31426)
+++
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/DeltaCloudMockIntegrationTest.java 2011-05-23
08:00:09 UTC (rev 31427)
@@ -51,7 +51,7 @@
@Test
public void testConnectionReportsFalseOnAuthFailure() throws MalformedURLException,
DeltaCloudClientException,
DeltaCloudException {
- ServerFake serverFake = setupServerFake("HTTP/1.1 401 Forbidden\n\n\n");
+ ServerFake serverFake = setupServerFake("HTTP/1.1 401 Unauthorized\n\n\n");
try {
DeltaCloud deltaCloud = new DeltaCloudFake(
"http://localhost:" + ServerFake.DEFAULT_PORT,