Enable some tests

pull/467/head
Alex Baker 8 years ago
parent 4dbed209ee
commit 6536db2f9e

@ -12,7 +12,7 @@ buildscript {
dependencies {
classpath 'com.google.guava:guava:19.0'
classpath 'com.android.tools.build:gradle:2.2.0-beta2'
classpath 'com.android.tools.build:gradle:2.2.0-beta3'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2'
}
}

@ -14,7 +14,6 @@ import com.todoroo.astrid.data.Metadata;
import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.test.DatabaseTestCase;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.injection.TestComponent;
@ -99,7 +98,6 @@ public class MetadataDaoTests extends DatabaseTestCase {
/**
* Test metadata bound to task
*/
@Ignore
@Test
public void testMetadataConditions() {
// create "happy"

@ -14,7 +14,6 @@ import com.todoroo.astrid.dao.TaskDao.TaskCriteria;
import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.test.DatabaseTestCase;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.injection.TestComponent;
@ -42,7 +41,6 @@ public class TaskDaoTests extends DatabaseTestCase {
/**
* Test basic task creation, fetch, and save
*/
@Ignore
@Test
public void testTaskCreation() {
assertEquals(0, taskDao.toList(Query.select(IDS)).size());
@ -80,7 +78,6 @@ public class TaskDaoTests extends DatabaseTestCase {
/**
* Test various task fetch conditions
*/
@Ignore
@Test
public void testTaskConditions() {
// create normal task
@ -131,7 +128,6 @@ public class TaskDaoTests extends DatabaseTestCase {
/**
* Test task deletion
*/
@Ignore
@Test
public void testTDeletion() {
assertEquals(0, taskDao.toList(Query.select(IDS)).size());
@ -151,7 +147,6 @@ public class TaskDaoTests extends DatabaseTestCase {
/**
* Test save without prior create doesn't work
*/
@Ignore
@Test
public void testSaveWithoutCreate() {
// try to save task "happy"
@ -167,7 +162,6 @@ public class TaskDaoTests extends DatabaseTestCase {
/**
* Test passing invalid task indices to various things
*/
@Ignore
@Test
public void testInvalidIndex() {
assertEquals(0, taskDao.toList(Query.select(IDS)).size());

@ -14,7 +14,6 @@ import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.reminders.ReminderService.AlarmScheduler;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.injection.InjectingTestCase;
@ -91,7 +90,6 @@ public class ReminderServiceTest extends InjectingTestCase {
assertTrue(((AlarmExpected) reminderService.getScheduler()).alarmCreated);
}
@Ignore
@Test
public void testRandom() {
// test random

@ -101,7 +101,6 @@ public class NewRepeatTests extends DatabaseTestCase {
* Tests for no sync
*/
@Ignore
@Test
public void testNoRepeat() {
Task t = new Task();

@ -6,7 +6,6 @@ import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.data.TaskListMetadata;
import com.todoroo.astrid.service.TaskService;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.injection.TestComponent;
@ -59,7 +58,6 @@ public class SubtasksHelperTest extends SubtasksTestCase {
// Default order: "[-1, [1, 2, [3, 4]], 5, 6]"
private static String EXPECTED_REMOTE = "[\"-1\", [\"6\", \"4\", [\"3\", \"1\"]], \"2\", \"5\"]".replaceAll("\\s", "");
@Ignore
@Test
public void testLocalToRemoteIdMapping() {
String mapped = SubtasksHelper.convertTreeToRemoteIds(taskService, DEFAULT_SERIALIZED_TREE).replaceAll("\\s", "");

@ -14,7 +14,6 @@ import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.service.TaskService;
import com.todoroo.astrid.test.DatabaseTestCase;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.injection.TestComponent;
@ -95,7 +94,6 @@ public class GtasksIndentActionTest extends DatabaseTestCase {
thenExpectIndentationLevel(0);
}
@Ignore
@Test
public void testIndentWithChildren() {
taskWithMetadata(0, 0);
@ -132,7 +130,6 @@ public class GtasksIndentActionTest extends DatabaseTestCase {
thenExpectIndentationLevel(sibling, 0);
}
@Ignore
@Test
public void testIndentWithChildrensChildren() {
taskWithMetadata(0, 0);

@ -52,7 +52,6 @@ public class GtasksTaskListUpdaterTest extends DatabaseTestCase {
thenExpectParent(tasks[4], null);
}
@Ignore
@Test
public void testBasicSiblingComputation() {
Task[] tasks = givenTasksABCDE();
@ -78,7 +77,6 @@ public class GtasksTaskListUpdaterTest extends DatabaseTestCase {
thenExpectMetadataParent(tasks[4], null);
}
@Ignore
@Test
public void testMetadataOrderComputation() {
Task[] tasks = givenTasksABCDE();

@ -14,7 +14,6 @@ import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.service.TaskService;
import com.todoroo.astrid.test.DatabaseTestCase;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.injection.TestComponent;
@ -52,7 +51,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
* F
*/
@Ignore
@Test
public void testMoveDownFromListBottom() {
givenTasksABCDEF();
@ -63,7 +61,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(F, 5, 0);
}
@Ignore
@Test
public void testMoveDownToListBottom() {
givenTasksABCDEF();
@ -74,7 +71,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(F, 4, 0);
}
@Ignore
@Test
public void testMoveUpSimple() {
givenTasksABCDEF();
@ -85,7 +81,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(F, 4, 0);
}
@Ignore
@Test
public void testMoveUpWithSubtasks() {
givenTasksABCDEF();
@ -105,7 +100,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(D, 2, 2);
}
@Ignore
@Test
public void testMoveDownThroughSubtasks() {
givenTasksABCDEF();
@ -126,7 +120,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(D, 2, 2);
}
@Ignore
@Test
public void testMoveUpAboveParent() {
givenTasksABCDEF();
@ -147,7 +140,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(C, 2, 1);
}
@Ignore
@Test
public void testMoveDownWithChildren() {
givenTasksABCDEF();
@ -170,7 +162,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(E, 2, 0);
}
@Ignore
@Test
public void testMoveDownIndentingTwice() {
givenTasksABCDEF();
@ -192,7 +183,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(E, 3, 0);
}
@Ignore
@Test
public void testMoveUpMultiple() {
givenTasksABCDEF();
@ -212,7 +202,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(D, 1, 1);
}
@Ignore
@Test
public void testMoveUpIntoSublist() {
givenTasksABCDEF();
@ -235,7 +224,6 @@ public class GtasksTaskMovingTest extends DatabaseTestCase {
thenExpectMetadataOrderAndIndent(F, 3, 2);
}
@Ignore
@Test
public void testMoveDownMultiple() {
givenTasksABCDEF();

@ -4,7 +4,6 @@ import android.support.test.runner.AndroidJUnit4;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.tasks.time.DateTime;
@ -60,7 +59,6 @@ public class GtasksApiUtilitiesTest {
unixTimeToGtasksDueDate(now.getMillis()).getValue());
}
@Ignore
@Test
public void testConvertGoogleDueDateToUnixTime() {
com.google.api.client.util.DateTime googleDueDate =

Loading…
Cancel
Save