return byScore;
}
+ @Override
+ public boolean isByAttribute()
+ {
+ return getAttribute() != null;
+ }
+
/**
* {@inheritDoc} The output of this method should be parseable by method
* <code>fromString<code> to restore the original object.
}
@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")