JUnit Tutorial for Beginners - Learn Java Unit Testing
4.3 (2,531 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.
24,407 students enrolled
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,531 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.
24,407 students enrolled
Last updated 4/2017
English
Price: Free
Includes:
  • 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
Requirements
  • Eclipse - any latest version
  • Basic Java Programming
Description

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:05
+
Introduction
3 Lectures 05:28
Congratulations
00:22

Introduction
01:25

What is Unit Testing?
03:41
+
First JUnit Example
3 Lectures 25:28
Getting Ready for Hello World
08:05

Your First JUnit Success - Green Bar
09:39

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

@BeforeClass and @AfterClass
03:30

Comparing Arrays - assertArrayEquals
05:19
+
Advanced JUnit Concepts
4 Lectures 22:11
Unit Testing Exceptions
03:33

Unit Testing for Performance
04:03

Parameterized JUnit Tests
11:11

Organizing Unit Tests into Suites
03:24
+
JUnit Best Practices
3 Lectures 11:29
How do you write good Unit Tests?
10:11

Our Best Courses with 66,000 Students : Bonus Lecture
00:20

Conclusion
00:58
About the Instructor
in28Minutes Official
4.3 Average rating
10,689 Reviews
71,330 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.