1 17 18 package org.apache.tools.ant.types; 19 20 import org.apache.tools.ant.BuildException; 21 import org.apache.tools.ant.Project; 22 import org.apache.tools.ant.BuildFileTest; 23 24 import junit.framework.TestCase; 25 import junit.framework.AssertionFailedError; 26 27 33 public class XMLCatalogBuildFileTest extends BuildFileTest { 34 35 public XMLCatalogBuildFileTest(String name) { 36 super(name); 37 } 38 39 public void setUp() { 40 } 41 42 public void tearDown() { 43 } 44 45 public void testEntityNoCatalog() { 53 configureProject("src/etc/testcases/types/xmlcatalog.xml"); 54 expectPropertySet("testentitynocatalog", "val1", 55 "A stitch in time saves nine"); 56 } 57 58 public void testEntityWithCatalog() { 67 configureProject("src/etc/testcases/types/xmlcatalog.xml"); 68 expectPropertySet("testentitywithcatalog", "val2", 69 "No news is good news"); 70 } 71 72 public void testDocumentNoCatalog() { 81 configureProject("src/etc/testcases/types/xmlcatalog.xml"); 82 expectPropertySet("testdocumentnocatalog", "val3", 83 "A stitch in time saves nine"); 84 } 85 86 public void testDocumentWithCatalog() { 96 configureProject("src/etc/testcases/types/xmlcatalog.xml"); 97 expectPropertySet("testdocumentwithcatalog", "val4", 98 "No news is good news"); 99 } 100 } 101 | Popular Tags |