Address comments.

This commit is contained in:
Sandor Dornbush
2010-12-21 09:31:54 -08:00
parent fa711cf142
commit 025ea1d094
@@ -22,6 +22,7 @@ import android.test.AndroidTestCase;
/** /**
* Tests for the WaypointCreationRequest class. * Tests for the WaypointCreationRequest class.
* {@link WaypointCreationRequest}
* *
* @author Sandor Dornbush * @author Sandor Dornbush
*/ */
@@ -32,8 +33,7 @@ public class WaypointCreationRequestTest extends AndroidTestCase {
Parcel p = Parcel.obtain(); Parcel p = Parcel.obtain();
original.writeToParcel(p, 0); original.writeToParcel(p, 0);
p.setDataPosition(0); p.setDataPosition(0);
WaypointCreationRequest copy = WaypointCreationRequest copy = WaypointCreationRequest.CREATOR.createFromParcel(p);
WaypointCreationRequest.CREATOR.createFromParcel(p);
assertEquals(original.getType(), copy.getType()); assertEquals(original.getType(), copy.getType());
assertNull(copy.getName()); assertNull(copy.getName());
assertNull(copy.getDescription()); assertNull(copy.getDescription());
@@ -46,8 +46,7 @@ public class WaypointCreationRequestTest extends AndroidTestCase {
Parcel p = Parcel.obtain(); Parcel p = Parcel.obtain();
original.writeToParcel(p, 0); original.writeToParcel(p, 0);
p.setDataPosition(0); p.setDataPosition(0);
WaypointCreationRequest copy = WaypointCreationRequest copy = WaypointCreationRequest.CREATOR.createFromParcel(p);
WaypointCreationRequest.CREATOR.createFromParcel(p);
assertEquals(original.getType(), copy.getType()); assertEquals(original.getType(), copy.getType());
assertEquals("name", copy.getName()); assertEquals("name", copy.getName());
assertEquals("description", copy.getDescription()); assertEquals("description", copy.getDescription());