X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fschemes%2FScoreMatrixPrinter.java;fp=test%2Fjalview%2Fschemes%2FScoreMatrixPrinter.java;h=0000000000000000000000000000000000000000;hb=f46c404585087d8937c48504bfcff716440d5186;hp=aed4086dd5c332735a983e5fb64860a568ce2c19;hpb=c650abb5e4572557e1d175ecc72a0f7c8892202e;p=jalview.git diff --git a/test/jalview/schemes/ScoreMatrixPrinter.java b/test/jalview/schemes/ScoreMatrixPrinter.java deleted file mode 100644 index aed4086..0000000 --- a/test/jalview/schemes/ScoreMatrixPrinter.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.schemes; - -import jalview.analysis.scoremodels.ScoreMatrix; -import jalview.analysis.scoremodels.ScoreModels; -import jalview.api.analysis.DistanceModelI; -import jalview.gui.JvOptionPane; - -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; - -public class ScoreMatrixPrinter -{ - - @BeforeClass(alwaysRun = true) - public void setUpJvOptionPane() - { - JvOptionPane.setInteractiveMode(false); - JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); - } - - @Test(groups = { "Functional" }) - public void printAllMatrices() - { - for (DistanceModelI sm : ScoreModels.getInstance().getModels()) - { - System.out.println("Matrix " + sm.getName()); - System.out.println(sm.toString()); - } - } - - @Test(groups = { "Functional" }) - public void printHTMLMatrices() - { - for (DistanceModelI sm : ScoreModels.getInstance().getModels()) - { - if (sm instanceof ScoreMatrix) - { - System.out.println("Matrix " + sm.getName()); - System.out.println(((ScoreMatrix) sm).outputMatrix(true)); - } - } - } - -}