Update of /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/util/xml
In directory sc8-pr-cvs1:/tmp/cvs-serv25526/src/test/core/org/krysalis/ruper2/util/xml
Modified Files:
XMLParserTests.java
Log Message:
1) Copied over Ruper1 documentation to work on
2) Worked on RepositoryTool [command line] to list groups/resoruces
3) Ignore .* files, and associate .MD5 w/ original. [Later check hash]
Index: XMLParserTests.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/util/xml/XMLParserTests.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XMLParserTests.java 29 Sep 2003 18:09:17 -0000 1.1
--- XMLParserTests.java 1 Oct 2003 21:55:55 -0000 1.2
***************
*** 9,39 ****
* @author anou_mana
*/
! public class XMLParserTests extends TestCase
! {
! public XMLParserTests(String name)
! {
super(name);
}
! public void testXMLParse() throws Exception
! {
XMLEntryTable xmlEntryTable = new XMLEntryTable();
! xmlEntryTable.put("parent","org.krysalis.ruper2.util.xml.TestParent");
! xmlEntryTable.put("child","org.krysalis.ruper2.util.xml.TestChild");
!
XMLParser parser = new XMLParser(xmlEntryTable);
XMLContext xmlContext =
parser.parse(
new File("src/java/test/core/org/krysalis/ruper/util/xml/test.xml"));
!
HashMap map = xmlContext.getCreatedTagObjects();
! assertNotNull("Has Parent Object", map.get("parent"));
! assertNotNull("Has Child Object", map.get("child"));
}
! public static void main(String[] args)
! {
junit.textui.TestRunner.run(XMLParserTests.class);
}
--- 9,35 ----
* @author anou_mana
*/
! public class XMLParserTests extends TestCase {
! public XMLParserTests(String name) {
super(name);
}
! public void testXMLParse() throws Exception {
XMLEntryTable xmlEntryTable = new XMLEntryTable();
! xmlEntryTable.put("parent", "org.krysalis.ruper2.util.xml.TestParent");
! xmlEntryTable.put("child", "org.krysalis.ruper2.util.xml.TestChild");
!
XMLParser parser = new XMLParser(xmlEntryTable);
XMLContext xmlContext =
parser.parse(
new File("src/java/test/core/org/krysalis/ruper/util/xml/test.xml"));
!
HashMap map = xmlContext.getCreatedTagObjects();
! assertNotNull("Has Parent Object", map.get("parent"));
! assertNotNull("Has Child Object", map.get("child"));
}
! public static void main(String[] args) {
junit.textui.TestRunner.run(XMLParserTests.class);
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.