| java.lang.Object org.netbeans.modules.junit.TestMethodNameGenerator
TestMethodNameGenerator | final class TestMethodNameGenerator (Code) | | Utility class for generating a collection of unique names of test methods.
author: Marian Petras |
getTestMethodNames | static List<String> getTestMethodNames(List<ExecutableElement> srcMethods, TypeElement tstClassElem, Collection<String> reservedMethodNames, WorkingCopy workingCopy)(Code) | | Generates a list of unique names of test methods for the given source
methods. The names are generated such that they do not conflict
with names of methods that are already present in the test class
Parameters: srcMethods - source methods for which test methods are aboutto be created - names of these test methods willbe generated Parameters: tstClassElem - test class - the existing test class in whichnew test classes are about to be generated,or null if the test class does not exist yet Parameters: reservedMethodNames - list of reserved test method names- these should not be avoidedby the test method name generator;it may be null if there are noreserved method names list of names for test methods for the given source methods;the names in the list are unique, they do not conflictwith names of existing methods in the given test class (if any)and they are stored in the order of the source methods |
|
|