From: gmungoc Date: Mon, 17 Dec 2018 17:28:28 +0000 (+0000) Subject: JAL-3048 updated test class (not on classpath!) for code changes X-Git-Tag: Release_2_11_4_0~45^2~18^2~350^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=867c62c23d99dea4681aae74143996679b4c1472;p=jalview.git JAL-3048 updated test class (not on classpath!) for code changes --- diff --git a/test/jalview/util/dialogrunner/DialogRunnerTest.java b/test/jalview/util/dialogrunner/DialogRunnerTest.java index e69ae87..ec61551 100644 --- a/test/jalview/util/dialogrunner/DialogRunnerTest.java +++ b/test/jalview/util/dialogrunner/DialogRunnerTest.java @@ -5,14 +5,14 @@ import org.testng.annotations.Test; public class DialogRunnerTest { - public class MockDialog implements DialogRunnerI + public class MockDialog implements DialogRunnerI { DialogRunner runner = new DialogRunner<>(this); @Override - public MockDialog response(RunResponse action) + public MockDialog addResponse(RunResponse action) { - return runner.response(action); + return runner.addResponse(action); } public void doDialog(String resp) @@ -80,7 +80,7 @@ public class DialogRunnerTest Assert.assertFalse(dialog.runner.isRegistered(ok)); - dialog.response(ok).response(cancel).response(help).response(ineed); + dialog.addResponse(ok).addResponse(cancel).addResponse(help).addResponse(ineed); Assert.assertTrue(dialog.runner.isRegistered(ok));