1
2
3
4
5
6
7
8
9
10
11 package org.mule.impl.internal.admin;
12
13 import org.mule.MuleManager;
14 import org.mule.tck.AbstractMuleTestCase;
15
16 public class MuleAdminAgentTestCase extends AbstractMuleTestCase
17 {
18
19
20
21
22 protected void doSetUp() throws Exception
23 {
24 getManager(false);
25 }
26
27 public void testEmptyServerUrl() throws Exception
28 {
29 final String serverEndpoint = "";
30 MuleManager.getConfiguration().setServerUrl(serverEndpoint);
31 MuleAdminAgent agent = new MuleAdminAgent();
32 agent.initialise();
33
34
35 }
36
37 public void testNonEmptyServerUrl() throws Exception
38 {
39 final String serverEndpoint = "test://12345";
40 MuleManager.getConfiguration().setServerUrl(serverEndpoint);
41 MuleAdminAgent agent = new MuleAdminAgent();
42 agent.initialise();
43
44
45 }
46
47 }