Archive for November, 2010
Magic Cast Method in Java
Posted by gamlerhart in java on November 24, 2010
Since Java introduced generics the type declarations got at lot longer. This is especially annoying when an API forces you to cast objects, like the reflection-API, the JDO-API , etc. There are plenty of APIs which requires such casts. Those casts force you to write the (obvious) type twice, for the type-declaration and the cast. [...]
Read complete postC# 5.0 Async-Feature: Unit Testing Part III, Avoid Void.
Posted by gamlerhart in .NET on November 11, 2010
Disclaimer: This post is based on the C# 5.0 CTP. Everything described here is subject to future changes. Last time I demonstrated that the synchronization context is also relevant for unit testing and that you might need to setup one in your tests. This time we’re going to explore what we can do when a [...]
Read complete postC# 5.0 Async-Feature: Unit Testing Part II, Synchronization-Context Again?
Posted by gamlerhart in .NET on November 8, 2010
Disclaimer: This post is based on the C# 5.0 CTP. Everything described here is subject to future changes. Last time we explored some implications of the C# asynchronous operations for unit tests. We noticed that we need to orchestrate tests to honor the asynchronous nature of our code. This time we take a look at [...]
Read complete postC# 5.0 Async-Feature: Unit Testing, Part I
Posted by gamlerhart in .NET on November 4, 2010
Disclaimer: This post is based on the C# 5.0 CTP. Everything described here is subject to future changes. I’ve already discussed some implications of the async feature in my previous post. In this post I focus on some challenges for unit test. Once again I assume that everyone is informed about the basics of the [...]
Read complete post