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);
}
}