Recently I've been working on getting unit tests set up for a decent chunk of java code. The existing tests were more of a placeholder until the team …
Testing extensions always requires testing parallel/non-parallel execution and post-test callbacks validation. It is impossible to do with regular tests, but, thankfully, JUnit 5 provides a TestKit for running and recording test execution (…
Writing a plain JUnit extension is quite a straightforward task and it is described well in user-guide.
It gets a bit more complicated when we try to inject Spring components into the integration testing context.
Let's try to clean up embed…
JUnit is a unit testing framework for Java and can be used for automation testing in CI/CD pipeline.
Junit methods - assertTrue(condn),assertFalse(condn),assertEquals(expected,actual),assertNull(),assertArrayEquals(expected,actual)
In my latest blog post, I advised reassessing one's opinion now and then as the IT world changes fast. What was true a couple of years ago could be de…