/*
 * Created on Apr 30, 2003
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package org.apache.jmeter.junit;

import junit.framework.TestCase;

import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;

/**
 * @author ano ano
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public abstract class JMeterTestCase extends TestCase
{
    
    public JMeterTestCase(String name)
    {
        super(name);
    }
    
    protected static final Logger testLog = LoggingManager.getLoggerForClass();
}


@@ -214,16 +214,58 @@
 stCase;%0A
+import org.apache.jmeter.util.JMeterUtils;
 %0Aimport 
@@ -627,24 +627,564 @@
 %0A    %7D%0A    %0A
+    /*%0A     * If not running under AllTests.java, make sure that the properties%0A     * (and log file) are set up correctly.%0A     * %0A     * N.B. In order for this to work correctly, the JUnit test must be started%0A     * in the bin directory, and all the JMeter jars (plus any others needed at%0A     * run-time) need to be on the classpath.%0A     * %0A     */%0A    static %7B%0A    %09if (JMeterUtils.getJMeterProperties() == null)%7B%0A    %09%09JMeterUtils jmu = new JMeterUtils();%0A    %09%09jmu.initializeProperties(%22./jmetertest.properties%22);%0A    %09%7D%0A    %7D%0A    %0A
     protecte

Initialise JMeter properties if not done already (for testing individual modules)