1   /*
2    * $Id: QuartzConnectorTestCase.java 7976 2007-08-21 14:26:13Z dirk.olmes $
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      public UMOConnector getConnector() throws Exception
31      {
32          QuartzConnector c = new QuartzConnector();
33          c.setName("QuartzConnector");
34          c.initialise();
35          return c;
36      }
37  
38      /*
39       * (non-Javadoc)
40       * 
41       * @see org.mule.tck.providers.AbstractConnectorTestCase#getValidMessage()
42       */
43      public Object getValidMessage() throws Exception
44      {
45          return "test";
46      }
47  
48      /*
49       * (non-Javadoc)
50       * 
51       * @see org.mule.tck.providers.AbstractConnectorTestCase#getTestEndpointURI()
52       */
53      public String getTestEndpointURI()
54      {
55          return "quartz:/myService?repeatInterval=1000";
56      }
57  }