Tags » JUnit

Tutorial: Java abstract classes testing

In Java, abstract classes are used to define the interface of the class, with a list of (abstract) methods to be implemented by the extending class; basically what it is also possible to have with the “real” interfaces, the one defined with the interface instruction. 2,218 more words

Java

Testing System.in and System.out with system-rules

Writing unit tests is an integral part of software development. One problem you have to solve when your class under test interacts with the operating system, is to simulate its behaviours. 618 more words

Java

Re: Redesigning Hamcrest

Jacob Zimmerman just wrote an interesting post “Redesigning Hamcrest”. There is very little to add but we also made several experiences with Hamcrest.

Just in case you do not know: … 336 more words

Dev

Powermock - How to mock static, private methods (Powermock tutorial)

This tutorial tries to explain how to use Powermock to mock static and private methods.

Powermock is an awesome framework that extends mock frameworks like… 688 more words

Java

Book review: Sujoy Acharya - Mockito essentials

A few weeks back I was contacted by Packt Publishing to review a relatively newly published book: Mockito essentials. Without any further talk, let’s see: 652 more words

JUnit

Organizing JUnit Directories For Readability

The first ANT build.xml file I used for my testing project was created via Eclipse’s “Export ANT Buildfiles” feature. This feature saved me so much time because it contained almost everything I needed to get up and running right away without having to learn everything about how to create a proper… 448 more words

Unit Testing in AEM (thinking loud)

This is not a recommendation of any sorts but a culmination of ideas and a few options that are available for us to use if we want to do unit testing within AEM.  739 more words

Adobe