[Last Call] Learn how to a build a cloud-first strategyRegister Now


Java how to start unit testing?

Posted on 2012-09-10
Medium Priority
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

Accepted Solution

jchittoda1 earned 334 total points
ID: 38385477
You can refer good tutorial on JUnit
LVL 21

Assisted Solution

by:Amitkumar P
Amitkumar P earned 334 total points
ID: 38385636
LVL 12

Assisted Solution

basav_com earned 332 total points
ID: 38386679

Author Comment

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

Author Closing Comment

ID: 38497620
I expected to have a very basic working example

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Suggested Courses
Course of the Month17 days, 20 hours left to enroll

831 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