From 55d5f13809722084ebd354dc0a732abe9e991f9f Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 14 Sep 2021 18:55:40 +0100 Subject: [PATCH] JAL-3829 more info on test fail - seems to be flaky --- test/jalview/gui/StructureChooserTest.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/test/jalview/gui/StructureChooserTest.java b/test/jalview/gui/StructureChooserTest.java index ad3cfc1..57aa23c 100644 --- a/test/jalview/gui/StructureChooserTest.java +++ b/test/jalview/gui/StructureChooserTest.java @@ -20,6 +20,7 @@ */ package jalview.gui; +import static org.testng.Assert.assertEquals; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertNotNull; import static org.testng.AssertJUnit.assertTrue; @@ -46,6 +47,8 @@ import jalview.ws.params.InvalidArgumentException; import java.util.Collection; import java.util.Vector; +import javax.swing.JComboBox; + import org.junit.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeClass; @@ -137,10 +140,21 @@ public class StructureChooserTest SequenceI[] selectedSeqs = new SequenceI[] { seq }; StructureChooser sc = new StructureChooser(selectedSeqs, seq, null); + + // if structures are not discovered then don't + // populate filter options sc.populateFilterComboBox(false, false); int optionsSize = sc.getCmbFilterOption().getItemCount(); - assertEquals(2, optionsSize); // if structures are not discovered then don't - // populate filter options + System.out.println("Items (no data, no cache): "); + StringBuilder items = new StringBuilder(); + for (int p=0;p