01: /*
02: * Copyright 2005-2006 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package com.bostechcorp.cbesb.tools.ant;
17:
18: import junit.framework.TestCase;
19:
20: /**
21: *
22: * Trn2JavaTaskTest class
23: */
24: public class Trn2JavaTaskTest extends TestCase {
25:
26: private Trn2JavaTask task;
27:
28: /*
29: * @see TestCase#setUp()
30: */
31: protected void setUp() throws Exception {
32:
33: super .setUp();
34: task = new Trn2JavaTask();
35:
36: }
37:
38: /*
39: * @see TestCase#tearDown()
40: */
41: protected void tearDown() throws Exception {
42:
43: super .tearDown();
44: }
45:
46: public void test1() throws Exception {
47:
48: task.setSrcDir("src/xlate");
49: task.setDestDir("target/classes/generated");
50: // task.setJavaPackageName("");
51: task.execute();
52: // assertTrue(testFile.exists());
53: // FileUtil.deleteFile(rootDir);
54: }
55: }
|