Hello everybody whats up this is just for the test
Performing regression testing for each unit in the application is done by using JUnit testing framework in java. To know whether our created component of program are performing as expected or not, we can use JUnit testing framework. For the sake of simplicity let's perform a JUnit testing (in my case using Netbeans IDE) for method which simply adds two integer and return the sum of two integers. Class with definiton of sum method Using our Netbeans IDE we can create test files for each individual file, by clicking class name inside the package, hover to tools then select create/update tests. After clicking create Update/Test options we are instructed to select the Testing framework, leave it as default and click ok. After selecting appropriate version of JUnit framework file with classname appended with 'Test' is created inside Test Packages which includes the method inside our class with test before the actual method name and uppercase for f...
Comments
Post a Comment