X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fgui%2FFontChooserTest.java;h=57d561e043916323e7f2e48274d4227dd547374e;hb=01e36c0ce9358948c93009c93b54d6a8ec69138b;hp=355fdc333f9a32d0996a0a77283ee95c917fac5b;hpb=aeaae25a13f0a17da37a9585ce75defc47ed1bd5;p=jalview.git diff --git a/test/jalview/gui/FontChooserTest.java b/test/jalview/gui/FontChooserTest.java index 355fdc3..57d561e 100644 --- a/test/jalview/gui/FontChooserTest.java +++ b/test/jalview/gui/FontChooserTest.java @@ -24,11 +24,19 @@ import java.awt.Canvas; import java.awt.Font; import java.awt.FontMetrics; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class FontChooserTest { + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + /** * Not a real test as it runs no methods on FontChooser and makes no * assertions, but this method writes to sysout the names of any (currently