Advertisement
talkingtree

MXUnit method sequence - ATest.cfc

Mar 30th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. component extends="mxunit.framework.TestCase"
  2. output="false"
  3. {
  4.  
  5. // Do once, before any test
  6. public void function beforeTests() {
  7. writedump(var="-> beforeTests() called #now()#",format="text",output="console");
  8. }
  9.  
  10. // Do once, after all tests
  11. public void function afterTests() {
  12. writedump(var="-> afterTests() called #now()#",format="text",output="console");
  13. }
  14.  
  15. // Do before each test function
  16. public void function setUp() {
  17. writedump(var="-> setup() called #now()#",format="text",output="console");
  18. }
  19.  
  20. // Do after each test function
  21. public void function tearDown() {
  22. writedump(var="-> tearDown() called #now()#",format="text",output="console");
  23. }
  24.  
  25. // ================ TESTS ================
  26.  
  27. public void function alphaTest(){
  28. writeDump(var="-> This is alphaTest #now()#",output="console",format="text");
  29. assertTrue(true);
  30. }
  31.  
  32. public void function betaTest(){
  33. writeDump(var="-> This is betaTest #now()#",output="console",format="text");
  34. assertTrue(true);
  35. }
  36.  
  37. public void function zetaTest(){
  38. writeDump(var="-> This is zetaTest #now()#",output="console",format="text");
  39. assertTrue(true);
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement