SpringSource/spring-integration — pull request #855 by garyrussell (2013-08-27 01:13:49+00:00)
Title: INT-3115 EvaluationContext Initialization Polishing

I temporarily changed the WARN log in ExpressionUtils to throw an exception if an attempt to obtain an `EvaluationContext` with a null `BeanFactory` was detected.

While this mainly was intended to eliminate the WARN logs from the test cases, it also exposed a number of cases where an `EvaluationContext` was obtained either before the `BeanFactory` was injected, or one was never injected.

This PR consists of 2 commits; the first is a relatively small commit fixing the latter issues, by ensuring the BF is available before the context is created.

The second is only changes to tests; mostly adding a mock `BeanFactory`, to avoid the WARN log.