public class StructuredTestCase extends DefaultTestCase
idGenerator, statements| Constructor and Description |
|---|
StructuredTestCase(TestCase test) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrimaryGoal(TestFitnessFunction goal) |
DefaultTestCase |
clone()
clone
|
int |
getFirstCheckingStatement()
Return the first statement that is not exercise code
|
int |
getFirstExerciseStatement()
Return the first statement that is not setup code
|
String |
getTargetClass()
Determine the class that is exercised by this test case
|
Set<String> |
getTargetMethods()
Determine the set of methods this test case is exercising
|
boolean |
isExerciseStatement(int position)
Determine if the given statement is part of the exercised code
|
boolean |
isSetupStatement(int position)
Determine if the given statement is part of the setup code
|
void |
setExerciseStatement(int position)
Tag a new statement as exercising statement
|
String |
toCode()
Get Java code representation of the test case
|
String |
toCode(Map<Integer,Throwable> exceptions)
Get Java code representation of the test case
|
accept, addAssertions, addContractViolation, addCoveredGoal, addListener, addStatement, addStatement, addStatements, changeClassLoader, chop, clearCoveredGoals, contains, deleteListener, equals, getAccessedClasses, getAccessedEnvironment, getAssertions, getChangedClassLoader, getContractViolations, getCoveredGoals, getDeclaredExceptions, getDependencies, getID, getLastObject, getLastObject, getObject, getObjects, getObjects, getRandomNonNullNonPrimitiveObject, getRandomNonNullObject, getRandomObject, getRandomObject, getRandomObject, getRandomObject, getReferences, getReturnValue, getStatement, hasAssertions, hasCastableObject, hashCode, hasObject, hasReferences, hasStatement, isAccessible, isEmpty, isFailing, isGoalCovered, isPrefix, isUnstable, isValid, iterator, remove, removeAssertion, removeAssertions, removeDownCasts, replace, setFailing, setFailing, setStatement, setUnstable, size, sizeWithAssertions, sliceFor, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic StructuredTestCase(TestCase test)
public void addPrimaryGoal(TestFitnessFunction goal)
public Set<String> getTargetMethods()
public String getTargetClass()
public boolean isSetupStatement(int position)
position - public boolean isExerciseStatement(int position)
position - public int getFirstExerciseStatement()
public void setExerciseStatement(int position)
position - public int getFirstCheckingStatement()
public String toCode()
DefaultTestCasetoCode in interface TestCasetoCode in class DefaultTestCasepublic String toCode(Map<Integer,Throwable> exceptions)
DefaultTestCasetoCode in interface TestCasetoCode in class DefaultTestCaseexceptions - a Map object.public DefaultTestCase clone()
DefaultTestCaseclone
Create a copy of the test caseclone in interface TestCaseclone in class DefaultTestCaseTestCase object.Copyright © 2010–2017 EvoSuite. All rights reserved.