YamahaDX7VoiceSingleDriver.class, listener);
guiHandler.addPatchMetaData(library, 0, GuiHandler.FIELD1, rolandData1);
guiHandler.addPatchMetaData(library, 1, GuiHandler.FIELD1, yamahaData1);
ISearchHandler searchHandler = guiHandler.openSearchDialog(library);
searchHandler.setField(SearchFields.PATCH_NAME);
searchHandler.findFirst("INIT");
table.requireSelectedRows(1);
searchHandler.findNext();
GenericTypeMatcher<JDialog> matcher =
new GenericTypeMatcher<JDialog>(JDialog.class) {
@Override
protected boolean isMatching(JDialog component) {
return "Search Complete".equals(component.getTitle())
&& component.isShowing();
}
};
DialogFixture dialog = testFrame.dialog(matcher);
guiHandler.closeDialog(dialog);
searchHandler.setField(SearchFields.FIELD1);
searchHandler.findFirst("Roland");
table.requireSelectedRows(0);
searchHandler.setField(SearchFields.ALL_FIELDS);
searchHandler.findFirst("Yamaha");
table.requireSelectedRows(1);
searchHandler.findFirst("Testingtesting");
dialog = testFrame.dialog(matcher);
guiHandler.closeDialog(dialog);
searchHandler.cancel();
guiHandler.closeLibrary(library);
guiHandler.uninstallDevice(null);
}