Merge remote-tracking branch 'origin/GT-3079-ghidravore_add_to_program'

This commit is contained in:
Ryan Kurtz 2019-08-14 12:29:29 -04:00
commit aba5a2b672
19 changed files with 132 additions and 99 deletions

View file

@ -15,7 +15,7 @@
*/
package generic.test;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.*;
import java.awt.*;
import java.awt.event.*;
@ -661,10 +661,10 @@ public abstract class AbstractGenericTest extends AbstractGTest {
if (button == null) {
throw new AssertionError("Couldn't find button " + buttonText + ".");
}
if (!button.isShowing()) {
if (!runSwing(() -> button.isShowing())) {
throw new AssertionError("Button " + buttonText + " is not showing.");
}
if (!button.isEnabled()) {
if (!runSwing(() -> button.isEnabled())) {
throw new AssertionError("Button " + buttonText + " is not enabled.");
}
pressButton(button, waitForCompletion);
@ -700,10 +700,10 @@ public abstract class AbstractGenericTest extends AbstractGTest {
if (button == null) {
throw new AssertionError("Couldn't find button " + buttonName + ".");
}
if (!button.isVisible()) {
if (!runSwing(() -> button.isShowing())) {
throw new AssertionError("Button " + buttonName + " is not showing.");
}
if (!button.isEnabled()) {
if (!runSwing(() -> button.isEnabled())) {
throw new AssertionError("Button " + buttonName + " is not enabled.");
}
pressButton(button, waitForCompletion);