X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fgui%2FFontChooserTest.java;h=57d561e043916323e7f2e48274d4227dd547374e;hb=2f6c709622e1bdabe5eb3b2420b41f2aa6ff4658;hp=a18d2572352ce4156b10a761a3ba16efcf55c799;hpb=26ce1755b5ec689580d683184f7e2d921143a0ba;p=jalview.git diff --git a/test/jalview/gui/FontChooserTest.java b/test/jalview/gui/FontChooserTest.java index a18d257..57d561e 100644 --- a/test/jalview/gui/FontChooserTest.java +++ b/test/jalview/gui/FontChooserTest.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -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