X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FBackupFilesTest.java;h=7f04749521e667902f229217c581dd5f3251cced;hb=a7169b1c72607f3c9357195b4999869650a2a891;hp=e735ef6ef825b7a251fa516e28f81368b4f5012c;hpb=8827689f573a5213e5f05c8218edbe8cdf9b7ec8;p=jalview.git diff --git a/test/jalview/io/BackupFilesTest.java b/test/jalview/io/BackupFilesTest.java index e735ef6..7f04749 100644 --- a/test/jalview/io/BackupFilesTest.java +++ b/test/jalview/io/BackupFilesTest.java @@ -1,3 +1,23 @@ +/* + * 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.io; import java.io.File; @@ -84,7 +104,8 @@ public class BackupFilesTest // check no backup files File[] backupFiles = getBackupFiles(); - Assert.assertTrue(backupFiles.length == 0); + Assert.assertEquals(backupFiles.length, 0, "Number of backup files is " + + backupFiles.length + ", not " + 0); } // save with no numbers in the backup file names @@ -312,7 +333,8 @@ public class BackupFilesTest cleanupTmpFiles(newFile, suffix, digits); } - private void cleanupTmpFiles(String file, String mysuffix, int mydigits) + protected static void cleanupTmpFiles(String file, String mysuffix, + int mydigits) { File newfile = new File(file); if (newfile.exists())