Home » Tag Archives: Testing (page 15)

Tag Archives: Testing

Integration tests with Maven 3, Failsafe and Cargo plugin

apache-maven-logo

Unit testing is available in Maven out of the box. Because of that very often its used for integration tests as well. Major disadvantage of this is that integration tests can take much more time to execute and because no one likes to wait long time every build – tests are just skipped with -Dmaven.test.skip=true flag In order to execute ...

Read More »

JBoss Drools unit testing with junit-drools

jboss-drools-logo

Recently I’ve been working with a project heavily using JBoss Drools. I am not Drools expert – I am not also very convinced to this framework, or maybe only to particular use case in this project – and I found it quite difficult to write simple, maintainable unit tests for Drools based business rules. That’s how junit-drools was born – ...

Read More »

Write effective Load Tests using JUnit and Repeat annotation

junit-logo

EasyTest recently introduced a new set of annotations that would help its users write effective test cases. The two main annotations that found their way into EasyTest are : Repeat Duration Today we will discuss about the Repeat annotation. A new method level annotation Repeat has been added to the EasyTest Framework. This annotation can be used to repeat the ...

Read More »

Imbibing the Fluency of Mockito

mockito-logo

I recently found myself writing some code to integrate two disparate platforms. One of these systems is Java based and the other, while not written in Java, offers a Java API. I’ll call these systems Foo and Bar, respectively. It became obvious before I had written a line of code, however, that testing the eventual adapter would require I explicitly ...

Read More »

Unit Testing of Spring MVC Controllers: REST API

spring-interview-questions-answers

Spring MVC provides an easy way to create REST APIs. However, writing comprehensive and fast unit tests for these APIs has been troublesome. The release of the Spring MVC Test framework gave us the possibility to write unit tests which are readable, comprehensive and fast. This blog post describes how we can write unit tests for a REST API by ...

Read More »

Sometimes TDD Requires a Hammer

software-development-2-logo

While there are myriad mocking libraries available for the Java platform, only a select few of these nifty frameworks is capable of mocking the non-mock-friendly modifiers of static and final. Static (or class) methods, while handy for factories, become a nuisance for a framework like Mockito, however, with the inclusion of PowerMock, you’ve got yourself a proverbial hammer. As I ...

Read More »

Performance tests for slow networks with tc

devops-logo

tl;dr: you can easily replicate slow network conditions which makes it easier to performance test them. Smartphones have made both mobile websites and apps that have to connect in mobile situations a lot more common. There’s also a lot of value to be had in servicing these kind of customers and in recent years we’ve arrived at the stage where ...

Read More »

Run your Unit Tests in Parallel

junit-logo

It was about time when the developer of Unit Tests had the ability to run the tests in Parallel using annotations. In today’s blog post, we will look at how you can make your traditional Junit Tests to run in parallel using annotations provided by Easytest. EasyTest  is a Testing Framework build on top of JUnit to provide you ease ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close