fixed bad test

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1976 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-10-14 01:12:45 +00:00
parent 13f3bc422f
commit 124bf457f1
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import org.jclouds.rest.internal.GeneratedHttpRequest;
import org.jclouds.rest.internal.RuntimeDelegateImpl; import org.jclouds.rest.internal.RuntimeDelegateImpl;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.ImmutableMap;
/** /**
* Tests behavior of {@code BindMetadataToQueryParams} * Tests behavior of {@code BindMetadataToQueryParams}
@ -41,7 +41,7 @@ public class BindMetadataToQueryParamsTest {
GeneratedHttpRequest<?> request = createMock(GeneratedHttpRequest.class); GeneratedHttpRequest<?> request = createMock(GeneratedHttpRequest.class);
request.replaceQueryParam("metadata", "imagename:foo", "serverid:2"); request.replaceQueryParam("metadata", "imagename:foo", "serverid:2");
replay(request); replay(request);
binder.bindToRequest(request, ImmutableMultimap.of("imageName", "foo", "serverId", "2")); binder.bindToRequest(request, ImmutableMap.of("imageName", "foo", "serverId", "2"));
} }
@Test(expectedExceptions = { NullPointerException.class, IllegalStateException.class }) @Test(expectedExceptions = { NullPointerException.class, IllegalStateException.class })