X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fcontroller%2FAlignViewControllerTest.java;h=fde4da174b25d2298f1568382637d353b15a664f;hb=af259f508805faf2da90585ee9a67cd7853bf5aa;hp=efee93b2bb47dbcd6ae590d05c8fe990ae2a8492;hpb=19bf96b1bcedc7c00f97e1947d889c24fec48ae7;p=jalview.git diff --git a/test/jalview/controller/AlignViewControllerTest.java b/test/jalview/controller/AlignViewControllerTest.java index efee93b..fde4da1 100644 --- a/test/jalview/controller/AlignViewControllerTest.java +++ b/test/jalview/controller/AlignViewControllerTest.java @@ -26,6 +26,7 @@ import static org.testng.AssertJUnit.assertTrue; import jalview.analysis.Finder; import jalview.api.AlignViewControllerI; import jalview.api.FeatureColourI; +import jalview.api.FinderI; import jalview.datamodel.Alignment; import jalview.datamodel.SearchResults; import jalview.datamodel.SearchResultsI; @@ -147,7 +148,8 @@ public class AlignViewControllerTest * seq1 feature in columns 4-6 is hidden * seq2 feature in columns 6-7 is shown */ - FeatureColourI fc = new FeatureColour(Color.red, Color.blue, 0f, 10f); + FeatureColourI fc = new FeatureColour(null, Color.red, Color.blue, null, + 0f, 10f); fc.setAboveThreshold(true); fc.setThreshold(5f); af.getFeatureRenderer().setColour("Metal", fc); @@ -222,10 +224,8 @@ public class AlignViewControllerTest /* * test Match/Find works first */ - Finder f = new Finder(af.getViewport().getAlignment(), null); - f.setFindAll(true); - f.setCaseSensitive(true); - f.find("M+"); + FinderI f = new Finder(af.getViewport()); + f.findAll("M+", true, false, false); assertEquals( "Finder found different set of results to manually created SearchResults", sr, f.getSearchResults());