Wishlisted Wishlist

Please confirm that you want to add JUnit Tutorial for Beginners - Learn Java Unit Testing to your Wishlist.

Add to Wishlist

JUnit Tutorial for Beginners - Learn Java Unit Testing

JUnit tutorial for Beginners with examples
4.3 (2,081 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
21,041 students enrolled
Last updated 11/2016
  • 1.5 hours on-demand video
  • 2 Articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
Write Clean Unit Tests with JUnit Framework
Use JUnit annotations @Test, @Before, @After, @AfterClass, @BeforeClass, @Suite
Use JUnit assert methods
Write Unit Tests for Exceptions and Performance
View Curriculum
  • Eclipse - any latest version
  • Basic Java Programming

JUnit is a unit testing framework for the Java programming language.

JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks which is collectively known as xUnit Frameworks.

In this Beginners Tutorial on JUnit, you will learn how to

  • Create a new project for JUnit Tests
  • Create, Run & Debug JUnit Tests
  • Write Good Unit Tests
    • Use assert methods
    • Use basic JUnit Annotations - @Test, @Before, @After, @AfterClass, @BeforeClass, @Suite
    • Test Performance and Exceptions in Unit Tests
    • Write Parameterized Tests
    • Adhere to JUnit Best Practices
  • Use Eclipse to write and run JUnit Tests
Who is the target audience?
  • Students new to Unit Testing and who want to understand Unit Testing
  • Students who want to understand JUnit Framework
  • Students with basic Java Knowledge
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 17 Lectures Collapse All 17 Lectures 01:35:01
3 Lectures 05:28


What is Unit Testing?
First JUnit Example
3 Lectures 25:28
Getting Ready for Hello World

Your First JUnit Success - Green Bar

Refactoring : Improving the JUnit
Second JUnit Example
1 Lecture 14:45
assertTrue and assertFalse
JUnit Concepts
3 Lectures 15:51
@Before and @After

@BeforeClass and @AfterClass

Comparing Arrays - assertArrayEquals
Advanced JUnit Concepts
4 Lectures 22:11
Unit Testing Exceptions

Unit Testing for Performance

Parameterized JUnit Tests

Organizing Unit Tests into Suites
JUnit Best Practices
3 Lectures 11:23
How do you write good Unit Tests?


Our Best Courses : Bonus Lecture
About the Instructor
4.3 Average rating
8,536 Reviews
60,056 Students
15 Courses
Popular Java Instructor - 52,000+ Students

About Me

I'm Ranga Karanam, an Architect with 15 Years of Java programming and design  with major banking clients across the world. 

We started in28Minutes with the aim to create Hands-on Courses with Real World Projects. Step-By-Step series of Courses is one of our creations.

About in28Minutes

We use Problem-Solution based Step-By-Step Hands-on Approach With Practical, Real World Application Examples.

While our primary expertise is on Development, Design & Architecture of Java & Related Frameworks (Spring, Spring MVC, Struts, Hibernate) we are expanding into the front-end world (Bootstrap, JQuery, Angular JS).

Our Beliefs

Best Courses are interactive and fun.

Foundations for building high quality applications are best laid down while learning.

Our Approach

We love open source and therefore, All our code is open source too and available on Github.

We use 80-20 Rule. We discuss 20% things used 80% of time in depth. We touch upon other things briefly equipping you with enough knowledge to find out more on your own.

Problem Solution based Step by Step Hands-on Learning.

Report Abuse