Can we write functional tests using junit?

I understand Junit is intended for unit testing. Can we write functional tests using junit as well? Like we write Integration tests using junit.

If functional tests are not going to be read by a non-tech user (aka customer) then it looks like a overkill to use tools such as Cucumber, Fitnesse etc. Given that I have a good knowledge of Junits - i want to reuse the same?

Also I notice it is possible to write functional tests using TestNG - Is it a good idea if junit is not suitable.


you can write any sort of test using junit. for example have a look at arquillian, which can boot a whole j2ee container from junit for testing, or fest, which enables swing UI testing from within junit, or use a selenium junit4 runner to test web applications from junit (combine with arquillian to boot the web application 1st :-) )

Need Your Help

Structure/class in MATLAB?


I have a simple weighted tree with a root, nodes and leafs. Now I want to assign a value to every path from the root to a leaf which will be the sum of all the weights.