Example Implementing Unit Test Case using JUnit and DBUnit Scenario: Consider we need to write a method in DAL class that would check if the user is login by looking a flag in DB against userid and password. Following is the user database table that this method would access: User Table Fields Description id Primary […]Read more "Example Implementing Unit Test Case using JUnit and DBUnit"
What is unit test? Unit test is the software code written to test one unit of code. Usually there is a unit test against each method of your actual code because method is representing one unit of code. Guidelines for writing unit test One to one mapping b/w class and test class.There should be one […]Read more "Unit Test Case Guidelines"
What is TDD? Test-Driven Development (TDD) is a software development technique consisting of short iterations where new test cases covering the desired improvement or new functionality are written first, then the production code necessary to pass the tests is implemented, and finally the software is refactored to accommodate changes. Practitioners emphasize that test-driven development is […]Read more "Test Driven Development"