use of blue.orchestra.blueSynthBuilder.BSBKnob in project blue by kunstmusik.
the class BSBCompletionItemTest method testReplaceWordBeforeCaret.
/**
* Test of replaceWordBeforeCaret method, of class BSBCompletionItem.
*/
@Test
public void testReplaceWordBeforeCaret() {
String replacementText = "<test>";
JTextComponent jtc = new JEditorPane();
jtc.setText("<");
jtc.setCaretPosition(1);
BSBCompletionItem instance = new BSBCompletionItem(new BSBKnob(), "test");
instance.replaceWordBeforeCaret(replacementText, jtc);
assertEquals("<test>", jtc.getText());
}
Aggregations