package com.intuit.tank.runner.method;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import com.intuit.tank.harness.data.ClearCookiesStep;
import com.intuit.tank.harness.data.HDTestPlan;
import com.intuit.tank.harness.test.data.Variables;
import com.intuit.tank.runner.TestHttpClient;
import com.intuit.tank.runner.TestPlanRunner;
import com.intuit.tank.runner.TestStepContext;
/**
* The class <code>RunnerFactoryTest</code> contains tests for the class <code>{@link RunnerFactory}</code>.
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
public class RunnerFactoryTest {
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_1()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.ExceptionInInitializerError
// at org.apache.log4j.LogManager.getLogger(Logger.java:117)
// at com.intuit.tank.runner.TestPlanRunner.<clinit>(TestPlanRunner.java:44)
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_2()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_3()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_4()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_5()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_6()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_7()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
/**
* Run the Runner getRunner(TestStepContext) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 5:53 PM
*/
@Test
public void testGetRunner_8()
throws Exception {
TestPlanRunner testPlanRunner = new TestPlanRunner(new HDTestPlan(), 1, new TestHttpClient());
testPlanRunner.setHttpClient(null);
TestStepContext tsc = new TestStepContext(new ClearCookiesStep(), new Variables(), "", "", new TimerMap(), testPlanRunner);
Runner result = RunnerFactory.getRunner(tsc);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class com.intuit.tank.runner.TestPlanRunner
assertNotNull(result);
}
}