1   /*
2    * $Id: AbstractScriptingExampleTestCase.java 11747 2008-05-14 04:26:15Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.example.scripting;
12  
13  import org.mule.tck.FunctionalTestCase;
14  
15  import java.util.Properties;
16  
17  public abstract class AbstractScriptingExampleTestCase extends FunctionalTestCase
18  {    
19      //@Override
20      protected String getConfigResources()
21      {
22          return "change-machine.xml";
23      }
24  
25      abstract protected String getScriptFile();
26      
27      abstract protected String getCurrency();
28      
29      //@Override
30      protected Properties getStartUpProperties()
31      {
32          Properties props = new Properties();
33          props.put("scriptfile", getScriptFile());
34          props.put("currency", getCurrency());
35          return props;
36      }
37  }