mx4j/src/test/test MX4JTestCase.java,1.7,1.8
Simone Bordet <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/test/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30785/src/test/test
Modified Files:
MX4JTestCase.java
Log Message:
Cosmetics
Index: MX4JTestCase.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/MX4JTestCase.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** MX4JTestCase.java 26 Aug 2003 08:21:00 -0000 1.7
--- MX4JTestCase.java 10 Aug 2004 09:17:59 -0000 1.8
***************
*** 10,17 ****
import java.io.File;
- import java.net.URLClassLoader;
- import java.net.URL;
import java.net.MalformedURLException;
!
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
--- 10,16 ----
import java.io.File;
import java.net.MalformedURLException;
! import java.net.URL;
! import java.net.URLClassLoader;
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
***************
*** 27,33 ****
public class MX4JTestCase extends TestCase
{
! public MX4JTestCase(String s)
{
! super(s);
}
--- 26,32 ----
public class MX4JTestCase extends TestCase
{
! public MX4JTestCase(String name)
{
! super(name);
}
***************
*** 41,45 ****
File jmx = new File("dist/test/mx4j-jmx.jar");
File impl = new File("dist/test/mx4j-impl.jar");
! return new URLClassLoader(new URL[] {jmx.toURL(), impl.toURL()}, getClass().getClassLoader().getParent());
}
--- 40,44 ----
File jmx = new File("dist/test/mx4j-jmx.jar");
File impl = new File("dist/test/mx4j-impl.jar");
! return new URLClassLoader(new URL[]{jmx.toURL(), impl.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 48,52 ****
File jmxri = new File("dist/test/jmxri.jar");
if (!jmxri.exists()) fail("JMXRI jar is not available");
! return new URLClassLoader(new URL[] {jmxri.toURL()}, getClass().getClassLoader().getParent());
}
--- 47,51 ----
File jmxri = new File("dist/test/jmxri.jar");
if (!jmxri.exists()) fail("JMXRI jar is not available");
! return new URLClassLoader(new URL[]{jmxri.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 56,60 ****
if (!jmxri.exists()) fail("JMXRI jar is not available");
File mx4j = new File("dist/test/mx4j-impl.jar");
! return new URLClassLoader(new URL[] {jmxri.toURL(),mx4j.toURL()}, getClass().getClassLoader().getParent());
}
--- 55,59 ----
if (!jmxri.exists()) fail("JMXRI jar is not available");
File mx4j = new File("dist/test/mx4j-impl.jar");
! return new URLClassLoader(new URL[]{jmxri.toURL(), mx4j.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 64,68 ****
File impl = new File("dist/test/mx4j-impl.jar");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[] {jmx.toURL(), impl.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
--- 63,67 ----
File impl = new File("dist/test/mx4j-impl.jar");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[]{jmx.toURL(), impl.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 74,78 ****
File rimpl = new File("dist/test/mx4j-rimpl.jar");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[] {jmx.toURL(), impl.toURL(), rjmx.toURL(), rimpl.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
--- 73,77 ----
File rimpl = new File("dist/test/mx4j-rimpl.jar");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[]{jmx.toURL(), impl.toURL(), rjmx.toURL(), rimpl.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 82,86 ****
if (!jmxri.exists()) fail("JMXRI jar is not available");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[] {jmxri.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
--- 81,85 ----
if (!jmxri.exists()) fail("JMXRI jar is not available");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[]{jmxri.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 92,96 ****
if (!rjmx.exists()) fail("JMX Remote jar is not available");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[] {jmx.toURL(), rjmx.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
--- 91,95 ----
if (!rjmx.exists()) fail("JMX Remote jar is not available");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[]{jmx.toURL(), rjmx.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
***************
*** 104,108 ****
if (!orjmx.exists()) fail("JMX Optional Remote jar is not available");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[] {jmx.toURL(), rjmx.toURL(), orjmx.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
--- 103,107 ----
if (!orjmx.exists()) fail("JMX Optional Remote jar is not available");
File tests = new File("dist/test/mx4j-tests.jar");
! return new URLClassLoader(new URL[]{jmx.toURL(), rjmx.toURL(), orjmx.toURL(), tests.toURL()}, getClass().getClassLoader().getParent());
}
-------------------------------------------------------
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