import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.runner.RunWith;
import com.edallagnol.parcelabletester.ParcelableTester;
@RunWith(AndroidJUnit4.class)
public class ParcelableTest {
@org.junit.Test
public void test() throws Exception {
new ParcelableTester(InstrumentationRegistry.getTargetContext())
.testAllInAppPackage();
}
}
Project build.gradle:
allprojects { repositories { ... // com.edallagnol maven { url "https://mymavenrepo.com/repo/Ghd1bN1WIPA0LBBLKxW8/" } } }
Module build.gradle:
dependencies { implementation 'com.edallagnol:parcelable-tester-annotations:0.4' ... androidTestImplementation 'com.edallagnol:parcelable-tester:0.4' }