sebb 2003/12/07 14:31:54 Modified: src/jorphan/org/apache/jorphan/test AllTests.java Log: Simple suite() method to allow AllTests to be invoked directly as a JUnit test Revision Changes Path 1.15 +18 -1 jakarta-jmeter/src/jorphan/org/apache/jorphan/test/AllTests.java Index: AllTests.java =================================================================== RCS file: /home/cvs/jakarta-jmeter/src/jorphan/org/apache/jorphan/test/AllTests.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- AllTests.java 7 Dec 2003 21:53:17 -0000 1.14 +++ AllTests.java 7 Dec 2003 22:31:54 -0000 1.15 @@ -274,6 +274,23 @@ } } + /* + * Externally callable suite() method for use by JUnit + * Allows tests to be run directly under JUnit, rather than using the + * startup code in the rest of the module. No parameters can be passed in, + * so it is less flexible. + */ + public static TestSuite suite() + { + String args[] = { "../lib/ext", + "./jmetertest.properties", + "org.apache.jmeter.util.JMeterUtils" + }; + + initializeManager(args); + return suite(args[0]); + } + /** * A unit test suite for JUnit. *
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]