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

autofixture.publicinterface.inline.strings.StringContainingSubstringGenerator Maven / Gradle / Ivy

package autofixture.publicinterface.inline.strings;

import autofixture.interfaces.FixtureContract;
import autofixture.interfaces.InlineInstanceGenerator;

public class StringContainingSubstringGenerator implements
    InlineInstanceGenerator {

  private final String str;

  public StringContainingSubstringGenerator(final String str) {
    this.str = str;
  }

  @Override
  public String next(final FixtureContract fixture) {
    return fixture.create(String.class) + str + fixture.create(String.class);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy