Awaitility, Java

Fixed repetition in thread

What to do when you have to run some thread and make it do the same things for X times? We can do it in several ways, but today I am going to show you achieve it using ExecutorService implementations:

  • scheduled thread executor
  • single thread executor

Continue reading

Advertisements
AssertJ, Java, JUnit, Maven, Mockito, Spring Framework

I against U

As we know now, that we should test each and every part of code, it is time to cover our application with tests. We can distinguish two main types of automatic tests:

  • unit
  • integration

Today, I’m going to show you how to set up environment for testing purpose using IntelliJ, maven, jUnit, AssertJ, Mockito and Spring Framework.

Continue reading