From ceacc61d16fe3aec9c805de525a79f547e607a27 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 9 Jan 2011 16:50:57 -0800 Subject: Remove useless no-op tests. (Or sometimes just useless annotations. Basically, this gets rid of every reference to dalvik.annotation.TestLevel.NOT_FEASIBLE, except the definition.) Change-Id: Ie3c1d9240f85a6237311b9282b3bc181f8af8120 --- luni/src/test/java/tests/SQLite/DatabaseTest.java | 39 +---------------------- 1 file changed, 1 insertion(+), 38 deletions(-) (limited to 'luni/src/test/java/tests/SQLite/DatabaseTest.java') diff --git a/luni/src/test/java/tests/SQLite/DatabaseTest.java b/luni/src/test/java/tests/SQLite/DatabaseTest.java index f04266b..0422d5e 100644 --- a/luni/src/test/java/tests/SQLite/DatabaseTest.java +++ b/luni/src/test/java/tests/SQLite/DatabaseTest.java @@ -171,18 +171,6 @@ public class DatabaseTest extends SQLiteTest { } /** - * @tests Database#finalize() - */ - @TestTargetNew( - level = TestLevel.NOT_FEASIBLE, - notes = "method test", - method = "finalize", - args = {} - ) - public void testFinalize() { - } - - /** * @tests {@link Database#open(String, int)}. */ @TestTargetNew( @@ -512,21 +500,6 @@ public class DatabaseTest extends SQLiteTest { * @throws Exception * @tests {@link Database#busy_handler(BusyHandler)} */ - @TestTargets({ - @TestTargetNew( - level = TestLevel.NOT_FEASIBLE, - notes = "method test fails once in a while. Cannot be sure that exception is thrown every time.", - method = "busy_handler", - args = {BusyHandler.class} - ), - @TestTargetNew( - level = TestLevel.NOT_FEASIBLE, - notes = "method test fails once in a while. Cannot be sure that exception is thrown every time.", - method = "busy", - clazz = BusyHandler.class, - args = {java.lang.String.class, int.class} - ) - }) @KnownFailure("method test fails once in a while. "+ "Cannot be sure that exception is thrown in every test execution.") public void testBusy_handler() throws SQLException, Exception { @@ -643,17 +616,7 @@ public class DatabaseTest extends SQLiteTest { } } - /** - * @throws Exception - * @throws SQLException - * @tests {@link Database#busy_timeout(int)} - */ - @TestTargetNew( - level = TestLevel.NOT_FEASIBLE, - notes = "test fails. Cannot be sure that exception is thrown every time.", - method = "busy_timeout", - args = {int.class} - ) + // test fails. Cannot be sure that exception is thrown every time. @KnownFailure("Database does not lock values") public void testBusy_timeout() throws Exception, SQLException { int counter = 0; -- cgit v1.1