Java how to start unit testing?

Posted on 2012-09-10
Last Modified: 2012-10-15
Hi experts.

We are trying to start doing unit testing at the code we are developing.

We have a vague idea of how to approach this, and also how this works. If you could give us a concise example of how this works, and how we can leverage the results of this process. that'd be great.

Thank you very much in advance.
Question by:mhas01
    LVL 1

    Accepted Solution

    You can refer good tutorial on JUnit
    LVL 20

    Assisted Solution

    by:Amitkumar Panchal
    LVL 12

    Assisted Solution


    Author Comment

    So, does anybody have a specific example and explanation that would summarize like the objectives and practicality of using unit testing?

    Author Closing Comment

    I expected to have a very basic working example

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now