Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Fisher2010-12-03 17:15:13 +0000
committerRyan D. Brooks2010-12-03 17:15:13 +0000
commit2459b0478282ad0bbcb87bf8522ced5588e53660 (patch)
tree3e80c441c8f3901f2d2b199d1e1a1fa947bfda3b
parentb0d3aeb101cacd56dfbba178375c35a7b4677c23 (diff)
downloadorg.eclipse.osee-2459b0478282ad0bbcb87bf8522ced5588e53660.tar.gz
org.eclipse.osee-2459b0478282ad0bbcb87bf8522ced5588e53660.tar.xz
org.eclipse.osee-2459b0478282ad0bbcb87bf8522ced5588e53660.zip
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.
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/CheckPoint.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/CheckPoint.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/CheckPoint.java
index e8cfc999ded..07a97ab6d01 100644
--- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/CheckPoint.java
+++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/testPoint/CheckPoint.java
@@ -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.
*/

Back to the top