mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-24 11:01:35 -08:00
Cleanup tests for new search.
This commit is contained in:
1 parent
bbb83cc180
commit
852e5c3bbd
2 files changed
-8
No files matched your search
@@ -71,10 +71,8 @@ public class DeleteEntry extends AndroidTestCase {
|
||||
|
||||
// Verify the entries were removed from the search index
|
||||
SearchDbHelper dbHelp = new SearchDbHelper(ctx);
|
||||
dbHelp.open();
|
||||
PwGroup results1 = dbHelp.search(db, ENTRY1_NAME);
|
||||
PwGroup results2 = dbHelp.search(db, ENTRY2_NAME);
|
||||
dbHelp.close();
|
||||
|
||||
assertEquals("Entry1 was not removed from the search results", 0, results1.childEntries.size());
|
||||
assertEquals("Entry2 was not removed from the search results", 0, results2.childEntries.size());
|
||||
|
||||
@@ -42,8 +42,6 @@ public class SearchTest extends AndroidTestCase {
|
||||
}
|
||||
|
||||
public void testSearch() {
|
||||
mDb.indexBuilt = false;
|
||||
mDb.buildSearchIndex(getContext());
|
||||
PwGroup results = mDb.Search("Amazon");
|
||||
assertTrue("Search result not found.", results.childEntries.size() > 0);
|
||||
|
||||
@@ -51,8 +49,6 @@ public class SearchTest extends AndroidTestCase {
|
||||
|
||||
public void testBackupIncluded() {
|
||||
updateOmitSetting(false);
|
||||
mDb.indexBuilt = false;
|
||||
mDb.buildSearchIndex(getContext());
|
||||
PwGroup results = mDb.Search("BackupOnly");
|
||||
|
||||
assertTrue("Search result not found.", results.childEntries.size() > 0);
|
||||
@@ -60,8 +56,6 @@ public class SearchTest extends AndroidTestCase {
|
||||
|
||||
public void testBackupExcluded() {
|
||||
updateOmitSetting(true);
|
||||
mDb.indexBuilt = false;
|
||||
mDb.buildSearchIndex(getContext());
|
||||
PwGroup results = mDb.Search("BackupOnly");
|
||||
|
||||
assertFalse("Search result found, but should not have been.", results.childEntries.size() > 0);
|
||||
|
||||
Reference in new issue
Block a user