Merge pull request #351 from danikov/fix-org-client-unmarshall-exception

Fix exception by changing the return type to match
This commit is contained in:
Andrei Savu 2012-02-06 06:54:07 -08:00
commit f29c54945f
2 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,7 @@ import org.jclouds.rest.annotations.ExceptionParser;
import org.jclouds.rest.annotations.JAXBResponseParser;
import org.jclouds.rest.annotations.RequestFilters;
import org.jclouds.rest.functions.ReturnNullOnNotFoundOr404;
import org.jclouds.vcloud.director.v1_5.domain.Org;
import org.jclouds.vcloud.director.v1_5.domain.OrgList;
import org.jclouds.vcloud.director.v1_5.filters.AddVCloudAuthorizationToRequest;
@ -58,5 +59,5 @@ public interface OrgAsyncClient {
@Consumes
@JAXBResponseParser
@ExceptionParser(ReturnNullOnNotFoundOr404.class)
ListenableFuture<OrgList> getOrg(@EndpointParam URI uri);
ListenableFuture<Org> getOrg(@EndpointParam URI uri);
}

View File

@ -69,8 +69,7 @@ public class OrgClientExpectTest extends BaseVCloudDirectorRestClientExpectTest
}
// please help solve javax.xml.bind.UnmarshalException
@Test(enabled = false)
@Test
public void testWhenResponseIs2xxLoginReturnsValidOrg() {
URI orgRef = URI.create("https://vcloudbeta.bluelock.com/api/org/6f312e42-cd2b-488d-a2bb-97519cd57ed0");