Skip to content

Instantly share code, notes, and snippets.

@samueljseay
Created January 17, 2019 01:59
Show Gist options
  • Save samueljseay/c59179c1321fcc80c2c1f34793a573f4 to your computer and use it in GitHub Desktop.
Save samueljseay/c59179c1321fcc80c2c1f34793a573f4 to your computer and use it in GitHub Desktop.
LithoActivityTestRule error
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.facebook.litho.testing.espresso.LithoActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class CardFeedActivityTest {
@Rule
public LithoActivityTestRule<MyActivity> mActivity =
new LithoActivityTestRule<>(MyActivity.class);
@Test
public void itWorks() {
System.out.println("ok");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment