blob: 5ecd2cb2d159030643dc9868e1bbc3c754153fc2 [file] [log] [blame]
package org.eclipse.swtbot.generator.jdt.test;
import static org.eclipse.swtbot.swt.finder.waits.Conditions.shellIsActive;
import org.junit.Assert;
import org.junit.Test;
public class RecordComboTest extends AbstractGeneratorTest {
private String combo = "bot.comboBox().setText(\"kikoo\");";
private String text = "publicclassFirstClass{publicvoidfirstMethod(){";
@Test
public void testModifyCombo() {
bot.waitUntil(shellIsActive("test shell"),2000);
this.bot.comboBox().setText("kikoo");
flushEvents();
String fixedText = this.bot.shell("SWTBot Test Recorder").bot().styledText().getText().replaceAll("\\s", "");
Assert.assertEquals(text+combo+"}}", fixedText);
}
}