super(name);
}
public void testConfigGathering() throws Exception
{
ListedHashTree testing = new ListedHashTree();
GenericController controller = new GenericController();
ConfigTestElement config1 = new ConfigTestElement();
config1.setName("config1");
config1.setProperty("test.property", "A test value");
TestSampler sampler = new TestSampler();
sampler.setName("sampler");
testing.add(controller, config1);
testing.add(controller, sampler);
TestCompiler.initialize();
TestCompiler compiler =
new TestCompiler(testing, new JMeterVariables());
testing.traverse(compiler);
sampler =
(TestSampler) compiler.configureSampler(sampler).getSampler();
assertEquals(
"A test value",
sampler.getPropertyAsString("test.property"));