Skip to content

Instantly share code, notes, and snippets.

Phil Goodwin pgoodwin

Block or report user

Report or block pgoodwin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pgoodwin
pgoodwin / gist:421d80af783087f6848f
Created Jul 9, 2014
An extension of RobolectricTestRunner that overrides a binding in the test module. The runner specializes a TestLifecycle which prepares the injector with the new module.
View gist:421d80af783087f6848f
package com.pivotallabs.post_followers.test_util;
import com.google.inject.AbstractModule;
import com.google.inject.Injector;
import com.google.inject.util.Modules;
import com.pivotallabs.post_followers.api.PostFollowersService;
import com.pivotallabs.post_followers.injection.PostFollowersModule;
import com.pivotallabs.post_followers.injection.PostFollowersTestModule;
import org.junit.runners.model.InitializationError;
import org.robolectric.DefaultTestLifecycle;
You can’t perform that action at this time.