1 package org.apache.velocity.test; 2 3 18 19 27 public class AnakiaTestCase extends BaseTestCase 28 { 29 private static final String COMPARE_DIR = "../test/anakia/compare"; 30 private static final String RESULTS_DIR = "../test/anakia/results"; 31 private static final String FILE_EXT = ".html"; 32 33 37 public AnakiaTestCase() 38 { 39 super("AnakiaTestCase"); 40 } 41 42 public static junit.framework.Test suite() 43 { 44 return new AnakiaTestCase(); 45 } 46 47 52 public void runTest () 53 { 54 try 55 { 56 assureResultsDirectoryExists(RESULTS_DIR); 57 58 if (!isMatch(RESULTS_DIR,COMPARE_DIR,"index",FILE_EXT,FILE_EXT)) 59 { 60 fail("Output is incorrect!"); 61 } 62 else 63 { 64 System.out.println ("Passed!"); 65 } 66 } 67 catch(Exception e) 68 { 69 72 } 73 } 74 } 75 | Popular Tags |