boolean bFirstTestGoalIsEmptyTransitionSequence = false;
TestGoalGuardConditions oTestGuardGoal = null;
TestGoalTransitionSequence oTestGoalToSatisfySpec = null;
if(!m_oTestCaseRunnerState.getTestGoalsToSatisfy().isEmpty()) {
int nIndexForGuardCondition = 0;
TestGoalBase oTestGoalToSatisfy = m_oTestCaseRunnerState.getTestGoalsToSatisfy().get(0);
if(oTestGoalToSatisfy instanceof TestGoalTransitionSequence) {
nIndexForGuardCondition = 1;
oTestGoalToSatisfySpec =
(TestGoalTransitionSequence)oTestGoalToSatisfy;
if(oTestGoalToSatisfySpec.getTransitionSequence().isEmpty()) {
bFirstTestGoalIsEmptyTransitionSequence = true;
}
}
if(m_oTestCaseRunnerState.getTestGoalsToSatisfy().size() > nIndexForGuardCondition) {
TestGoalBase oSecondGoal =
m_oTestCaseRunnerState.getTestGoalsToSatisfy().get(nIndexForGuardCondition);
if(oSecondGoal instanceof TestGoalGuardConditions) {
oTestGuardGoal = (TestGoalGuardConditions)oSecondGoal;
}
}