View Javadoc

1   /*
2    * $Id: AttributeErrorTestCase.java 22460 2011-07-20 07:44:33Z claude.mamo $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
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  }