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

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

Go to download

Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly identify, troubleshoot and fix failed builds. This artifact contains classes that supports Testing in the other Scope Rules modules.

There is a newer version: 0.15.1-beta.2
Show newest version
package com.undefinedlabs.scope.rules;

import net.bytebuddy.agent.builder.AgentBuilder;

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

public abstract class AbstractSingleScopeAgentRuleTest extends AbstractScopeAgentRuleTest {

    protected abstract T newInstance();

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

        final List transformers = new ArrayList<>();
        final Iterable agentBuilders = sut.transformers();
        for(final AgentBuilder agentBuilder : agentBuilders) {
            transformers.add(agentBuilder.installOnByteBuddyAgent());
        }

        return transformers;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy