* @author Phil Zoio
*/
public class SimpleSpringContextTest extends TestCase {
public void testHasModule() {
SimpleModuleDefinitionSource definition = new SimpleModuleDefinitionSource("impala-core", new String[] { "l0", "l1", "l2" }, new String[] { "p1", "p2" });
assertNotNull(definition);
final RootModuleDefinition root = definition.getModuleDefinition();
assertEquals(3, root.getConfigLocations().size());
assertTrue(root.hasChildModuleDefinition("p1"));
assertTrue(root.hasChildModuleDefinition("p2"));
assertFalse(root.hasChildModuleDefinition("p3"));