Skip to content

Commit

Permalink
fixing type matches and type and detection point matches
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmelton committed Feb 5, 2015
1 parent d02912a commit e45e824
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ public class DetectionPointTest {
@Test(expected=IllegalArgumentException.class)
public void testTypeMatchesNull() {
DetectionPoint point1 = new DetectionPoint();
point1.typeMatches(null);
point1.typeAndThresholdMatches(null);
}

@Test
public void testTypeMatchesEmptyDetectionPoints() {
DetectionPoint point1 = new DetectionPoint();
DetectionPoint point2 = new DetectionPoint();

Assert.assertTrue(point1.typeMatches(point2));
Assert.assertTrue(point1.typeAndThresholdMatches(point2));
}

@Test
Expand All @@ -26,7 +26,7 @@ public void testTypeMatchesFullMismatch() {
DetectionPoint point2 = new DetectionPoint("b", "b1",
new Threshold(5, new Interval(2, Interval.SECONDS)));

Assert.assertFalse(point1.typeMatches(point2));
Assert.assertFalse(point1.typeAndThresholdMatches(point2));
}

@Test
Expand All @@ -36,7 +36,7 @@ public void testTypeMatchesCategoryMismatch() {
DetectionPoint point2 = new DetectionPoint("a", "b1",
new Threshold(5, new Interval(2, Interval.SECONDS)));

Assert.assertFalse(point1.typeMatches(point2));
Assert.assertFalse(point1.typeAndThresholdMatches(point2));
}

@Test
Expand All @@ -46,7 +46,7 @@ public void testTypeMatchesLabelMismatch() {
DetectionPoint point2 = new DetectionPoint("b", "a1",
new Threshold(5, new Interval(2, Interval.SECONDS)));

Assert.assertFalse(point1.typeMatches(point2));
Assert.assertFalse(point1.typeAndThresholdMatches(point2));
}

@Test
Expand All @@ -56,7 +56,7 @@ public void testTypeMatchesThresholdMismatch() {
DetectionPoint point2 = new DetectionPoint("a", "a1",
new Threshold(5, new Interval(2, Interval.SECONDS)));

Assert.assertTrue(point1.typeMatches(point2));
Assert.assertFalse(point1.typeAndThresholdMatches(point2));
}

@Test
Expand All @@ -66,7 +66,7 @@ public void testTypeMatchesThresholdMatch() {
DetectionPoint point2 = new DetectionPoint("a", "a1",
new Threshold(5, new Interval(1, Interval.SECONDS)));

Assert.assertTrue(point1.typeMatches(point2));
Assert.assertTrue(point1.typeAndThresholdMatches(point2));
}


Expand Down

0 comments on commit e45e824

Please sign in to comment.