JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

Mock methods using transients.

The original idea can be removed as the functionality can be implemented using process.createTransientClass(..). However can this undocumented method be made part of the official release?

  • Guest
  • Dec 18 2019
  • Needs review
  • Attach files
  • John Beaufoy commented
    December 19, 2019 05:54

    If I've understood your question correctly, you don't want the overhead of creating mock subclasses?

    If so you might find some ideas in the link below, but in short, create the mock class transiently using process.createTransientClass(..) ). 

    Warning: this function is likely to be unpublished, so if you come to rely on it you'd need to discuss with Jade to see it published.

    https://github.com/jadelab/AutomatedTestSchema/wiki/Test-Doubles