Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. component extends='approot.test.BaseTestCase' {
  2.  
  3.     public void function setUp() {
  4.         // Call the super setup method to setup the app.
  5.         super.setup(); 
  6.     }
  7.    
  8.     public void function testSend() {
  9.         // Execute the event we want to test.
  10.         local.event = execute("tester.send");
  11.        
  12.         debug(local.event.getCollection());
  13.        
  14.         //Do your asserts below
  15.         assertEquals("Thank you for your comment", local.event.getValue("message",""), "Failed to send the email.");   
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement