Viktar Patotski Profile picture
Nov 29 12 tweets 9 min read
Top 6 #Java testing libraries every Java developer should know about and use 👇
JUnit 5 - unit testing framework for the Java programming language.

junit.org/junit5/
AssertJ by @JoCosti - fluent chaining assertions java library. One of the most powerful and convenient ways to write assertions. It's also included in the @springboot test framework.

assertj.github.io/doc/
@JoCosti @springboot Awaitility by @johanhaleby - DSL that allows you to express expectations of an asynchronous system in a concise and easy to read manner. Write better tests in asynchronous and multi-threaded apps. It helps to get rid of "Thread.sleep(1000)" in your tests.
github.com/awaitility/awa…
@JoCosti @springboot @johanhaleby REST Assured by @johanhaleby brings simplicity to testing and validating REST services in Java.
rest-assured.io
@JoCosti @springboot @johanhaleby XMLUnit by Stefan Bodewig - a library that supports testing XML output in several ways. Assert your XMLs with pleasure.
github.com/xmlunit/xmlunit
@JoCosti @springboot @johanhaleby JsonUnit @lukas_krecan - a library that simplifies JSON comparison in tests. I especially enjoy its AssertJ integration.
github.com/lukas-krecan/J…
@JoCosti @springboot @johanhaleby @lukas_krecan Use these libs in your Java projects, make your tests better, and respect to creators.

Retweet to help spread knowledge. Follow me for more content. Happy testing!
Mockito by @mockitoguy - the most popular and very tasty mocking framework for unit tests in Java.

site.mockito.org
+Mockito by @mockitoguy
- the most popular and very tasty mocking framework for unit tests in Java.

site.mockito.org
+Testcontainers by @whichrich - a Docker-based tool to aid in­te­gration test­ing in Java. Runs instances of databases, Selenium web browsers, or anything else that can run in a Docker container. @bsideup contributes a lot to testcontainers-java.

testcontainers.org
+WireMock by @TomAkehurst - the flexible tool for building mock APIs. Enables you to test your HTTP clients without accessing real remote API servers.

wiremock.org

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Viktar Patotski

Viktar Patotski Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @xpvit

Jun 30, 2020
Often Software Developers are also called Professional Googlers. This means that we need to be really proficient in it. So this thread will provide you with tips and tricks which help you to become #10xengineer in Googling. Let's start ➡️➡️➡️
1. Use quotes for "exact match" searches. Often when you search for a particular error message try searching with quotes first to get your results faster. Very helpful when you need to understand error or warning messages in logs.
2. Use '*' in as a wildcard. Use case: when searching for errors messages replace parts specific to your code(folder or package names). Also helpful you want to find a song, but remember only some words then replace the unknown part with '*'. 🎶
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(