See tdd4c-example-logic MyLogic4 for examples.Whenever there is a need to test some function defined on some element, one can do it this way
Paste code macro | ||
---|---|---|
| ||
when:
TestRun testRun = TestRun.builder()
.buildElementTest("MyLogic4", "Element")
then:
testRun.getElementScript().sumOfCosts("someSku", 5) == 9 |