betfair/cougar — pull request #1 by paulo-santos (2013-10-27 15:07:11+00:00)
Title: Fix failing test because of the test order

The build was failing on my system:
Apache Maven 3.1.0
Java version: 1.7.0_45, vendor: Oracle Corporation
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac"

After debugging I found out that the RescriptOperationBindingTest fails if JsonRpcTransportCommandProcessorTest runs before.
As we are running all the tests in the same thread, we need to be careful when playing with ThreadLocal.
JsonRpcTransportCommandProcessorTest, sets the EnumUtils.setHardFailureForThisThread(false), which is changing the default value that is "true".

It happens because it uses the primitive type boolean "hardFailEnumDeserialisation" value from AbstractHttpCommandProcessor, which has not been set before starting the test, and therefore is value is false.