diff options
authorRobert Fisher2010-12-03 12:15:13 -0500
committerRyan D. Brooks2010-12-03 12:15:13 -0500
commit2459b0478282ad0bbcb87bf8522ced5588e53660 (patch)
parentb0d3aeb101cacd56dfbba178375c35a7b4677c23 (diff)
refinement: Add a new constructor to CheckPoint
Added a convenience constructor to CheckPoint to handle the case where the expected and actual values are boolean. The new constructor computes the pass value by just doing the boolean expected == actual comparison.
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/
index e8cfc99..07a97ab 100644
--- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/
+++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/
@@ -33,11 +33,12 @@ public class CheckPoint implements ITestPoint {
* CheckPoint objects are used for describing the result of a check and can be logged directly to a the logger as a
* testPoint or can be added to a CheckGroup if it is just a part of a larger series of checks being performed that
* all constitute one overall check.
- *
+ *
* @param testPointName The item being tested. (i.e. TSD Button).
* @param expected The expected condition for a pass point.
* @param actual The actual condition during the check.
* @param pass The result of the check.
+ * @param elapsedTime The amount of time elapsed in milliseconds
public CheckPoint(String testPointName, String expected, String actual, boolean pass, long elapsedTime) {
this(testPointName, expected, actual, pass, 0, elapsedTime);
@@ -64,6 +65,10 @@ public class CheckPoint implements ITestPoint {
this(testPointName, expected, actual, pass, 0);
+ public CheckPoint(String testPointName, boolean expected, boolean actual) {
+ this(testPointName, expected, actual, expected == actual, 0);
+ }
* @return Returns the actual.