X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fbin%2FCacheTest.java;h=e762dd54e9f5bd8c789b254e8bd9f117deeef8f8;hb=3e84d5cd04e35a03ae504fa3249069c41c989fbe;hp=a37370f153958ed2e64c55a96e66ba301ed5c8f7;hpb=6042ce03245faf37f550cf17511c479b554a085b;p=jalview.git diff --git a/test/jalview/bin/CacheTest.java b/test/jalview/bin/CacheTest.java index a37370f..e762dd5 100644 --- a/test/jalview/bin/CacheTest.java +++ b/test/jalview/bin/CacheTest.java @@ -1,7 +1,29 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.bin; import static org.testng.AssertJUnit.assertEquals; +import jalview.gui.JvOptionPane; + import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; @@ -12,6 +34,14 @@ import org.testng.annotations.Test; public class CacheTest { + + @BeforeClass(alwaysRun = true) + public void setUpJvOptionPane() + { + JvOptionPane.setInteractiveMode(false); + JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); + } + private Locale locale; @BeforeClass(alwaysRun = true)