JAL-3048 updated test class (not on classpath!) for code changes
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 17 Dec 2018 17:28:28 +0000 (17:28 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 17 Dec 2018 17:28:28 +0000 (17:28 +0000)
test/jalview/util/dialogrunner/DialogRunnerTest.java

index e69ae87..ec61551 100644 (file)
@@ -5,14 +5,14 @@ import org.testng.annotations.Test;
 
 public class DialogRunnerTest
 {
-  public class MockDialog implements DialogRunnerI
+  public class MockDialog implements DialogRunnerI<MockDialog>
   {
     DialogRunner<MockDialog> 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));