Tags » JUnit » Page 2

Integration tests using Docker

Need for integration testing:

For all our projects we generally create two types of tests

  • Unit Tests
  • Integration Tests

Unit tests are comparatively simple as we validate a block of code which has some business logic. 853 more words

Software Architecture

Eagles RT Lane Johnson welcomes baby boy

Philadelphia Eagles star right tackle Lane Johnson will be protecting someone other than Carson Wentz, as the star offensive linemen shared the news with Eagles fans, that he’s a proud poppa. 62 more words

Philadelphia Eagles

Testcontainers, Bringing Sanity to Integration Testing

Writing and maintaining integration tests can be a difficult and frustrating experience, filled with a veritable minefield of things that could go wrong. For integration tests that connect to a remote resource you have issues of: the resource being down, datasets being changed or deleted, or heavy load causing tests to run slow. 1,491 more words

Automated Testing

Maven Project Setup for Mixing Spock 1.x and JUnit 5 Tests

I create a sample Groovy project for Maven, that mixes Spock tests and JUnit 5 tests in one project. In the next section I’ll describe how to set up such kind of Maven project. 618 more words

Continuous Integration

Padlock simulations and Shakespeare

Hello World!

After posting about anything else than code it’s time to look at programming again.

I’ve written a simulation on a padlock quite a while ago and will finish this hopefully soon. 45 more words

Programming

Why You Should Start Injecting Mocks as Method Arguments

One of the big improvements that came in JUnit 5 was support for dependency injection via constructors and methods. Since the release of JUnit 5 in September 2017, third-party libraries, like mockito, … 638 more words

Automated Testing

Variations in Mockito-Verify

Having started with Mockito and the basic when… then… methods, today let us try out some more Mockito unit tests using the various variations of the… 823 more words

Prapancha