com.undefinedlabs.scope.rules.AbstractSingleScopeAgentRuleTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scope-rules-testing Show documentation
Show all versions of scope-rules-testing Show documentation
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.
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 extends AgentBuilder> agentBuilders = sut.transformers();
for(final AgentBuilder agentBuilder : agentBuilders) {
transformers.add(agentBuilder.installOnByteBuddyAgent());
}
return transformers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy