Guest User

Untitled

a guest
Jan 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import android.os.Parcel
  2. import android.support.test.runner.AndroidJUnit4
  3. import org.assertj.core.api.Assertions.assertThat
  4. import org.junit.Test
  5. import org.junit.runner.RunWith
  6.  
  7. @RunWith(AndroidJUnit4::class)
  8. class MovieTest {
  9.  
  10. @Test
  11. fun verify_parceling() {
  12. val movie = Movie("Infinity War")
  13.  
  14. movie.testParcel()
  15. .apply {
  16. assertThat(this).isEqualTo(movie)
  17. assertThat(this).isNotSameAs(movie)
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment