@@ -0,0 +1,2448 @@
+/*%0A * Copyright (c) 2015 Ushahidi Inc%0A *%0A * This program is free software: you can redistribute it and/or modify it under%0A *  the terms of the GNU Affero General Public License as published by the Free%0A *  Software Foundation, either version 3 of the License, or (at your option)%0A *  any later version.%0A *%0A *  This program is distributed in the hope that it will be useful, but WITHOUT%0A *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A *  FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.%0A *%0A *  You should have received a copy of the GNU Affero General Public License%0A *  along with this program in the file LICENSE-AGPL. If not, see%0A *  https://www.gnu.org/licenses/agpl-3.0.html%0A */%0A%0Apackage com.ushahidi.android.data.entity;%0A%0Aimport com.ushahidi.android.BuildConfig;%0Aimport com.ushahidi.android.domain.entity.Deployment;%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 static com.google.common.truth.Truth.assertThat;%0A%0A/**%0A * Tests %7B@link DeploymentEntity%7D%0A *%0A * @author Ushahidi Team %3Cteam@ushahidi.com%3E%0A */%0A@RunWith(RobolectricGradleTestRunner.class)%0A@Config(sdk = 21, constants = BuildConfig.class)%0Apublic class DeploymentEntityTest %7B%0A%0A    private DeploymentEntity mDeploymentEntity;%0A%0A    private static final Long DUMMY_ID = 1l;%0A%0A    private static final String DUMMY_TITLE = %22Dummy Deployment Title%22;%0A%0A    private static final DeploymentEntity.Status DUMMY_STATUS = DeploymentEntity.Status.DEACTIVATED;%0A%0A    private static final String DUMMY_URL = %22http://deployment.com%22;%0A%0A    @Before%0A    public void setUp() %7B%0A        mDeploymentEntity = new DeploymentEntity();%0A    %7D%0A%0A    @Test%0A    public void shouldSetDeploymentEntityProperities() %7B%0A        mDeploymentEntity._id = DUMMY_ID;%0A        mDeploymentEntity.setTitle(DUMMY_TITLE);%0A        mDeploymentEntity.setStatus(DUMMY_STATUS);%0A        mDeploymentEntity.setUrl(DUMMY_URL);%0A%0A        assertThat(mDeploymentEntity).isNotNull();%0A        assertThat(mDeploymentEntity).isInstanceOf(Deployment.class);%0A        assertThat(mDeploymentEntity._id).isEqualTo(DUMMY_ID);%0A        assertThat(mDeploymentEntity.getTitle()).isSameAs(DUMMY_TITLE);%0A        assertThat(mDeploymentEntity.getStatus()).isEqualTo(DUMMY_STATUS);%0A        assertThat(mDeploymentEntity.getUrl()).isEqualTo(DUMMY_URL);%0A    %7D%0A%7D%0A

Add test for deployment entity