Permalink
Browse files

update tests to remove redundant variables

  • Loading branch information...
1 parent d3ac77b commit e98243806c87ba301d451cae0b7d035fa8ca65ef Albert Cheng committed Jan 11, 2013
@@ -75,8 +75,6 @@ public void listReturnsExpectedUri() throws Exception {
@Test
public void listWithQueryParametersReturnsThem() throws Exception {
MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
- queryParams.add("$top", "10");
- queryParams.add("$skip", "2");
EntityListOperation<AccessPolicyInfo> lister = AccessPolicy.list().setTop(10).setSkip(2);
@@ -19,15 +19,12 @@
import java.net.URLEncoder;
-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.EntityDeleteOperation;
import com.microsoft.windowsazure.services.media.entityoperations.EntityListOperation;
import com.microsoft.windowsazure.services.media.implementation.content.ContentKeyRestType;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
/**
* Tests for the ContentKey entity
@@ -84,9 +81,6 @@ public void listContentKeyReturnsExpectedUri() {
@Test
public void listContentKeyCanTakeQueryParameters() {
- MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
- queryParams.add("$top", "10");
- queryParams.add("$skip", "2");
EntityListOperation<ContentKeyInfo> lister = ContentKey.list().setTop(10).setSkip(2);
@@ -20,14 +20,12 @@
import java.net.URI;
import javax.mail.internet.MimeMultipart;
-import javax.ws.rs.core.MultivaluedMap;
import org.junit.Test;
import com.microsoft.windowsazure.services.core.ServiceException;
import com.microsoft.windowsazure.services.media.entityoperations.EntityListOperation;
import com.microsoft.windowsazure.services.media.entityoperations.EntityProxyData;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
/**
* Tests for the methods and factories of the Job entity.
@@ -65,10 +63,6 @@ public void JobListReturnsExpectedUri() {
@Test
public void JobListCanTakeQueryParameters() {
- MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
- queryParams.add("$top", "10");
- queryParams.add("$skip", "2");
-
EntityListOperation<JobInfo> lister = Job.list().setTop(10).setSkip(2);
assertEquals("10", lister.getQueryParameters().getFirst("$top"));
@@ -20,16 +20,13 @@
import java.net.URLEncoder;
import java.util.Date;
-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.EntityDeleteOperation;
import com.microsoft.windowsazure.services.media.entityoperations.EntityListOperation;
import com.microsoft.windowsazure.services.media.entityoperations.EntityUpdateOperation;
import com.microsoft.windowsazure.services.media.implementation.content.LocatorRestType;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
/**
* Tests for the Locator entity
@@ -139,9 +136,6 @@ public void listLocatorReturnsExpectedUri() {
@Test
public void listLocatorCanTakeQueryParameters() {
- MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
- queryParams.add("$top", "10");
- queryParams.add("$skip", "2");
EntityListOperation<LocatorInfo> lister = Locator.list().setTop(10).setSkip(2);
@@ -17,12 +17,9 @@
import static org.junit.Assert.*;
-import javax.ws.rs.core.MultivaluedMap;
-
import org.junit.Test;
import com.microsoft.windowsazure.services.media.entityoperations.EntityListOperation;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
/**
* Tests for the MediaProcessor entity
@@ -37,9 +34,6 @@ public void listMediaProcessorsReturnsExpectedUri() {
@Test
public void listMediaProcessorsCanTakeQueryParmeters() {
- MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
- queryParams.add("$top", "10");
- queryParams.add("$skip", "2");
EntityListOperation<MediaProcessorInfo> lister = MediaProcessor.list().setTop(10).setSkip(2);

0 comments on commit e982438

Please sign in to comment.