1   /*
2    * $Id: MuleAdminAgentTestCase.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.impl.internal.admin;
12  
13  import org.mule.MuleManager;
14  import org.mule.tck.AbstractMuleTestCase;
15  
16  /**
17   * @author <a href="mailto:aperepel@gmail.com">Andrew Perepelytsya</a> $Id:
18   *         MuleAdminAgentTestCase.java 3167 2006-09-22 15:47:04Z holger $
19   */
20  public class MuleAdminAgentTestCase extends AbstractMuleTestCase
21  {
22  
23      /**
24       * Print the name of this test to standard output.
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          // if it doesn't here fail, it has been registered
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          // if it doesn't here fail, it has been registered
49      }
50  
51  }