<commit_before>package junitparams;

import org.junit.AfterClass;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.util.EnumSet;

import junitparams.internal.TestMethod;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertTrue;

/**
 * Tests for {@link TestMethod#fillResultWithAllParamProviderMethods} that verifies that enumeration values are passed.
 *
 * @author <NAME>
 */
@RunWith(JUnitParamsRunner.class)
public class ParametersForEnumTest {

  /**
   * Ensures that
   */
  private static ThreadLocal<EnumSet<Fruit>> threadUntested = new ThreadLocal<EnumSet<Fruit>>() {
    @Override
    protected EnumSet<Fruit> initialValue() {
      return EnumSet.allOf(Fruit.class);
    }
  };

  @AfterClass
  public static void after() {
    try {
      assertThat(threadUntested.get()).isEmpty();
    } finally {
      threadUntested.remove();
    }
  }

  /**
   * Sample enumeration.
   */
  public enum Fruit {
    APPLE,
    BANANA,
    PEAR,
    PLUM<commit_msg>Fix truncated documentation<commit_after>package junitparams;

import org.junit.AfterClass;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.util.EnumSet;

import junitparams.internal.TestMethod;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertTrue;

/**
 * Tests for {@link TestMethod#fillResultWithAllParamProviderMethods} that verifies that enumeration values are passed.
 *
 * @author <NAME>
 */
@RunWith(JUnitParamsRunner.class)
public class ParametersForEnumTest {

  /**
   * Ensures that the test is thread-safe.
   */
  private static ThreadLocal<EnumSet<Fruit>> threadUntested = new ThreadLocal<EnumSet<Fruit>>() {
    @Override
    protected EnumSet<Fruit> initialValue() {
      return EnumSet.allOf(Fruit.class);
    }
  };

  @AfterClass
  public static void after() {
    try {
      assertThat(threadUntested.get()).isEmpty();
    } finally {
      threadUntested.remove();
    }
  }

  /**
   * Sample enumeration.
   */
  public enum Fruit {
    APPLE,
    BANANA,
    PEAR,
    PLUM
{'fraction_non_alphanumeric': 0.11148165793234874, 'fraction_numerical': 0.0, 'mean_word_length': 3.656319290465632, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7315902', 'n_tokens_mistral': 671, 'n_tokens_neox': 649, 'n_words': 139}