Junit 5

Posted 1 CommentPosted in automated tests

When I heard about JUnit 5 this morning, I was baffled. How can you improve something that’s already perfect? Java 8 and Lamba expressions Apparently, you can. Actually, it’s fairly easy to improve JUnit 4. The most obvious step is to migrate to Java 8. JUnit 5 fully embraces the new features of Java 8. […]

How to Use Mockito to Test JSF Components

Posted 5 CommentsPosted in automated tests, BootsFaces, Mockito, quality assurance

There are two strategies to write JUnit test for JSF applications. The first strategy uses a tool like Arquillian to start both an application server and a browser that runs a JSF application. Yeray Santana Borges used this strategy to contribute a couple of JUnit tests to BootsFaces. This approach has many advantages. It runs […]