Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TestAgent |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: TestAgent.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.tck.testmodels.mule; | |
12 | ||
13 | import org.mule.umo.UMOException; | |
14 | import org.mule.umo.lifecycle.InitialisationException; | |
15 | import org.mule.umo.manager.UMOAgent; | |
16 | ||
17 | /** | |
18 | * Mock agent | |
19 | */ | |
20 | 0 | public class TestAgent implements UMOAgent |
21 | { | |
22 | public String getName() | |
23 | { | |
24 | 0 | return "Test Agent"; |
25 | } | |
26 | ||
27 | public void setName(String name) | |
28 | { | |
29 | // nothing to do | |
30 | 0 | } |
31 | ||
32 | public String getDescription() | |
33 | { | |
34 | 0 | return "Test JMX Agent"; |
35 | } | |
36 | ||
37 | public void initialise() throws InitialisationException | |
38 | { | |
39 | // nothing to do | |
40 | 0 | } |
41 | ||
42 | public void start() throws UMOException | |
43 | { | |
44 | // nothing to do | |
45 | 0 | } |
46 | ||
47 | public void stop() throws UMOException | |
48 | { | |
49 | // nothing to do | |
50 | 0 | } |
51 | ||
52 | public void dispose() | |
53 | { | |
54 | // nothing to do | |
55 | 0 | } |
56 | ||
57 | public void registered() | |
58 | { | |
59 | // nothing to do | |
60 | 0 | } |
61 | ||
62 | public void unregistered() | |
63 | { | |
64 | // nothing to do | |
65 | 0 | } |
66 | } |