Is JUnit only for unit testing? What about system testing or UAT?
TLDR; We can use JUnit to execute code to support any type of testing.
How to debug Java with IntelliJ: breakpoints, evaluate expression, watches and variable view
I have deliberately created a failing test. Obviously deliberately since I would never ever create such simple issues in code.
Does dependency between test execution imply lack of abstraction layers?
TLDR; I try to write tests at an appropriate semantic level so I never need to create dependencies between @Test methods, I re-use abstraction calls instead of dependencies between @Test methods.
An example of creating a 'tool' using @Test methods without building a Java application
We don’t have to build full applications to create test tools. Sometimes we write throwaway tests.
What is a Java `main` method - simple example
An explanation of the Java Main method, and why we don’t really need it when automating.
How to learn to code Java without using a 'main' method
In the book Java For Testers, I teach Java slightly differently to make it easier to learn. Let me explain how.
Switching between Java versions on a Mac
I just installed JDK 1.8 and had a problem configuring and switching versions.
FAQ: Should I use JUnit or TestNG, which is better?
Since I do receive this question via email quite a lot, I will answer it as an FAQ.
FAQ: Why do I only see test that fail in IntelliJ and not the tests that pass?
When you run your tests in IntelliJ you may have seen an output where only the failing tests are shown in the run pane tree.
Do "Enable Auto-Import" in IntelliJ for "Maven projects need to be imported"
If you see the “Maven projects need to be imported” popup in IntelliJ, then do click “Enable Auto-Import”.


