Tests - updated test to handle html-escaped '&'

This commit is contained in:
dragonmacher 2020-03-02 17:25:33 -05:00
parent f0fb31b9c5
commit e75b1cd6db

View File

@ -101,10 +101,12 @@ public class KeyBindingsTest extends AbstractGhidraHeadedIntegrationTest {
selectRowForAction(action1);
String actualText = getText(statusPane);
String description = action1.getDescription();
String escaped = description.replaceAll("&", "&");
assertTrue(
"Description is not updated for action '" + action1.getName() + "'; instead the " +
"description is '" + actualText + "'",
actualText.indexOf(action1.getDescription()) != -1);
"description is '" + actualText + "'\n\tDescrption: " + escaped,
actualText.indexOf(escaped) != -1);
}
@Test