CCR tips and tricks – part 1

Since I practice TDD it's important to have a good way to test my CCR based code. The first problem to solve then is to call CCR code which is asynchronous in nature from a unit test that is very synchronous in its nature. The way I've ended up is to use a PortUtility class that have synchronous versions of two very common CCR methods; Choice and Receive. Since my unit tests also should execute very fast I have a short default timeout so that I know that my tests don't hang around for too long. Attached is a file implementing the PortUtility class that will be used in future CCR tips and tricks.

UPDATE: If you like this, you probably love part 25.


Comments (1)

  1. In the very first CCR tips and tricks I gave you a utility to essentially make CCR code synchronous to

Skip to main content