Files
ofbiz-framework/framework/base/src
Jacques Le Roux 7cc7fd2cea Improved: Allow unit tests to be written in Groovy
(OFBIZ-10611)

Since OFBIZ-9996 it is possible to write integration tests in Groovy, meaning 
test that depend on the dispatcher and the delegator. It would be nice if the 
unit tests could be written in Groovy too.

The major benefit of writing tests in Groovy is that you create inputs and 
expected outputs more easily with objects literals. 
For example the following java code:

Map<String, Integer> input = new HashMap<>();
  input.put("foo", 42);
  input.put("bar", 37);

can be rewritten in Groovy like this:
  def input = [foo: 42, bar: 37]

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846393 13f79535-47bb-0310-9956-ffa450edef68
2018-11-12 10:57:27 +00:00
..