| java.lang.Object org.netbeans.modules.junit.TestabilityResult
TestabilityResult | final class TestabilityResult (Code) | | Helper class representing reasons for skipping a class in the test
generation process. The class enumerates known reasons, why a class may
not be considered testable, allows to combine the reasons and provide
human-readable representation of them.
|
Inner Class :final static class SkippedClass | |
combine | public static TestabilityResult combine(TestabilityResult lhs, TestabilityResult rhs)(Code) | | Combine two result reasons into a new one.
The combination is the union
of the failure reasons represented by the two results. Thus,
if both are success (no failure), the combination is a success. If
some of them is failed, the result is failed.
Parameters: lhs - the first TestabilityResult Parameters: rhs - the second TestabilityResult a new TestabilityResult representing the combination of the two results |
getReason | public String getReason()(Code) | | Returns a human-readable representation of the reason. If the reason
is a combination of multiple reasons, they are separated with ",".
String |
getReason | public String getReason(String separ, String terminalSepar)(Code) | | Returns a human-readable representation of the reason. If the reason
is a combination of multiple reasons, they are separated with
separ except for the last reason, which is separated
with
terminalSepar
For example: getReason(", ", " or ") might return
"abstract, package private or without testable methods".
String |
isFailed | public boolean isFailed()(Code) | | Returns true if the result is for a non-testable class.
true if the result is for a non-testable class. |
isTestable | public boolean isTestable()(Code) | | Returns true if the result is for a testable class.
true or false |
|
|