IntRangeVariantGenerator implements IGameVariantGenerator { @Override public Set<IGameVariant> getVariants() { final LinkedHashSet<IGameVariant> result = new LinkedHashSet<>(); for (int i = min; i <= max; i++) { result.add(new IntGameVariant(i)); } return result; }  @Override Set<IGameVariant> getVariants();  }
@Test void shouldGetVariants() { IntRangeVariantGenerator variantGenerator = new IntRangeVariantGenerator("choose_text", 1, 5); Set<IGameVariant> result = variantGenerator.getVariants(); ArrayList<String> expected = new ArrayList<>(List.of("1", "2", "3", "4", "5")); for (IGameVariant variant : result) { assertTrue(expected.contains(variant.getLabel(translator))); } }