Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.7
-
Component/s: None
-
Labels:None
-
Environment:
Windows, BibleDesktop
Android, AndBible
Description
No keys are found in Dodson. Xiphos works fine but BibleDesktop and AndBible fail as described below.
I can get the list of global keys: G0001, G0002, ...
But book.contains(key) always returns false and book.getKey always returns G0002.
Here is a junit. The first few tests pass but the last 3 tests fail:
Book book = Books.installed().getBook("Dodson");
assertNotNull("Dodson not installed", book);
Key allKeys = book.getGlobalKeyList();
assertTrue("Global key list problem in Dobsons", allKeys.getCardinality()>1000);
Key firstKey = allKeys.get(0);
assertEquals("Incorrect first key", "G0001", firstKey.getName());
// all the below fail
assertEquals("Cannot getKey G0001", "G0001", book.getKey("G0001").getName()); // G0002 is returned
assertEquals("Cannot getKey G0009", "G0009", book.getKey("G0009").getName()); // G0002 is returned
assertTrue("G0001 not in Dodson", book.contains(firstKey)); // false is returned