public void setUp()
{
Cache.loadProperties("test/jalview/io/testProps.jvprops");
- Cache.applicationProperties.setProperty("PAD_GAPS",
+ Cache.setPropertyNoSave("PAD_GAPS",
Boolean.FALSE.toString());
//@formatter:off
@AfterMethod(alwaysRun = true)
public void tearDownAfterTest()
{
- av.setSelectionGroup(null);
+ if (av!=null) {
+ av.setSelectionGroup(null);
+ }
}
/**
assertEquals(matches.get(1).getEnd(), 6);
}
+ @Test(groups = "Functional")
+ public void testFind_findAll()
+ {
+ /*
+ * simple JAL-3765 test
+ * single symbol should find *all* matching symbols
+ */
+ Finder f = new Finder(av);
+ f.findAll("M", false, false, false);
+ SearchResultsI sr = f.getSearchResults();
+ assertEquals(sr.getCount(), 5);
+
+ }
+
/**
* Test for (undocumented) find residue by position
*/
sg.addSequence(al.getSequenceAt(1), false);
sg.addSequence(al.getSequenceAt(2), false);
av.setSelectionGroup(sg);
-
+
/*
* search for 'e' should match two sequence ids and one residue
*/
}
/**
- * Test that find does not report hidden positions, but does report matches that
- * span hidden gaps
+ * Test that find does not report hidden positions, but does report matches
+ * that span hidden gaps
*/
@Test(groups = "Functional")
public void testFind_withHiddenColumns()
* --bcdEFH
* aa---aMMMMMaaa
*/
-
+
/*
* hide columns 2-4 and 6-7
*/
hc.hideColumns(2, 4);
hc.hideColumns(6, 7);
al.setHiddenColumns(hc);
-
+
/*
* select rows 2-3
*/