@@ -0,0 +1,2850 @@
+package com.xamoom.android.xamoomsdk.xamoomsdk.Resource;%0A%0A%0Aimport android.os.Parcel;%0A%0Aimport com.xamoom.android.xamoomsdk.BuildConfig;%0Aimport com.xamoom.android.xamoomsdk.Resource.Content;%0Aimport com.xamoom.android.xamoomsdk.Resource.Location;%0Aimport com.xamoom.android.xamoomsdk.Resource.Marker;%0Aimport com.xamoom.android.xamoomsdk.Resource.Spot;%0Aimport com.xamoom.android.xamoomsdk.Resource.System;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricGradleTestRunner;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport java.util.ArrayList;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static junit.framework.TestCase.assertNotNull;%0A%0A@RunWith(RobolectricGradleTestRunner.class)%0A@Config(constants = BuildConfig.class, sdk = 21, manifest = %22AndroidManifest.xml%22)%0Apublic class SpotTest %7B%0A%0A  private Spot mSpot;%0A%0A  @Before%0A  public void setup() %7B%0A    mSpot = new Spot();%0A    mSpot.setId(%22id%22);%0A    mSpot.setName(%22name%22);%0A    mSpot.setPublicImageUrl(%22www.image.url%22);%0A    mSpot.setDescription(%22description%22);%0A    Location location = new Location();%0A    location.setLongitude(1.0);%0A    location.setLatitude(2.0);%0A    mSpot.setLocation(location);%0A    ArrayList%3CString%3E tags = new ArrayList%3CString%3E();%0A    tags.add(%22tag1%22);%0A    tags.add(%22tag2%22);%0A    mSpot.setTags(tags);%0A    ArrayList%3CMarker%3E markers = new ArrayList%3C%3E();%0A    Marker marker = new Marker();%0A    marker.setId(%22id%22);%0A    markers.add(marker);%0A    mSpot.setMarkers(markers);%0A    System system = new System();%0A    system.setName(%22SystemName%22);%0A    mSpot.setSystem(system);%0A    Content content = new Content();%0A    content.setId(%22id%22);%0A    mSpot.setContent(content);%0A  %7D%0A%0A  @Test%0A  public void testConstructor() %7B%0A    Spot spot = new Spot();%0A%0A    assertNotNull(spot);%0A  %7D%0A%0A  @Test%0A  public void testParcelable() %7B%0A    Parcel parcel = Parcel.obtain();%0A    mSpot.writeToParcel(parcel, 0);%0A    parcel.setDataPosition(0);%0A    Spot createdFromParcel = Spot.CREATOR.createFromParcel(parcel);%0A%0A    assertEquals(mSpot.getId(), createdFromParcel.getId());%0A    assertEquals(mSpot.getName(), createdFromParcel.getName());%0A    assertEquals(mSpot.getPublicImageUrl(), createdFromParcel.getPublicImageUrl());%0A    assertEquals(mSpot.getDescription(), createdFromParcel.getDescription());%0A    assertEquals(mSpot.getLocation().getLatitude(), createdFromParcel.getLocation().getLatitude());%0A    assertEquals(mSpot.getLocation().getLongitude(), createdFromParcel.getLocation().getLongitude());%0A    assertEquals(mSpot.getTags(), createdFromParcel.getTags());%0A    assertEquals(mSpot.getMarkers().get(0).getId(), createdFromParcel.getMarkers().get(0).getId());%0A    assertEquals(mSpot.getSystem().getName(), createdFromParcel.getSystem().getName());%0A    assertEquals(mSpot.getContent().getId(), createdFromParcel.getContent().getId());%0A  %7D%0A%0A%7D%0A

Add spot tests