Package org.glassfish.pfl.test
Class TestBase
java.lang.Object
org.glassfish.pfl.test.TestBase
A VERY quick-and-dirty test framework.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestBase.Arguments
private String
(package private) JUnitReportHelper
private final Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
badTest()
void
private void
private void
displaySet
(Set<String> set) void
private void
execute
(Collection<Method> methods) void
<T> T
getArguments
(Class<T> cls) private String
getMessage
(List<String> strs) private String
void
hasParameters
(String name) static void
private TestBase
private TestBase
nl()
void
int
run()
void
testGood()
void
-
Field Details
-
testMethods
-
currentResults
-
argvals
-
includes
-
excludes
-
preMethods
-
postMethods
-
current
-
pass
-
fail
-
skip
-
testObject
-
reportHelper
JUnitReportHelper reportHelper
-
-
Constructor Details
-
TestBase
-
TestBase
-
TestBase
-
-
Method Details
-
execute
private void execute(Collection<Method> methods) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException -
getArguments
-
msg
-
nl
-
getTestId
-
display
-
getMessage
-
run
public int run() -
displaySet
-
fail
-
check
-
note
-
testSimple
-
testGood
-
badTest
-
exception
-
badReturnType
-
hasParameters
-
main
-