Clover Coverage Report - KS Contract Documentation Generator 0.0.1-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
18   78   6   3
0   48   0.33   6
6     1  
1    
 
  KSDictionaryDocMojoTest       Line # 31 18 0% 6 24 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
9    *
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 org.kuali.student.datadictionary.mojo;
17   
18    import java.io.File;
19    import java.util.ArrayList;
20    import java.util.List;
21    import org.junit.After;
22    import org.junit.AfterClass;
23    import org.junit.Before;
24    import org.junit.BeforeClass;
25    import org.junit.Test;
26    import static org.junit.Assert.*;
27    /**
28    *
29    * @author nwright
30    */
 
31    public class KSDictionaryDocMojoTest {
32    private static final String DICTIONARY_DOC_DIRECTORY = "target/site/dictionary";
 
33  0 toggle public KSDictionaryDocMojoTest() {
34    }
35   
 
36  0 toggle @BeforeClass
37    public static void setUpClass() throws Exception {
38    }
39   
 
40  0 toggle @AfterClass
41    public static void tearDownClass() throws Exception {
42    }
43   
 
44  0 toggle @Before
45    public void setUp() {
46    }
47   
 
48  0 toggle @After
49    public void tearDown() {
50    }
51   
52    /**
53    * Test of execute method, of class KSDictionaryDocMojo.
54    */
 
55  0 toggle @Test
56    public void testExecute() throws Exception {
57  0 System.out.println("execute");
58  0 KSDictionaryDocMojo instance = new KSDictionaryDocMojo();
59  0 List<String> supportFiles = new ArrayList ();
60    // supportFiles.add("ks-AtpInfo-dictionary-generated.xml");
61  0 supportFiles.add("ks-base-dictionary.xml");
62  0 supportFiles.add("ks-base-dictionary-validchars.xml");
63  0 supportFiles.add("org/kuali/rice/krad/bo/datadictionary/DataDictionaryBaseTypes.xml");
64  0 supportFiles.add("org/kuali/rice/krad/uif/UifControlDefinitions.xml");
65  0 supportFiles.add("org/kuali/rice/krad/uif/UifWidgetDefinitions.xml");
66  0 supportFiles.add("org/kuali/rice/krad/uif/UifFieldDefinitions.xml");
67  0 supportFiles.add("org/kuali/rice/krad/uif/UifGroupDefinitions.xml");
68  0 instance.setSupportFiles(supportFiles);
69  0 List<String> inputFiles = new ArrayList ();
70  0 inputFiles.add("ks-AtpInfo-dictionary.xml");
71    // inputFiles.add("ks-LprInfo-dictionary.xml");
72  0 instance.setInputFiles(inputFiles);
73  0 instance.setHtmlDirectory(new File (DICTIONARY_DOC_DIRECTORY));
74  0 instance.execute();
75  0 assertTrue(new File(instance.getHtmlDirectory() + "/" + "index.html").exists());
76  0 assertTrue(new File(instance.getHtmlDirectory() + "/" + "AtpInfo.html").exists());
77    }
78    }