X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fgui%2FFontChooserTest.java;h=57d561e043916323e7f2e48274d4227dd547374e;hb=648e4d6232f149d6844a2a6b5c2613938a917f2f;hp=2b3f9de4ff1532f36178688c99d5f7740a007ade;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/test/jalview/gui/FontChooserTest.java b/test/jalview/gui/FontChooserTest.java index 2b3f9de..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,18 +24,26 @@ 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 * available, plain) fonts and point sizes that would be rejected by Jalview's * FontChooser as having an I-width of less than 1.0. */ - @Test(groups = { "Functional" }) + @Test(groups = { "Functional" }, enabled = false) public void dumpInvalidFonts() { String[] fonts = java.awt.GraphicsEnvironment