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

com.github.aoreshin.junit5.extensions.TestTemplateInvocationContextImpl Maven / Gradle / Ivy

There is a newer version: 83
Show newest version
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