JAL-2843 add isByAttribute to interface for convenience
[jalview.git] / test / jalview / datamodel / features / FeatureMatcherTest.java
index fbbdbd5..4bd34cb 100644 (file)
@@ -187,6 +187,16 @@ public class FeatureMatcherTest
   }
 
   @Test(groups = "Functional")
+  public void testIsByAttribute()
+  {
+    assertFalse(FeatureMatcher.byLabel(Condition.NotContains, "foo")
+            .isByAttribute());
+    assertFalse(FeatureMatcher.byScore(Condition.LE, "-1").isByAttribute());
+    assertTrue(FeatureMatcher.byAttribute(Condition.LE, "-1", "AC")
+            .isByAttribute());
+  }
+
+  @Test(groups = "Functional")
   public void testIsByLabel()
   {
     assertTrue(FeatureMatcher.byLabel(Condition.NotContains, "foo")