1
2
3
4
5
6
7
8
9
10
11 package org.mule.module.scripting.config;
12
13 import org.mule.api.config.ConfigurationException;
14 import org.mule.api.lifecycle.InitialisationException;
15 import org.mule.context.DefaultMuleContextFactory;
16
17 import junit.framework.TestCase;
18
19 public class ScriptingConfigErrorTestCase extends TestCase
20 {
21 public void testMissingEngine() throws InitialisationException
22 {
23 try
24 {
25 new DefaultMuleContextFactory().createMuleContext("config-error.xml");
26 fail("This config should have thrown an exception because the 'engine' attribute is required");
27 }
28 catch (ConfigurationException e)
29 {
30
31 }
32 }
33 }
34
35