@Override protected void setUp() throws Exception { super.setUp(); // Set a mock thread pool executor so we can run these tests knowing that doInBackground // has not been run. Fabric.with( new Fabric.Builder(getContext()) .threadPoolExecutor(mock(PriorityThreadPoolExecutor.class)) .kits( new TwitterCore( new TwitterAuthConfig(TestFixtures.CONSUMER_KEY, TestFixtures.CONSUMER_SECRET)), new TweetUi()) .build()); }
@Override protected void tearDown() throws Exception { FabricTestUtils.resetFabric(); super.tearDown(); }