View Javadoc

1   /**
2    * Copyright 2005-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.opensource.org/licenses/ecl2.php
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.rice.kew.xml;
17  
18  import org.junit.Test;
19  import org.kuali.rice.kew.test.KEWTestCase;
20  
21  
22  public class XmlImportTest extends KEWTestCase {
23  
24  	/*public void testCanParseWhiteSpace() throws Exception {
25  		//XmlImportTest_white_space_test.xml contains white space that will make things choke if not 
26  		//properly handled
27  		this.loadXmlFile("XmlImportTest_white_space_test.xml");
28  		
29  	}
30  
31  	public void testCantParseReturnChar() throws Exception {
32  		this.loadXmlFile("XmlImportTest_white_space_return_char_test.xml");
33  	}*/
34  	
35  	@Test public void testRuleTemplate() throws Exception{
36  		this.loadXmlFile("RuleTemplate_test_white_space.xml");		
37  		this.loadXmlFile("RuleTemplate_test_newline.xml");
38  	}
39  	
40  	@Test public void testDocumentType() throws Exception{
41  		this.loadXmlFile("DocumentType_white_space_test.xml");
42  		this.loadXmlFile("DocumentType_newline_test.xml");
43  	}
44  	
45  	@Test public void testRule() throws Exception{
46  		this.loadXmlFile("Rule_white_space_test.xml");
47  		this.loadXmlFile("Rule_newline_test.xml");
48  		
49  	}
50  	
51  }