Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing unused MultivaluedMap references in tests

See #609
  • Loading branch information...
commit 650034860ae1ef0976222f5e545a7c0ae8b77ada 1 parent 0c279ea
@jcookems jcookems authored
View
5 ...oft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/models/AccessPolicyEntityTest.java
@@ -20,15 +20,12 @@
import java.net.URLEncoder;
import java.util.EnumSet;
-import javax.ws.rs.core.MultivaluedMap;
-
import org.junit.Test;
import com.microsoft.windowsazure.services.media.entityoperations.EntityCreateOperation;
import com.microsoft.windowsazure.services.media.entityoperations.EntityGetOperation;
import com.microsoft.windowsazure.services.media.entityoperations.EntityListOperation;
import com.microsoft.windowsazure.services.media.implementation.content.AccessPolicyType;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
/**
* Tests for access policy entity
@@ -74,8 +71,6 @@ public void listReturnsExpectedUri() throws Exception {
@Test
public void listWithQueryParametersReturnsThem() throws Exception {
- MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
-
EntityListOperation<AccessPolicyInfo> lister = AccessPolicy.list().setTop(10).setSkip(2);
assertEquals("10", lister.getQueryParameters().getFirst("$top"));
View
6 microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/models/AssetEntityTest.java
@@ -19,7 +19,6 @@
import java.net.URLEncoder;
-import javax.ws.rs.core.MultivaluedMap;
import javax.xml.bind.JAXBElement;
import javax.xml.namespace.QName;
@@ -35,7 +34,6 @@
import com.microsoft.windowsazure.services.media.implementation.content.AssetType;
import com.microsoft.windowsazure.services.media.implementation.content.Constants;
import com.microsoft.windowsazure.services.media.implementation.content.JobType;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
/**
* Tests for the methods and factories of the Asset entity.
@@ -99,10 +97,6 @@ public void assetListReturnsExpectedUri() {
@Test
public void assetListCanTakeQueryParameters() {
- MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
- queryParams.add("$top", "10");
- queryParams.add("$skip", "2");
-
EntityListOperation<AssetInfo> lister = Asset.list().setTop(10).setSkip(2);
assertEquals("10", lister.getQueryParameters().getFirst("$top"));
Please sign in to comment.
Something went wrong with that request. Please try again.