1 /* 2 * Replica is published under the terms 3 * of the Apache Software License. 4 */ 5 package replica.command.xml; 6 7 import replica.command.Mappings; 8 import replica.command.MockCommand; 9 import junit.framework.TestCase; 10 11 /*** 12 * 13 * @author Pedro Costa 14 * @author Helder Silva 15 * @since 18/Jan/2004 16 */ 17 public class XmlCommandProcessorTest extends TestCase { 18 19 /*** 20 * Constructor for XmlCommandProcessorTest. 21 * @param name 22 */ 23 public XmlCommandProcessorTest(String name) { 24 super(name); 25 } 26 27 /* 28 * Test for Mappings readMappings() 29 */ 30 public void testReadMappings() { 31 32 XmlCommandProcessor proc = new XmlCommandProcessor(); 33 34 proc.setConfigurationFileFullPath("replica/command/xml/test-commands.xml"); 35 36 Mappings mapps = proc.readMappings(); 37 38 assertNotNull( mapps ); 39 40 assertEquals( MockCommand.class, mapps.getMappedClass("select") ); 41 } 42 43 }

This page was automatically generated by Maven