| java.lang.Object org.hanseltest.CoverIf
CoverIf | public class CoverIf (Code) | | Class containing all kinds of different uses of if-statements.
author: Niklas Mehner |
Method Summary | |
public int | ifElse(boolean condition) Method contains a simple if-else.
Parameters: condition - condition for the if statement. | public int | ifPointer(Object obj1, Object obj2) Compare to references.
Parameters: obj1 - Reference one. Parameters: obj2 - Reference two. | public int | nestedIf(boolean conditionA, boolean conditionB) Method contains a nested if statement.
Parameters: conditionA - First Condition. Parameters: conditionB - Second Condition. | public int | simpleIf(boolean condition) Method contains a simple if statement.
Parameters: condition - Condition. |
ifElse | public int ifElse(boolean condition)(Code) | | Method contains a simple if-else.
Parameters: condition - condition for the if statement. 3 if condition is false, 4 otherwise. |
ifPointer | public int ifPointer(Object obj1, Object obj2)(Code) | | Compare to references.
Parameters: obj1 - Reference one. Parameters: obj2 - Reference two. 0 if (obj1 == obj2), 1 otherwise. |
nestedIf | public int nestedIf(boolean conditionA, boolean conditionB)(Code) | | Method contains a nested if statement.
Parameters: conditionA - First Condition. Parameters: conditionB - Second Condition. Value depending on conditions (1..4); |
simpleIf | public int simpleIf(boolean condition)(Code) | | Method contains a simple if statement.
Parameters: condition - Condition. 0 if condition is false, 1 otherwise. |
|
|