private void setNonCustomValue(String value, int times) { comboBox.view.listBoxGotFocus(); comboBox.listBoxValueChanged(value); assertEquals(listBox.isVisible(), true); assertEquals(textBox.isVisible(), false); verify(modelPresenter, times(times)).setListBoxModelValue(listBox, value); assertEquals(comboBox.getValue(), value); }
private void editCustomValue(String value) { comboBox.view.textBoxGotFocus(); textBox.setValue(value); comboBox.view.textBoxLostFocus(); comboBox.view.listBoxGotFocus(); assertEquals(listBox.isVisible(), true); assertEquals(textBox.isVisible(), false); String listBoxValue = this.quoteStringValues ? StringUtils.createQuotedConstant(value) : value; verify(modelPresenter).setTextBoxModelValue(textBox, listBoxValue); assertEquals(comboBox.getValue(), listBoxValue); }