1
2
3
4
5
6
7
8
9
10
11 package org.mule.config.spring;
12
13 import org.mule.api.MuleContext;
14 import org.mule.tck.FunctionalTestCase;
15
16 public class RejectOldConfigTestCase extends FunctionalTestCase
17 {
18
19 protected String getConfigResources()
20 {
21 return "old-config.xml";
22 }
23
24 public void testParse()
25 {
26
27 }
28
29 protected MuleContext createMuleContext() throws Exception
30 {
31 try {
32 super.createMuleContext();
33 fail("Context created with no problems - expected failure");
34 }
35 catch (Exception e)
36 {
37 String msg = e.getMessage();
38 assertTrue(msg, msg.indexOf("Unable to locate NamespaceHandler for namespace [null]") > -1);
39 }
40 return null;
41 }
42
43 }