JUnit Tutorial for Beginners - Learn Java Unit Testing

JUnit tutorial for Beginners with examples
4.4 (1,541 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.
16,685 students enrolled
Free
Start Learning Now
  • Lectures 17
  • Length 1.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 12/2015 English

Course 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

What are the requirements?

  • Eclipse - any latest version
  • Basic Java Programming

What am I going to get from this course?

  • 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

What 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

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction
Congratulations
Article
Introduction
01:25
What is Unit Testing?
03:41
Section 2: First JUnit Example
Getting Ready for Hello World
08:05
Your First JUnit Success - Green Bar
09:39
Refactoring : Improving the JUnit
07:44
Section 3: Second JUnit Example
assertTrue and assertFalse
14:45
Section 4: JUnit Concepts
@Before and @After
07:02
@BeforeClass and @AfterClass
03:30
Comparing Arrays - assertArrayEquals
05:19
Section 5: Advanced JUnit Concepts
Unit Testing Exceptions
03:33
Unit Testing for Performance
04:03
Parameterized JUnit Tests
11:11
Organizing Unit Tests into Suites
03:24
Section 6: JUnit Best Practices
How do you write good Unit Tests?
10:11
Conclusion
00:58
Our Best Courses : Bonus Lecture
Article

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

in28Minutes Official, Architect, Programmer and Trainer

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.

Ready to start learning?
Start Learning Now