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
17
18
19
20 public class MuleAdminAgentTestCase extends AbstractMuleTestCase
21 {
22
23
24
25
26 protected void doSetUp() throws Exception
27 {
28 getManager(false);
29 }
30
31 public void testEmptyServerUrl() throws Exception
32 {
33 final String serverEndpoint = "";
34 MuleManager.getConfiguration().setServerUrl(serverEndpoint);
35 MuleAdminAgent agent = new MuleAdminAgent();
36 agent.initialise();
37
38
39 }
40
41 public void testNonEmptyServerUrl() throws Exception
42 {
43 final String serverEndpoint = "test://12345";
44 MuleManager.getConfiguration().setServerUrl(serverEndpoint);
45 MuleAdminAgent agent = new MuleAdminAgent();
46 agent.initialise();
47
48
49 }
50
51 }