KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > velocity > test > TemplateTestBase


1 package org.apache.velocity.test;
2
3 /*
4  * Copyright 2001,2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 /**
20  * This is a base interface that contains a bunch of static final
21  * strings that are of use when testing templates.
22  *
23  * @author <a HREF="mailto:jon@latchkey.com">Jon S. Stevens</a>
24  * @version $Id: TemplateTestBase.java,v 1.2.14.1 2004/03/03 23:23:04 geirm Exp $
25  */

26 public interface TemplateTestBase
27 {
28     /**
29      * VTL file extension.
30      */

31     public final static String JavaDoc TMPL_FILE_EXT = "vm";
32
33     /**
34      * Comparison file extension.
35      */

36     public final static String JavaDoc CMP_FILE_EXT = "cmp";
37
38     /**
39      * Comparison file extension.
40      */

41     public final static String JavaDoc RESULT_FILE_EXT = "res";
42
43     /**
44      * Path for templates. This property will override the
45      * value in the default velocity properties file.
46      */

47     public final static String JavaDoc FILE_RESOURCE_LOADER_PATH =
48                           "../test/templates";
49
50     /**
51      * Properties file that lists which template tests to run.
52      */

53     public final static String JavaDoc TEST_CASE_PROPERTIES =
54                           FILE_RESOURCE_LOADER_PATH + "/templates.properties";
55
56     /**
57      * Results relative to the build directory.
58      */

59     public final static String JavaDoc RESULT_DIR =
60                           FILE_RESOURCE_LOADER_PATH + "/results";
61
62     /**
63      * Results relative to the build directory.
64      */

65     public final static String JavaDoc COMPARE_DIR =
66                           FILE_RESOURCE_LOADER_PATH + "/compare";
67
68 }
69
Popular Tags