1   /*
2    * $Id: QuartzConnectorTestCase.java 7968 2007-08-21 12:01:57Z holger $
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.providers.quartz;
12  
13  import org.mule.tck.providers.AbstractConnectorTestCase;
14  import org.mule.umo.provider.UMOConnector;
15  
16  public class QuartzConnectorTestCase extends AbstractConnectorTestCase
17  {
18  
19      public QuartzConnectorTestCase()
20      {
21          super();
22          this.setDisposeManagerPerSuite(true);
23      }
24  
25      /*
26       * (non-Javadoc)
27       * 
28       * @see org.mule.tck.providers.AbstractConnectorTestCase#getConnector()
29       */
30      // @Override
31      public UMOConnector createConnector() throws Exception
32      {
33          QuartzConnector c = new QuartzConnector();
34          c.setName("QuartzConnector");
35          c.initialise();
36          return c;
37      }
38  
39      /*
40       * (non-Javadoc)
41       * 
42       * @see org.mule.tck.providers.AbstractConnectorTestCase#getValidMessage()
43       */
44      public Object getValidMessage() throws Exception
45      {
46          return "test";
47      }
48  
49      /*
50       * (non-Javadoc)
51       * 
52       * @see org.mule.tck.providers.AbstractConnectorTestCase#getTestEndpointURI()
53       */
54      public String getTestEndpointURI()
55      {
56          return "quartz:/myService?repeatInterval=1000";
57      }
58  }