From f81f45cd35b2ae7401265b9e826fba2d96451315 Mon Sep 17 00:00:00 2001 From: James Procter Date: Tue, 12 Dec 2023 12:36:36 +0000 Subject: [PATCH] JAL-4353 fix assert that successive test output files get bigger in structureImageOutputTest and argFilesGlobAndSubstitutionsTest --- test/jalview/bin/CommandsTest.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/jalview/bin/CommandsTest.java b/test/jalview/bin/CommandsTest.java index 42b93a9..b47a68d 100644 --- a/test/jalview/bin/CommandsTest.java +++ b/test/jalview/bin/CommandsTest.java @@ -190,9 +190,13 @@ public class CommandsTest Assert.assertTrue(Files.size(file.toPath()) > 0, "File '" + filename + "' has no content from '" + cmdLine + "'"); // make sure the successive output files get bigger! - if (lastFile != null) - Assert.assertTrue(Files.size(file.toPath()) > Files - .size(lastFile.toPath())); + if (lastFile != null) { + Assert.assertTrue(Files.size(file.toPath()) > Files.size(lastFile.toPath())); + System.out.println("this file: " + file + " +" + Files.size(file.toPath()) + " greater than " + + Files.size(lastFile.toPath())); + } + // remember it for next file + lastFile = file; } } catch (Exception x) { @@ -227,9 +231,13 @@ public class CommandsTest Assert.assertTrue(Files.size(file.toPath()) > 0, "File '" + filename + "' has no content from '" + cmdLine + "'"); // make sure the successive output files get bigger! - if (lastFile != null) + if (lastFile != null) { Assert.assertTrue(Files.size(file.toPath()) > Files .size(lastFile.toPath())); + System.out.println("this file: "+file+" +"+Files.size(file.toPath()) + " greater than " +Files.size(lastFile.toPath())); + } + // remember it for next file + lastFile = file; } } catch (Exception x) { -- 1.7.10.2