public class TestClassMustBeProperlyNamedRule extends Object implements Rule
To override the accepted list use the TestClassMustBeProperlyNamedRule(Collection, Collection, Collection)
TestClassMustBeProperlyNamedRule
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_ANNOTATIONS |
static String[] |
DEFAULT_PREFIX_TOKENS |
static String[] |
DEFAULT_SUFFIX_TOKENS |
| Constructor and Description |
|---|
TestClassMustBeProperlyNamedRule()
This constructor used the default is prefix "Test", suffixes "Test" & "TestCase".
|
TestClassMustBeProperlyNamedRule(Collection<String> prefixes,
Collection<String> suffixes,
Collection<String> annotations)
This constructor enables you to override the prefix / postfixes for the test names.
|
public static final String[] DEFAULT_PREFIX_TOKENS
public static final String[] DEFAULT_SUFFIX_TOKENS
public static final String[] DEFAULT_ANNOTATIONS
public TestClassMustBeProperlyNamedRule()
public TestClassMustBeProperlyNamedRule(Collection<String> prefixes, Collection<String> suffixes, Collection<String> annotations)
prefixes - the prefix list to use.suffixes - the suffix list to useannotations - collection of annotations considered test markers (for example @Test in JUnit)Copyright © 2010–2021. All rights reserved.