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.transport.quartz;
8   
9   import org.mule.api.transport.Connector;
10  import org.mule.transport.AbstractConnectorTestCase;
11  
12  public class QuartzConnectorTestCase extends AbstractConnectorTestCase
13  {
14      @Override
15      public Connector createConnector() throws Exception
16      {
17          QuartzConnector c = new QuartzConnector(muleContext);
18          c.setName("QuartzConnector");
19          return c;
20      }
21  
22      @Override
23      public Object getValidMessage() throws Exception
24      {
25          return "test";
26      }
27  
28      @Override
29      public String getTestEndpointURI()
30      {
31          return "quartz:/myService?repeatInterval=1000";
32      }
33  }