Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import android.os.Parcel
- import android.support.test.runner.AndroidJUnit4
- import org.assertj.core.api.Assertions.assertThat
- import org.junit.Test
- import org.junit.runner.RunWith
- @RunWith(AndroidJUnit4::class)
- class MovieTest {
- @Test
- fun verify_parceling() {
- val movie = Movie("Infinity War")
- movie.testParcel()
- .apply {
- assertThat(this).isEqualTo(movie)
- assertThat(this).isNotSameAs(movie)
- }
- }
- }
Add Comment
Please, Sign In to add comment