View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.scripting.builders;
8   
9   import org.mule.api.MuleException;
10  import org.mule.api.config.ConfigurationBuilder;
11  import org.mule.tck.AbstractScriptConfigBuilderTestCase;
12  
13  import static org.junit.Assert.fail;
14  
15  public class GroovyScriptConfigurationBuilderTestCase extends AbstractScriptConfigBuilderTestCase
16  {
17  
18      @Override
19      public String getConfigResources()
20      {
21          return "mule-config.groovy";
22      }
23  
24      @Override
25      public ConfigurationBuilder getBuilder()
26      {
27          try
28          {
29              return new ScriptConfigurationBuilder("groovy", getConfigResources());
30          }
31          catch (MuleException e)
32          {
33              fail(e.getMessage());
34              return null;
35          }
36      }
37  }