public void testEntireFieldCompleter() {
AbstractAutoCompleter autoCompleter = AutoCompleterFactory.getFor(ENTIRE_FIELD);
for (BibtexEntry entry : getDatabse().getEntries()) {
autoCompleter.addBibtexEntry(entry);
}
assertEquals("Personal Ubiquitous Comput.", autoCompleter.complete("Personal Ubiquitous Comput.")[0]);
assertEquals(1, autoCompleter.complete("Personal Ubiquitous Comput.").length);
assertEquals("Personal Ubiquitous Comput.", autoCompleter.complete("Pers")[0]);
assertEquals(1, autoCompleter.complete("Pers").length);
assertEquals(0, autoCompleter.complete("osta").length);
assertEquals(0, autoCompleter.complete("osta").length);