Skip to main content

Posts

Showing posts from 2015

JUnit in net beans

Installation of JUnit in net beans   If you are using net beans 8.0 than JUnit plugin is already installed in net beans otherwise you have to install it by following method. Open net beans click on tools menu on the menu bar .click on plugins. Plugins window will appear. In the search box write JUnit. It will appear in search result. Click on JUnit than click install. It will be automatically downloaded and installed. Basic Usage 1)     Create a class Create a class to be tested. We added a function of sum in it which will be tested. *   * To change this license header, choose License Headers in Project Properties.   * To change this template file, choose Tools | Templates   * and open the template in the editor.   */ package javatest; /**   *   * @author Cyber Tech   */ public class Javatest {     public int add(String num1,String num2)     {   ...