All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.undefinedlabs.scope.rules.AbstractComposedScopeAgentRuleTest Maven / Gradle / Ivy

package com.undefinedlabs.scope.rules;

import java.lang.instrument.ClassFileTransformer;
import java.util.ArrayList;
import java.util.List;

public abstract class AbstractComposedScopeAgentRuleTest extends AbstractScopeAgentRuleTest {

    protected abstract T newInstance();

    @Override
    protected List getTransformers() {
        final T sut = newInstance();

        final List transformers = new ArrayList<>();
        for(final ScopeAgentRule rule : sut.rules()){
            transformers.addAll(instrumentAgentBuilders((AbstractScopeAgentRule) rule));
        }

        return transformers;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy