Interview :: Junit
Testing is the process of checking the functionality of the application whether it fulfills the requirement or not.
The process of testing individual functionality (known as a unit) of the application is called unit testing.
Give some disadvantages of manual testing?
Following are some disadvantages of manual testing:
- The testing is very time consuming and is very tiring.
- The testing demands a very big investment in the human resources.
- The testing is less reliable
- The testing cannot be programmed.
List out some advantages of automated testing?
Some of the advantages of automated testing are:
- It is very fast.
- Investment is very less.
- Testing is more reliable.
- The testing can be programmed.
No, we should write the test case only for that logic that can be reasonably broken.
- JWebUnit
- XMLUnit
- Cactus
- MockObject
There is no direct way for testing of the private method; hence manual testing is to be performed, or the method is changed to "protected" method.
JUnit test methods are designed to return 'void'. So the execution will fail.