Sunday, July 17, 2011

More Git beginner commands

In my other blog post I introduced 10 important Git commands. This blog is a listing of additional usefull commands when working with Git.

Tuesday, July 5, 2011

Top 10 commands for the Git newbie

If you're new to Git you will recognize that some things work different compared to SVN or CVS based repositories. This blog explains the 10 most important commands in a Git workflow that you need to know about.

Friday, July 1, 2011

Integration testing scoped beans in CDI 1.0 and Spring 3.1

In this blog post I describe how to do integration testing with scoped beans in Spring and CDI. Everything is illustrated with small code samples. Integration testing with scopes is not particular easy. Imagine a bean that lives in the session scope, like UserCredentials. In an integration test you typically have no HttpRequest or HttpSession to work on (at least if you are not doing tests that include your user interface). Therefore you need some infrastructure for integration testing. With both technologies it is a little puzzling to get this infrastructure going. Get your own picture of it.

Custom scopes in CDI 1.0 and Spring 3.1

This blog post describes in short how to implement custom scopes in CDI using Weld 1.1 and Spring 3.1. To get basic information on scoping see the Spring reference or the Weld reference respectively.