Home » Tag Archives: Testing (page 14)

Tag Archives: Testing

Testing Spring components with Mockito

mockito-logo

Be able to unit test your spring components without the need of loading the full spring-context with its ad-hoc test configurations it is ,in my opinion, a great advantage because it’s clean, easy to maintain, faster to write, smooth to alter. A way to achieve this goal is to use Mockito and tell him to replace the @Autowired components in ...

Read More »

Project Student: Sharding Integration Test Data

spring-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client With Jersey, Webservice Server with Jersey, Business Layer and Persistence with Spring Data. All of the integration tests until now have used an in-memory embedded database that did not retain information from run to run. This changes when we fully integrate the REST server with a “real” database server ...

Read More »

Introduction To JUnit Theories

junit-logo

Have you ever read a mathematical theory? It typically reads something like this: For all a, b > 0  the following is true: a+b > a and a+b > b Just typically the statements are more difficult to understand. There is something interesting about this kind of statement: It holds for EVERY element (or combination of elements) of a rather ...

Read More »

Adding Social Sign In to a Spring MVC Web Application: Unit Testing

spring-interview-questions-answers

Spring Social 1.0 has a spring-social-test module which provides support for testing Connect implementations and API bindings. This module was removed from Spring Social 1.1.0, and it was replaced with the Spring MVC Test framework. The problem is that there is practically no information about writing unit tests for an application which uses Spring Social 1.1.0. This blog post fixes ...

Read More »

Attitudes of a Great Software Tester

software-development-2-logo

In my previous post, I explained in my own words the “Attitude of a Great Software Developer“.  This post will focus on the testers.  Developers and Testers are two great personalities that work literally in the opposite direction but towards a common goal of producing good quality software.  One deals with the making aspect of the software and other with ...

Read More »

Parameterized JUnit tests with JUnitParams

junit-logo

Parameterized unit tests are used to to test the same code under different conditions. Thanks to parameterized unit tests we can set up a test method that retrieves data from some data source. This data source can be a collection of test data objects, external file or maybe even a database. The general idea is to make it easy to ...

Read More »

Run, JUnit! Run!!!

junit-logo

JUnit together with JavaScript and SVN are some of the technologies that programmers often start using without even reading a single blog post let alone a book.  Maybe this is a good thing since they look simple enough and understandable so we can use them right away without any manuals, but this also means that they are also underused. In ...

Read More »

Hibernate Facts: Integration testing strategies

jboss-hibernate-logo

I like Integration Testing, it’s a good way to check what SQL queries Hibernate generates behind-scenes. But Integration Tests require a running database server, and this is the first choice you have to make. 1. Using a production-like local database server for Integration Testing For a production environment I always prefer using incremental DDL scripts, since I can always know ...

Read More »

Acceptance Testing: Blaming the Tools

software-development-2-logo

About 5 years ago I was on a project to build a system for collateral management. The system was connected to a large financial network, and got its instructions through standardized financial messages. This project was run in waterfall style, with lots of restrictions on collaboration between disciplines. Without to digress in details on this, I do still think it’s ...

Read More »

Using Matchers in Tests

hamcrest-logo

Gone are the days when we were forced to write way too many assertion lines in our testing code. There is a new sheriff in town: assertThat and his deputy: the matchers. Well, not that new, but anyway I’d like to present to you shortly how matchers are used and after that an extension to matchers concept that I found ...

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