public class AssertionController extends Object
Constructor and Description |
---|
AssertionController(UIController uiController)
Creates a new assertion controller.
|
Modifier and Type | Method and Description |
---|---|
static Color |
getAssertionResultColor(Assertion.Result result)
Assigns a color to the given assertion result.
|
boolean |
setAssertion(AssertableCell cell,
String assertionString)
Attempts to create a new assertion from the given string.
|
public AssertionController(UIController uiController)
uiController
- the user interface controllerpublic boolean setAssertion(AssertableCell cell, String assertionString)
cell
- the cell for which the assertion should be setassertionString
- the assertion, as entered by the userpublic static Color getAssertionResultColor(Assertion.Result result)
result
- the assertion result for which a color is wanted