am 9f2034c3: (-s ours) am 93eaf5c4: Merge "Process response bodies only when present"
* commit '9f2034c336f699976d007006a7ac1f8b501f2294':
diff --git a/pom.xml b/pom.xml
index 6b8072e..7c37e0f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,7 +31,7 @@
<dependency>
<groupId>org.robolectric</groupId>
<artifactId>robolectric</artifactId>
- <version>2.2</version>
+ <version>3.0</version>
<scope>test</scope>
</dependency>
<dependency>
diff --git a/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java b/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java
index 8bd98aa..917ddb4 100644
--- a/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java
+++ b/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java
@@ -8,7 +8,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
-import org.robolectric.Robolectric;
+import org.robolectric.RuntimeEnvironment;
import org.robolectric.RobolectricTestRunner;
import static org.junit.Assert.*;
@@ -20,7 +20,7 @@
@Before public void setUp() throws Exception {
mMockImageLoader = new MockImageLoader();
- mNIV = new NetworkImageView(Robolectric.application);
+ mNIV = new NetworkImageView(RuntimeEnvironment.application);
}
@Test public void setImageUrl_requestsImage() {