1   package org.apache.maven.jxr;
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  import junit.framework.TestCase;
21  
22   /** A test class for JxrBean. */
23  public class JxrBeanTest
24      extends TestCase
25  {
26  
27      /** A JxrBean. */
28      private JxrBean jxrBean;
29  
30      /** Setup.
31       * @throws Exception Exception
32       */
33      protected void setUp()
34          throws Exception
35      {
36          super.setUp();
37          jxrBean = new JxrBean();
38          jxrBean.setSourceDir( System.getProperty( "basedir" ) + "/src/test" );
39          jxrBean.setDestDir( System.getProperty( "basedir" ) + "/target" );
40          jxrBean.setInputEncoding( "ISO-8859-1" );
41          jxrBean.setOutputEncoding( "ISO-8859-1" );
42          jxrBean.setTemplateDir( "templates" );
43          jxrBean.setJavadocDir( "" );
44          jxrBean.setWindowTitle( "title" );
45          jxrBean.setDocTitle( "title" );
46          jxrBean.setBottom( "copyright" );
47      }
48  
49      /** testXref.
50       * @throws Exception Exception
51       */
52      public void testXref()
53          throws Exception
54      {
55          jxrBean.xref();
56      }
57  
58  }