Netflix / glisten

Ease of use Groovy library for building JVM applications with Amazon Simple Workflow (SWF)
Apache License 2.0
67 stars 31 forks source link

Properties of a workflow implementation are not usable in unit tests. #19

Open claymccoy opened 10 years ago

claymccoy commented 10 years ago

Referring to a property of a workflow implementation throws an error like this: groovy.lang.MissingPropertyException: No such property: isStreamingGameOfThronesEnabled for class: com.netflix.glisten.impl.local.ScopedTries

This is due to the scoping hierarchy built at runtime. Refering to the getter and setter methods rather than the property seems like it would work, but still does not. You will get out the value that you put in unless you are in the exact same scope.