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.tck.testmodels.mule;
8   
9   import org.mule.api.MuleException;
10  import org.mule.api.agent.Agent;
11  import org.mule.api.lifecycle.InitialisationException;
12  
13  import java.util.Collections;
14  import java.util.List;
15  
16  /**
17   * Mock agent
18   */
19  public class TestAgent implements Agent
20  {
21  
22      private String frobbit;
23  
24      public String getName()
25      {
26          return "Test Agent";
27      }
28  
29      public void setName(String name)
30      {
31          // nothing to do
32      }
33  
34      public String getDescription()
35      {
36          return "Test JMX Agent";
37      }
38  
39      public void initialise() throws InitialisationException
40      {
41          // nothing to do
42      }
43  
44      public void start() throws MuleException
45      {
46          // nothing to do
47      }
48  
49      public void stop() throws MuleException
50      {
51          // nothing to do
52      }
53  
54      public void dispose()
55      {
56          // nothing to do
57      }
58  
59      public List<Class<? extends Agent>> getDependentAgents()
60      {
61          return Collections.emptyList();
62      }
63  
64      public String getFrobbit()
65      {
66          return frobbit;
67      }
68  
69      public void setFrobbit(String frobbit)
70      {
71          this.frobbit = frobbit;
72      }
73  }