Class ShadowParcel

java.lang.Object
org.robolectric.shadows.ShadowParcel

@Implements(value=android.os.Parcel.class,
            looseSignatures=true)
public class ShadowParcel
extends Object
Robolectric's Parcel pretends to be backed by a byte buffer, closely matching Parcel's position, size, and capacity behavior. However, its internal pure-Java representation is strongly typed, to detect non-portable code and common testing mistakes. It may throw IllegalArgumentException or IllegalStateException for error-prone behavior normal Parcel tolerates.