• Nagendra Singh 42
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,
I read about canvas app while building a spring boot Project. Now the issue is what if someone from another org is trying to access my canvas app, How can I handle this scenario when the canvas app requiers a, Consumer secret as input. This will be different for every org right? Is there a way arounf it?
For writing unit test for trigger handler, is it necessay to call the methods in trigger handler by giving an insert, update or delete statement?
Or Can I call the trigger handler methods directly and pass the required argument through the method parameters.

The second approach seems to be the correct way of unit testing the handlers and other classes except the trigger. This will ensure that you have a set of data before passing it to the method, rather than depending upon the trigger to execute the handler methods.

Please suggest which one is better?
Is it usually just as easy to convert from jpg to pdf.