mx4j/src/test/test/mx4j/tools/config ConfigurationLoaderTest.java,1.3,1.4

Simone Bordet <[email protected]>
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/mx4j/tools/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31344/src/test/test/mx4j/tools/config

Modified Files:
	ConfigurationLoaderTest.java 
Log Message:
Fixed test, by using a constant to assert a condition

Index: ConfigurationLoaderTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/mx4j/tools/config/ConfigurationLoaderTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ConfigurationLoaderTest.java	9 Nov 2003 22:17:25 -0000	1.3
--- ConfigurationLoaderTest.java	10 Aug 2004 09:21:21 -0000	1.4
***************
*** 16,20 ****
  import java.util.ArrayList;
  import java.util.Hashtable;
- 
  import javax.management.MBeanServer;
  import javax.management.MBeanServerFactory;
--- 16,19 ----
***************
*** 30,34 ****
  
  /**
-  *
   * @author <a href="mailto:[email protected]">Simone Bordet</a>
   * @version $Revision$
--- 29,32 ----
***************
*** 217,221 ****
                "   <shutdown />" +
                "</configuration>";
!       server.invoke(loaderName, "startup", new Object[] {new StringReader(config)}, new String[]{Reader.class.getName()});
        sleep(1000);
  
--- 215,219 ----
                "   <shutdown />" +
                "</configuration>";
!       server.invoke(loaderName, "startup", new Object[]{new StringReader(config)}, new String[]{Reader.class.getName()});
        sleep(1000);
  
***************
*** 267,278 ****
                "      <new classname=\"javax.management.remote.JMXServiceURL\">" +
                "        <arg type=\"string\">rmi</arg>" +
-               "        <arg type=\"string\">localhost</arg>" +
-               "        <arg type=\"int\">0</arg>" +
                "        <arg type=\"string\">" + domain + "</arg>" +
                "      </new>" +
                "    </object>" +
                "    <call classname=\"javax.management.MBeanServerFactory\" method=\"createMBeanServer\">" +
                "      <arg type=\"string\">" +
!               "        <call refobjectid=\"url\" method=\"getURLPath\" />" +
                "      </arg>" +
                "    </call>" +
--- 265,276 ----
                "      <new classname=\"javax.management.remote.JMXServiceURL\">" +
                "        <arg type=\"string\">rmi</arg>" +
                "        <arg type=\"string\">" + domain + "</arg>" +
+               "        <arg type=\"int\">0</arg>" +
+               "        <arg type=\"string\">/path</arg>" +
                "      </new>" +
                "    </object>" +
                "    <call classname=\"javax.management.MBeanServerFactory\" method=\"createMBeanServer\">" +
                "      <arg type=\"string\">" +
!               "        <call refobjectid=\"url\" method=\"getHost\" />" +
                "      </arg>" +
                "    </call>" +



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.