have a problem here, and I'm really tired of try to find an solution...
Every time I use this:
Map<Object, Object2> comparisonMap = new HashMap<>()
comparisonMap.put(object, object2)
I receive an error message like this:
Condition not satisfied:
comparisonMap.put(object, object2)
| | | |
| | object object2
| null
[object:object2]
And I'm really stuck at this. Can someone help me to figure out a solution?
You must be doing this in a
thenblock.then:blocks are for asserting something is true.Map.putis avoidmethod, so groovy will evaluate this asfalseThe solution is to do this
putin the correct block... You don't show your spock test though, so I can't suggest a solution