1 package org.apache.velocity.test; 2 3 18 19 import java.io.File ; 20 import org.apache.velocity.VelocityContext; 21 import org.apache.velocity.util.StringUtils; 22 import junit.framework.TestCase; 23 24 31 public class TexenClasspathTestCase 32 extends BaseTestCase 33 { 34 37 private static final String RESULTS_DIR = "../test/texen-classpath/results"; 38 39 42 private static final String COMPARE_DIR = "../test/texen-classpath/compare"; 43 44 48 public TexenClasspathTestCase() 49 { 50 super("TexenClasspathTestCase"); 51 } 52 53 public static junit.framework.Test suite() 54 { 55 return new TexenClasspathTestCase(); 56 } 57 58 61 protected void setUp () 62 { 63 } 64 65 68 public void runTest () 69 { 70 try 71 { 72 assureResultsDirectoryExists(RESULTS_DIR); 73 74 if (!isMatch(RESULTS_DIR,COMPARE_DIR,"TurbineWeather","java","java") || 75 !isMatch(RESULTS_DIR,COMPARE_DIR,"TurbineWeatherService","java","java") || 76 !isMatch(RESULTS_DIR,COMPARE_DIR,"WeatherService","java","java") || 77 !isMatch(RESULTS_DIR,COMPARE_DIR,"book","txt","txt") || 78 !isMatch(RESULTS_DIR,COMPARE_DIR,"Test","txt","txt")) 79 { 80 fail("Output is incorrect!"); 81 } 82 } 83 catch(Exception e) 84 { 85 88 } 89 } 90 } 91 | Popular Tags |