JUnit Guides and Tutorials

All you need to know to become really professional and, of course, having fun!

Let's learn a lof about JUnit Framework!

If you are a Serious Java Developer, Java Engineer, Java Hipster, etc you must know about JUnit Framework! Probably

is one of the most used Framework in the Java World!

 

Complete Guides

Let’s see Complete Guides about JUnit like Configuration, JUnit Assertions, JUnit with Hamcrest, Testing Exceptions with JUnit, Executing Tests in order and much more!

Application Tutorials

Yeh, I know you are tired of hello world examples and incomplete real world contexts. Here we will see small, but real world examples of Applications

v

Blog Posts and News

Sometimes you just need to know about a specific thing, technology or you want to follow the news about JUnit. Just keep up to date and see this section!

JUnit Guide and Tutorials

Just pick one of the JUnit Features below and have fun!

 

JUnit Tutorial - How to Configure JUnit 4 and JUnit 5 - Java Tutorial by Hacking Code

JUnit - How to Configure JUnit 4 and JUnit 5

Do you know the differences between JUnit 4 and JUnit 5 Configuration? Let's see!
JUnit Tutorial - Mastering Assertions - Java Tutorial by Hacking Code

JUnit - Mastering JUnit Assertions

Are you ready to see a lot of JUnit Examples of how to use Assertions?
JUnit Tutorial - Hamcrest Assertions - Java Tutorial by Hacking Code

JUnit - How to Use Hamcrest Assertions

Hamcrest Assertions is a great way to get your tests easier to read! Let's see how!
JUnit Tutorial - Tests in Suites - Java Tutorial by Hacking Code

JUnit - Tests in Suite

You can organize your tests in a Suite mode!
JUnit Tutorial - Test Execution Order - Java Tutorial by Hacking Code

JUnit - Test Execution Order

Do you want order your test execution? Probably it is a bed smell, but let's try it out!
JUnit Tutorial - Testing Exceptions - Java Tutorial by Hacking Code

JUnit - Testing Exceptions

Java Exceptions are in all places right? Let's deal with that with honor!

What You Will Learn Here About Java 8?


Java 8 
 changed the way that we think and code. Here you will see a lot of articles and tutorials

about Java 8, how to use its awesome features and how to get your life easier! Enjoy!

 

Java 8 - Lambda Expression - Java Tutorial Hacking Code

Java 8 - Lambda Expression

Do you know how to use Java 8 Lambda Expressions? No? Let's see it!
Java 8 - Default Methods - Java Tutorial Hacking Code

Java 8 - Default Methods Tutorial

Did you know that now we can have non-abstract methods in Interfaces? Let's see why!
Java 8 - Functions - Java Tutorial Hacking Code

Java 8 - Functions

Do you want to try a more Functional Programming Style with Functions?
Java 8 - Method Reference - Java Tutorial Hacking Code

Java 8 - Method Reference

Method Reference is a really awesome feature from Java 8! Let's see why and how to use it!
Java 8 - Stream Count - Java Tutorial Hacking Code

Java 8 - Stream Match Tutorial

Stop suffering and let's use Java 8 Stream Count!
Java 8 - Stream Filter - Java Tutorial Hacking Code

Java 8 - Stream Filter

Filtering data with Stream Filter from Java 8
Java 8 - Stream Map - Java Tutorial Hacking Code

Java 8 - Stream Map

Updating data with Stream Map from Java 8
Java 8 - Stream Sorted - Java Tutorial Hacking Code

Java 8 - Stream Sorted

Sorted Collections with Java 8 Stream Sorted
Java 8 - Stream Match - Java Tutorial Hacking Code

Java 8 - Stream Match Tutorial

Let's see if any data Match with rules using Stream Match from Java 8!
Java 8 Stream Reduce Tutorial - Java Guide by Live Coding

Java 8 - Stream Reduce Tutorial

Let's move on and reduce some data with Stream Reduce from Java8!
Java 8 Consumer Tutorial - Java Guide by Live Coding

Java 8 - Consumers Tutorial

Java 8 Consumers - Making our life easier!
Java 8 Predicate Tutorial - Java Guide by Live Coding

Java 8 - Predicate Tutorial

Java 8 Predicate - An important built-in Functional Interface!
Java 8 Comparator Tutorial - Java Guide by Live Coding

Java 8 - Comparator Tutorial

Java 8 Comparator is known from old times...Let's see what has changed!
Java 8 Supplier Tutorial - Java Guide by Live Coding

Java 8 - Supplier Tutorial

Java 8 Suppliers become an easy Functional Interface to like!

Are you interested in Mockito Guide?

Mockito is one of the best Java Libraries to work with Unit and Integration Testing! Just pick one of the awesome Mockito
features below and have fun \o/

Mockito Tutorial - Mocking Objects by using mock and verify - Java Guide by Hacking Code

Mockito - Mocking Objects by using mock() and verify()

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - Basic Usage of by when and thenReturn - Java Guide by Hacking Code

Mockito - Basic usage of when() and thenReturn() methods

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - Throwing Exceptions - Java Guide by Hacking Code

Mockito - Throwing Exceptions by using thenThrow()

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - Stubbing With Fluent Interface - Java Guide by Live Coding

Mockito - Stubying with Fluent Interface

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - Resetting Mock Interactions - Java Guide by Live Coding

Mockito - Reseting Mock Interactions

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - Ignoring Stubs - Java Guide by Hacking Code

Mockito - Ignoring Stubs Tutorial

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - BDD - Java Guide by Hacking Code

Mockito BDD - Behavior Driven Development with Mockito

Lear how to use Argument Matcher in its Fundamental way

Mockito Tutorial - Printing Custom Message - Java Tutorial by Hacking Code

Mockito - Printing Custom Message when the Verify fails

Lear how to use Argument Matcher in its Fundamental way

CDI Guide and Tutorials

Just pick the desired CDI feature below to learn more about!

CDI - Factories with @Produces Annotation - Hacking Code Java Tutorial

CDI - Factories with @Produces Annotation

Do you want to create powerful and easy Factories in CDI? Let's see how!

CDI Qualifiers Tutorial - Java CDI Guide by Hacking Code

CDI Qualifiers

Working with CDI Qualifiers
CDI Observers and Events Tutorial - Java CDI Guide by Live Coding

CDI Events and Observers

Let's see why and how to use CDI Events and Observers
CDI Lazy Initialization Tutorial - Java CDI Guide by Live Coding

CDI Lazy Initialization Tutorial

Did you know that we can initialize CDI beans lazily?
CDI Interceptors Tutorial - Java CDI Guide by Live Coding

CDI Interceptors

How to use CDI Interceptors from scratch
CDI Alternatives Tutorial - Java CDI Guide by Live Coding

CDI Alternatives Tutorial

Lear how to use Argument Matcher in its Fundamental way

CDI Decorator Tutorial - Java CDI Guide by Live Coding

CDI Decorator Tutorial

CDI Decorator is a powerful feature to deal with business Decoration!

Share This
Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

%d bloggers like this: