mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
683 B
Java
30 lines
683 B
Java
package com.todoroo.astrid.sync;
|
|
|
|
import android.support.test.runner.AndroidJUnit4;
|
|
|
|
import com.todoroo.astrid.data.RemoteModel;
|
|
import com.todoroo.astrid.data.TagData;
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
|
|
import static junit.framework.Assert.assertFalse;
|
|
|
|
@RunWith(AndroidJUnit4.class)
|
|
public class SyncModelTest extends NewSyncTestCase {
|
|
|
|
@Test
|
|
public void testCreateTaskMakesUuid() {
|
|
Task task = createTask();
|
|
assertFalse(RemoteModel.NO_UUID.equals(task.getUUID()));
|
|
}
|
|
|
|
@Test
|
|
public void testCreateTagMakesUuid() {
|
|
TagData tag = createTagData();
|
|
assertFalse(RemoteModel.NO_UUID.equals(tag.getUUID()));
|
|
}
|
|
|
|
}
|