Search in sources :

Example 1 with TreeClonerNoTimer

use of org.apache.jmeter.engine.TreeClonerNoTimer in project jmeter by apache.

the class Start method cloneTree.

/**
     * Create a Cloner that ignores {@link Timer} if removeTimers is true
     * @param testTree {@link HashTree}
     * @param removeTimers boolean remove timers 
     * @return {@link TreeCloner}
     */
private TreeCloner cloneTree(HashTree testTree, boolean removeTimers) {
    TreeCloner cloner = null;
    if (removeTimers) {
        cloner = new TreeClonerNoTimer(false);
    } else {
        cloner = new TreeCloner(false);
    }
    testTree.traverse(cloner);
    return cloner;
}
Also used : TreeCloner(org.apache.jmeter.engine.TreeCloner) TreeClonerNoTimer(org.apache.jmeter.engine.TreeClonerNoTimer)

Aggregations

TreeCloner (org.apache.jmeter.engine.TreeCloner)1 TreeClonerNoTimer (org.apache.jmeter.engine.TreeClonerNoTimer)1