com.github.aoreshin.junit5.extensions.TestTemplateInvocationContextImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit5-extensions Show documentation
Show all versions of junit5-extensions Show documentation
Little useful extensions for JUnit 5
package com.github.aoreshin.junit5.extensions;
import java.util.List;
import org.junit.jupiter.api.extension.Extension;
import org.junit.jupiter.api.extension.TestTemplateInvocationContext;
/** Simple implementation of TestTemplateInvocationContext interface */
public class TestTemplateInvocationContextImpl implements TestTemplateInvocationContext {
private final List extensions;
private String displayName;
TestTemplateInvocationContextImpl(String displayName, List extensions) {
this.displayName = displayName;
this.extensions = extensions;
}
@Override
public String getDisplayName(int invocationIndex) {
return displayName + " [" + invocationIndex + "]";
}
@Override
public List getAdditionalExtensions() {
return extensions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy