Skip to content

Commit

Permalink
Merge "Migrated from Robolectric 2.2 to 3.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
wrkben authored and Gerrit Code Review committed Aug 24, 2015
2 parents b4d7d29 + b05d058 commit 2f9a77c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand All @@ -20,7 +20,7 @@ public class NetworkImageViewTest {

@Before public void setUp() throws Exception {
mMockImageLoader = new MockImageLoader();
mNIV = new NetworkImageView(Robolectric.application);
mNIV = new NetworkImageView(RuntimeEnvironment.application);
}

@Test public void setImageUrl_requestsImage() {
Expand Down

0 comments on commit 2f9a77c

Please sign in to comment.