Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

See tdd4c-example-logic MyLogic4 for examples.Whenever you need to test a function defined in an element, you can do it this way:

Code Block
languagegroovy
TestRun testRun = TestRun.builder()
        .buildElementTest("MyLogic4", "Element")

testRun.getElementScript().sumOfCosts("someSku", 5) == 9