|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.Formula
csheets.ext.test.TestCase
public class TestCase
Contains the information for a single test case, i.e. a single test case parameter for each of the precedents.
| Nested Class Summary | |
|---|---|
static class |
TestCase.ValidationState
The validation states of a test case. |
| Constructor Summary | |
|---|---|
TestCase(TestableCell cell,
Set<TestCaseParam> params)
Creates a new test case for the given cell in the given spreadsheet. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Returns whether the other object has the same parameters and cell as this has. |
Value |
evaluate()
Evaluates the expression and returns the result. |
TestableCell |
getCell()
Returns the cell to which the formula belongs. |
Set<TestCaseParam> |
getParams()
|
TestCase.ValidationState |
getValidationState()
|
int |
hashCode()
Returns the hash code of the test case. |
boolean |
hasParam(TestCaseParam param)
Test if the TestCase is based on a specified TestCaseParam. |
void |
setValidationState(TestCase.ValidationState state)
|
| Methods inherited from class csheets.core.formula.Formula |
|---|
accept, getExpression, getReferences, hasCircularReference, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestCase(TestableCell cell,
Set<TestCaseParam> params)
cell - the cell for which the test case is to be createdparams - the set of test case parameters to use| Method Detail |
|---|
public TestableCell getCell()
Formula
getCell in class Formulapublic Value evaluate()
Expression
evaluate in interface Expressionevaluate in class Formulapublic Set<TestCaseParam> getParams()
public TestCase.ValidationState getValidationState()
public void setValidationState(TestCase.ValidationState state)
state - Sets the ValidationState of the TestCase to the param's state.public boolean hasParam(TestCaseParam param)
param - The TestCaseParam we want to know it the TestCase uses
public boolean equals(Object other)
equals in class Objectother - the object to check for equality
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||