View Javadoc

1   /*
2    * $Id: MuleContextAwareTestCase.java 22528 2011-07-22 12:28:25Z justin.calleja $
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;
12  
13  import java.util.Arrays;
14  import java.util.Collection;
15  
16  import org.junit.Test;
17  import org.junit.runners.Parameterized.Parameters;
18  import org.mule.tck.AbstractServiceAndFlowTestCase;
19  
20  /**
21   * This tests that we can have references to management context aware objects within a config
22   */
23  public class MuleContextAwareTestCase extends AbstractServiceAndFlowTestCase
24  {
25  
26      public MuleContextAwareTestCase(ConfigVariant variant, String configResources)
27      {
28          super(variant, configResources);
29      }
30      
31      @Parameters
32      public static Collection<Object[]> parameters()
33      {
34          return Arrays.asList(new Object[][]{
35              {ConfigVariant.SERVICE, "management-context-aware-test-service.xml"},
36              {ConfigVariant.FLOW, "management-context-aware-test-flow.xml"}
37          });
38      }
39  
40      @Test
41      public void testStartup()
42      {
43          // only want startup to succeed
44      }
45  
46  }