From 8aa4bb8fa18994ba0a9a4195daa3f8a6e7e31f74 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Thu, 2 Feb 2012 03:32:57 -0800 Subject: [PATCH] Fix for tests. Now you can run the test suite in eclipse as well as from ant. Had to work around Android bug 23365 --- astrid/.classpath | 2 +- astrid/AndroidManifest.xml | 6 +++--- tests/build.xml | 18 +++++------------- tests/project.properties | 1 - .../astrid/reminders/NotificationTests.java | 6 ++++++ 5 files changed, 15 insertions(+), 18 deletions(-) diff --git a/astrid/.classpath b/astrid/.classpath index 7485dd131..1307ffbce 100644 --- a/astrid/.classpath +++ b/astrid/.classpath @@ -6,7 +6,7 @@ - + diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index 03b1f1981..d21efd802 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -166,9 +166,9 @@ - - - + + + diff --git a/tests/build.xml b/tests/build.xml index 8d3e6fc99..69e4e749a 100644 --- a/tests/build.xml +++ b/tests/build.xml @@ -45,22 +45,14 @@ unless="sdk.dir" /> - - - - - - - - - - + + + - + diff --git a/tests/project.properties b/tests/project.properties index 9971607fc..730e911f2 100644 --- a/tests/project.properties +++ b/tests/project.properties @@ -9,4 +9,3 @@ # Project target. target=android-14 -android.library.reference.1=../api diff --git a/tests/src/com/todoroo/astrid/reminders/NotificationTests.java b/tests/src/com/todoroo/astrid/reminders/NotificationTests.java index be35b2a7c..0c269e04f 100644 --- a/tests/src/com/todoroo/astrid/reminders/NotificationTests.java +++ b/tests/src/com/todoroo/astrid/reminders/NotificationTests.java @@ -23,6 +23,12 @@ public class NotificationTests extends DatabaseTestCase { boolean value = false; } + @Override + protected void setUp() throws Exception { + super.setUp(); + fail("fix me! i crash a lot."); + } + @Override protected void tearDown() throws Exception { Notifications.setNotificationManager(null);