Lines Matching refs:Condition

22     MatcherI m = new Matcher(Condition.Contains, "foo");  in testConstructor()
23 assertEquals(m.getCondition(), Condition.Contains); in testConstructor()
30 m = new Matcher(Condition.GT, -2.1f); in testConstructor()
31 assertEquals(m.getCondition(), Condition.GT); in testConstructor()
37 m = new Matcher(Condition.NotContains, "-1.2f"); in testConstructor()
38 assertEquals(m.getCondition(), Condition.NotContains); in testConstructor()
44 m = new Matcher(Condition.GE, "-1.2f"); in testConstructor()
45 assertEquals(m.getCondition(), Condition.GE); in testConstructor()
51 m = new Matcher(Condition.GE, "113890813"); in testConstructor()
52 assertEquals(m.getCondition(), Condition.GE); in testConstructor()
58 m = new Matcher(Condition.GE, "-987f"); in testConstructor()
59 assertEquals(m.getCondition(), Condition.GE); in testConstructor()
76 new Matcher(Condition.LT, "123,456"); in testConstructor()
85 new Matcher(Condition.LT, "123_456"); in testConstructor()
94 new Matcher(Condition.LT, "123456L"); in testConstructor()
111 MatcherI m = new Matcher(Condition.EQ, 2f); in testMatches_float()
119 m = new Matcher(Condition.NE, 2f); in testMatches_float()
127 m = new Matcher(Condition.GE, "2f"); in testMatches_float()
135 m = new Matcher(Condition.GT, 2f); in testMatches_float()
143 m = new Matcher(Condition.LE, "2.0f"); in testMatches_float()
151 m = new Matcher(Condition.LT, 2f); in testMatches_float()
164 for (Condition cond : Condition.values()) in testNumericMatch_nullOrInvalidValue()
189 MatcherI m = new Matcher(Condition.Contains, "benign"); in testMatches_pattern()
198 m = new Matcher(Condition.NotContains, "benign"); in testMatches_pattern()
207 m = new Matcher(Condition.Matches, "benign"); in testMatches_pattern()
217 m = new Matcher(Condition.NotMatches, "benign"); in testMatches_pattern()
227 m = new Matcher(Condition.Present, null); in testMatches_pattern()
235 m = new Matcher(Condition.NotPresent, null); in testMatches_pattern()
244 Matcher m1 = new Matcher(Condition.Contains, "32"); in testMatches_pattern()
261 MatcherI m = new Matcher(Condition.Contains, 1.2e-6f); in testMatches_floatWithStringCondition()
269 m = new Matcher(Condition.Contains, 0.0000001f); in testMatches_floatWithStringCondition()
281 MatcherI m = new Matcher(Condition.LT, 1.2e-6f); in testToString()
284 m = new Matcher(Condition.GE, "20200413"); in testToString()
287 m = new Matcher(Condition.NotMatches, "ABC"); in testToString()
290 m = new Matcher(Condition.Contains, -1.2f); in testToString()
300 MatcherI m = new Matcher(Condition.NotMatches, "ABC"); in testEquals()
304 assertTrue(m.equals(new Matcher(Condition.NotMatches, "ABC"))); in testEquals()
306 assertTrue(m.equals(new Matcher(Condition.NotMatches, "abc"))); in testEquals()
307 assertFalse(m.equals(new Matcher(Condition.Matches, "ABC"))); in testEquals()
308 assertFalse(m.equals(new Matcher(Condition.NotMatches, "def"))); in testEquals()
313 m = new Matcher(Condition.LT, -1f); in testEquals()
317 assertTrue(m.equals(new Matcher(Condition.LT, -1f))); in testEquals()
318 assertTrue(m.equals(new Matcher(Condition.LT, "-1f"))); in testEquals()
319 assertTrue(m.equals(new Matcher(Condition.LT, "-1.00f"))); in testEquals()
320 assertFalse(m.equals(new Matcher(Condition.LE, -1f))); in testEquals()
321 assertFalse(m.equals(new Matcher(Condition.GE, -1f))); in testEquals()
322 assertFalse(m.equals(new Matcher(Condition.NE, -1f))); in testEquals()
323 assertFalse(m.equals(new Matcher(Condition.LT, 1f))); in testEquals()
324 assertFalse(m.equals(new Matcher(Condition.LT, -1.1f))); in testEquals()
329 m = new Matcher(Condition.LT, -123456); in testEquals()
333 assertTrue(m.equals(new Matcher(Condition.LT, -123456))); in testEquals()
334 assertFalse(m.equals(new Matcher(Condition.LT, +123456))); in testEquals()
335 assertTrue(m.equals(new Matcher(Condition.LT, "-123456"))); in testEquals()
336 assertFalse(m.equals(new Matcher(Condition.LT, -123456f))); in testEquals()
337 assertFalse(m.equals(new Matcher(Condition.LT, "-123456f"))); in testEquals()
343 MatcherI m1 = new Matcher(Condition.NotMatches, "ABC"); in testHashCode()
344 MatcherI m2 = new Matcher(Condition.NotMatches, "ABC"); in testHashCode()
345 MatcherI m3 = new Matcher(Condition.NotMatches, "AB"); in testHashCode()
346 MatcherI m4 = new Matcher(Condition.Matches, "ABC"); in testHashCode()
362 MatcherI m = new Matcher(Condition.EQ, 2); in testMatches_long()
374 m = new Matcher(Condition.NE, 123); in testMatches_long()
382 m = new Matcher(Condition.GE, "113890813"); in testMatches_long()
390 m = new Matcher(Condition.GT, 113890813); in testMatches_long()
397 m = new Matcher(Condition.LE, "113890813"); in testMatches_long()
405 m = new Matcher(Condition.LT, 113890813); in testMatches_long()
417 MatcherI m = new Matcher(Condition.GT, 1234); in testMatches_floatValueIntegerCondition()