1
2
3
4
5
6
7
8
9
10
11 package org.mule.config.spring.parsers.endpoint;
12
13 import org.mule.config.spring.parsers.AbstractBadConfigTestCase;
14
15 import java.util.Arrays;
16 import java.util.Collection;
17
18 import org.junit.Test;
19 import org.junit.runners.Parameterized.Parameters;
20
21 public class AttributeErrorTestCase extends AbstractBadConfigTestCase
22 {
23
24 public AttributeErrorTestCase(ConfigVariant variant, String configResources)
25 {
26 super(variant, configResources);
27 }
28
29 @Parameters
30 public static Collection<Object[]> parameters()
31 {
32 return Arrays.asList(new Object[][]{
33 {ConfigVariant.SERVICE, "org/mule/config/spring/parsers/endpoint/attribute-error-test-service.xml"},
34 {ConfigVariant.FLOW, "org/mule/config/spring/parsers/endpoint/attribute-error-test-flow.xml"}
35 });
36 }
37
38 @Test
39 public void testError() throws Exception
40 {
41 assertErrorContains("do not match the exclusive groups [address] [ref]");
42 }
43
44 }