Examples of indexContainsWord()


Examples of net.sf.jabref.autocompleter.AbstractAutoCompleter.indexContainsWord()

    EntryEditor editor = new EntryEditor(jabref.jrf, jabref.jrf.basePanel(), bibtexEntry);
    // perform action ...
    editor.storeFieldAction.actionPerformed(new ActionEvent(authorTextField, 0, ""));
    // test content of stored words in autocompleter ...
    AbstractAutoCompleter autoCompleter = jabref.jrf.basePanel().getAutoCompleter("author");
    assertTrue(autoCompleter.indexContainsWord("Hans Meiser"));
    assertTrue(autoCompleter.indexContainsWord("Meiser, Hans"));

    TestUtils.closeJabRef();
  }
View Full Code Here

Examples of net.sf.jabref.autocompleter.AbstractAutoCompleter.indexContainsWord()

    // perform action ...
    editor.storeFieldAction.actionPerformed(new ActionEvent(authorTextField, 0, ""));
    // test content of stored words in autocompleter ...
    AbstractAutoCompleter autoCompleter = jabref.jrf.basePanel().getAutoCompleter("author");
    assertTrue(autoCompleter.indexContainsWord("Hans Meiser"));
    assertTrue(autoCompleter.indexContainsWord("Meiser, Hans"));

    TestUtils.closeJabRef();
  }

  public void testEntryEditorForFieldAnotherAutoCompleter() {
View Full Code Here

Examples of net.sf.jabref.autocompleter.AbstractAutoCompleter.indexContainsWord()

    EntryEditor editor = new EntryEditor(jabref.jrf, jabref.jrf.basePanel(), bibtexEntry);
    // perform action ...
    editor.storeFieldAction.actionPerformed(new ActionEvent(authorTextField, 0, ""));
    // test content of stored words in autocompleter ...
    AbstractAutoCompleter autoCompleter = jabref.jrf.basePanel().getAutoCompleter("journal");
    assertTrue(autoCompleter.indexContainsWord("New Testtext"));

    TestUtils.closeJabRef();
  }

  private BibtexDatabase getDatabse() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.