Is there an MbUnit equivalent in Java?
Specifically, I am looking for the same ease of defining parameterized and combinatorial unit tests.
Thanks.
P.S.
Please, do not suggest JUnit. Its parameterized and theory features do not even reach the ancles of the respective features in MbUnit.
EDIT
Here is a very short description of the features of MbUnit that I would like to have in java:
- FactoryAttribute - allows to get parameters from a method or property at run-time.
- RowAttribute - allows to get compile time parameters to all of the parameters of the test.
- ColumnAttribute - allows to get compile time parameters to a specific parame开发者_开发技巧ter.
Mixing and matching the Factory and Column attributes allows to create combinatorial tests easily. The Factory attribute can be attached to the test method itself or to the indvidual parameters.
In addition, the test method can be generic and the output produced by the Factory method can be fed into that parameter as well, making it possible to use different generic type argument for different test iterations.
精彩评论