su4sml/add-ons/jtestdataaccessor/src/test/resources/valid/test1.conf

33 lines
1.4 KiB
Plaintext

[function-under-test]
resulttype = boolean; # Type of result if non-void
inputtypes = int, boolean, String; # Types of arguments - at least used for
# overloading
setup = function1(); # A function from AbstractTestX which sets
# up the environment - optional
teardown = function2(); # A function from AbstractTestX which tears
# down the environment - optional
{
input = 1, true, "Hi";
result = false;
checker = EQUALS; # A function which checks the result, eg.
# using a function provided by junit
}
{
input = 100, true, "Foo";
result = resultgen();
checker = resultcheck(); # A function which checks the result, eg.
# a user defined function
}
[function-under-test] # Different testdata for the same function,
# eg. used for overloading or when testing
# another environment
resulttype = boolean;
inputtypes = int, int, boolean, String;
setup = function3();
teardown = function2();
{
input = 1, 1, inputgen(), "Bar";
result = java.lang.Exception;
comment = "Test if an exception is thrown"; # Comment to describe the test
}