From 98d7187d554dc72c8a7e26933032d98f30d6ce36 Mon Sep 17 00:00:00 2001 From: Peter S Date: Wed, 6 May 2020 14:38:41 +0800 Subject: [PATCH] Remove invalid tests --- .../notes/persistence/NotesDatabaseTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java b/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java index 4bdd7c18..7409ca75 100644 --- a/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java +++ b/app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java @@ -156,16 +156,16 @@ public class NotesDatabaseTest { } assertTrue(exitFlag); - // TODO: The second parameter is annotated as @NonNull. This test is invalid. Please remove it - categories = db.searchCategories(account.getId(), null); - exitFlag = false; - for (NavigationAdapter.NavigationItem categoryItem : categories) { - Log.i("Test_04_searchCategories_Item_Diary", String.format("%s | %s | %d | %d", categoryItem.id, categoryItem.label, categoryItem.count, categoryItem.icon)); - if (categoryItem.label.equals("Diary")) { - exitFlag = true; - } - } - assertTrue(exitFlag); +// // The second parameter is annotated as @NonNull. This test is invalid. Please remove it +// categories = db.searchCategories(account.getId(), null); +// exitFlag = false; +// for (NavigationAdapter.NavigationItem categoryItem : categories) { +// Log.i("Test_04_searchCategories_Item_Diary", String.format("%s | %s | %d | %d", categoryItem.id, categoryItem.label, categoryItem.count, categoryItem.icon)); +// if (categoryItem.label.equals("Diary")) { +// exitFlag = true; +// } +// } +// assertTrue(exitFlag); categories = db.searchCategories(account.getId(), "Mike Chester Wang"); exitFlag = false;